Fix wrong-type-arg hash-table-p error

In the rare case your private init.el has no doom! block.
This commit is contained in:
Henrik Lissner 2018-08-12 02:46:06 +02:00
parent 36044fccc9
commit cbad18bf95
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -40,6 +40,9 @@ non-nil."
(setq doom-init-modules-p t)
(load! "init" doom-private-dir t)
(unless doom-modules
(setq doom-modules (make-hash-table :test #'equal)))
(maphash (lambda (key plist)
(let ((doom--current-module key)
(doom--current-flags (plist-get plist :flags)))