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