From c1d175349000ad17e0ee0f7696efef892c948ad1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 4 Apr 2018 07:40:39 -0400 Subject: [PATCH] Provoke doom to init theme in daemon session --- core/core-ui.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index 418458264..91fa82ffa 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -467,7 +467,7 @@ character that looks like a space that `whitespace-mode' won't affect.") ;; Theme & font ;; -(defvar doom-last-window-system window-system +(defvar doom-last-window-system (if (daemonp) 'daemon window-system) "The `window-system' of the last frame. If this doesn't match the current frame's window-system, the theme will be reloaded.") @@ -517,8 +517,7 @@ frame's window-system, the theme will be reloaded.") (add-hook 'doom-init-ui-hook #'doom|init-fonts) ;; themes (add-hook 'after-make-frame-functions #'doom|init-theme-in-frame) -(unless (daemonp) - (add-hook 'doom-init-ui-hook #'doom|init-theme)) +(add-hook 'doom-init-ui-hook #'doom|init-theme) ;;