From 2605a3938e42df9eb9ecf27ebfab4e31fd792161 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 10 Jun 2018 17:24:34 +0200 Subject: [PATCH] Initialize modules conditionally doom-modules will be initialized on demand in non-interactive sessions. --- core/core.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core.el b/core/core.el index 01fc2812c..30011ea33 100644 --- a/core/core.el +++ b/core/core.el @@ -200,12 +200,12 @@ this, you'll get stuttering and random freezes) and resets (require 'core-lib) (require 'core-packages) -(when noninteractive - (require 'core-dispatcher)) (load custom-file t t t) (doom-initialize noninteractive) -(doom-initialize-modules) +(if noninteractive + (require 'core-dispatcher) + (doom-initialize-modules)) (provide 'core) ;;; core.el ends here