Emacs Config
Emacs Config
March 2, 2023
Recently, I learned emacs
and elisp, this article records the problems I encountered during using.
Some learning data:
Boolean in elisp
In elisp
, only nil is flase, others are true (including empty vector).
For convenience, we usually use t to represent true
How to set custom virable file name
Just as this:
;; set custom config file
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
;; auto load custom file
(when (file-exists-p custom-file)
(load-file custom-file))
Lightweight finished frame
Maybe you use ivy
or helm
, these are very good plugins for command compeletion.
But now we can use fido mode
to complete, it is embeded and light.
To enable it, you can just add this:
(fido-mode t)
;; for vertical mode, use this
(fido-vertical-mode t)
More to be added!
Last updated on