From 08a4701774d356b93b06bbbbdbe1af759e14713d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 14 Jun 2018 00:01:14 +0200 Subject: [PATCH] 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 --- core/core-modules.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/core-modules.el b/core/core-modules.el index dca992c08..3c84a9e32 100644 --- a/core/core-modules.el +++ b/core/core-modules.el @@ -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)))