Stop reloading theme on every new frame

It was slow and unnecessary (doom-themes and solaire-mode support
terminal colors already).
This commit is contained in:
Henrik Lissner 2019-07-21 15:09:32 +02:00
parent a0593cc097
commit 47216117cc
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)