doom/install? ignore errors in module init.el's

Fix #3132
This commit is contained in:
Henrik Lissner 2020-05-15 14:22:13 -04:00
parent 8a83e9addd
commit c1bee692cf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -58,12 +58,13 @@ DOOMDIR environment variable. e.g.
;; In case no init.el was present the first time `doom-initialize-modules' was
;; called in core.el (e.g. on first install)
(ignore-errors (load! "init" doom-private-dir t))
(ignore-errors
(load! "init" doom-private-dir t))
(when doom-modules
(maphash (lambda (key plist)
(let ((doom--current-module key)
(doom--current-flags (plist-get plist :flags)))
(load! "init" (plist-get plist :path) t)))
(ignore-errors (load! "init" (plist-get plist :path) t))))
doom-modules))
;; Ask if user would like an envvar file generated