Fix error when private init.el doesn't exist

Found in doom-initialize-packages, which DOOM calls in many
noninteractive functions.
This commit is contained in:
Henrik Lissner 2017-06-14 21:42:08 +02:00
parent 75293c8d8c
commit 9039707184
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -199,7 +199,7 @@ This aggressively reloads core autoload files."
(when (or force-p (not doom-modules))
(setq doom-modules nil)
(funcall load-fn (expand-file-name "init.el" doom-emacs-dir))
(funcall load-fn (doom-module-path :private user-login-name "init.el"))
(funcall load-fn (doom-module-path :private user-login-name "init.el") t)
(when load-p
(cl-loop for file
in (append (nreverse (file-expand-wildcards (expand-file-name "core*.el" doom-core-dir)))