From 592d83a96822a7605147d9e20be42dba16d7a1af Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 29 May 2018 15:31:34 +0200 Subject: [PATCH] Fix doom//byte-compile not initializing module list in some contexts --- core/autoload/modules.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/autoload/modules.el b/core/autoload/modules.el index f3d1fe5a5..2e4be26f6 100644 --- a/core/autoload/modules.el +++ b/core/autoload/modules.el @@ -295,11 +295,10 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files." ;; But first we must be sure that Doom and your private config have been ;; fully loaded. Which usually aren't so in an noninteractive session. (doom//reload-autoloads) - (doom-initialize t) - (unless (equal modules (list ":core")) - (doom-initialize-modules t)))) + (doom-initialize t))) ;; If no targets were supplied, then we use your module list. (unless targets + (doom-initialize-modules t) (setq targets (append (list doom-core-dir) (doom-module-load-path)))) ;; Assemble el files we want to compile; taking into account that MODULES