move custom file

This commit is contained in:
tecosaur 2020-01-10 01:51:54 +08:00
parent f84bc2472b
commit 9da3abe1b9
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ By default changes made via a customisation interface are added to =init.el=.
I prefer the idea of using a separate file for this. We just need to change a
setting, and load it if it exists.
#+BEGIN_SRC emacs-lisp
(setq-default custom-file (expand-file-name ".custom.el" user-emacs-directory))
(setq-default custom-file (expand-file-name ".custom.el" default-directory))
(when (file-exists-p custom-file)
(load custom-file))
#+END_SRC