Fix case where private init.el has no doom! block

This shouldn't error out. It's better if Doom ran normally, just without
any of its modules activated.

Addresses issue mentioned in #681
This commit is contained in:
Henrik Lissner 2018-06-14 00:01:14 +02:00
parent 1f07b37c9c
commit 08a4701774
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -148,6 +148,11 @@ non-nil, return paths of possible modules, activated or otherwise."
doom-init-modules-p)
(message "Initializing modules")
(doom-initialize-modules t)
(unless doom-modules
(setq doom-modules
(make-hash-table :test #'equal
:size 20
:rehash-threshold 1.0)))
doom-modules)))