From 47216117cc4861229c19c3410d40fbfa1b85d2a6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 21 Jul 2019 15:09:32 +0200 Subject: [PATCH] Stop reloading theme on every new frame It was slow and unnecessary (doom-themes and solaire-mode support terminal colors already). --- core/core-ui.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index 5adf4ecd1..f6cc095bd 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -657,10 +657,7 @@ startup (or theme switch) time, so long as `doom--prefer-theme-elc' is non-nil." (advice-add fn :around #'doom-run-switch-buffer-hooks-a))) ;; Apply `doom-theme' -(add-hook (if (daemonp) - 'after-make-frame-functions - 'doom-init-ui-hook) - #'doom-init-theme-h) +(add-hook 'doom-init-ui-hook #'doom-init-theme-h) ;; Apply `doom-font' et co (add-hook 'doom-after-init-modules-hook #'doom-init-fonts-h)