Pass no-error to (load) to handle custom.el not found
This commit is contained in:
parent
12856e4dc9
commit
34a6f2b959
@ -246,8 +246,7 @@ And this function persists a variable:
|
|||||||
I don't want anything to write to my init.el, so save customizations in a separate file:
|
I don't want anything to write to my init.el, so save customizations in a separate file:
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq custom-file (expand-file-name "~/.emacs.d/custom.el"))
|
(setq custom-file (expand-file-name "~/.emacs.d/custom.el"))
|
||||||
(when (file-exists-p custom-file)
|
(load custom-file t)
|
||||||
(load custom-file))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Dropbox
|
* Dropbox
|
||||||
|
Loading…
Reference in New Issue
Block a user