Pass no-error to (load) to handle custom.el not found

This commit is contained in:
Jeremy Dormitzer 2019-01-28 08:29:39 -05:00
parent 12856e4dc9
commit 34a6f2b959

View File

@ -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