~willvaughn/.emacs.d

a48249dc4b4c7e9e8bf9acdbdf3113026107fa55 — William Vaughn 10 months ago 589fa06
check custom file exists before loading at startup
1 files changed, 2 insertions(+), 1 deletions(-)

M init.el
M init.el => init.el +2 -1
@@ 25,4 25,5 @@
;; Without this I was getting nagged for every load of an org file
(advice-add 'risky-local-variable-p :override #'ignore)
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(load custom-file)
(when (file-exists-p custom-file)
    (load custom-file))