move custom file
This commit is contained in:
parent
f84bc2472b
commit
9da3abe1b9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue