From e894c074530036a3909f49098a6881b9326e0987 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 6 Jan 2018 04:14:44 -0500 Subject: [PATCH] Load module init.el too from require! macro --- core/core-packages.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-packages.el b/core/core-packages.el index c454ce6fd..ac09e0340 100644 --- a/core/core-packages.el +++ b/core/core-packages.el @@ -401,7 +401,9 @@ The module is only loaded once. If RELOAD-P is non-nil, load it again." module submodule) (doom-module-enable module submodule flags) `(condition-case-unless-debug ex - (load! config ,module-path t) + (progn + (load! init ,module-path t) + (load! config ,module-path t)) ('error (lwarn 'doom-modules :error "%s in '%s %s' -> %s"