config/private: wrap init.el in file-directory-p check
This commit is contained in:
parent
ef4962c702
commit
a1580e5919
1 changed files with 9 additions and 8 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue