config/private: wrap init.el in file-directory-p check

This commit is contained in:
Henrik Lissner 2018-02-17 18:41:47 -05:00
parent ef4962c702
commit a1580e5919
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -7,12 +7,13 @@
"The directory that serves as the root of your external private config for
Doom Emacs.")
;; Ensure `doom//reload-autoloads', `doom//byte-compile' and
;; `doom-initialize-packages' will treat `+private-config-path' as the root of
;; this module.
(add-to-list 'doom-psuedo-module-dirs +private-config-path)
(add-to-list 'load-path +private-config-path)
(when (file-directory-p +private-config-path)
;; Ensure `doom//reload-autoloads', `doom//byte-compile' and
;; `doom-initialize-packages' will treat `+private-config-path' as the root of
;; this module.
(add-to-list 'doom-psuedo-module-dirs +private-config-path)
(add-to-list 'load-path +private-config-path)
;;
(load (expand-file-name "init.el" +private-config-path)
'noerror 'nomessage)
;;
(load (expand-file-name "init.el" +private-config-path)
:noerror :nomessage))