Don't reload theme at startup if already enabled

This commit is contained in:
Henrik Lissner 2018-07-25 18:28:33 +02:00
parent 46c49cf55a
commit c75b2a36ab
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -579,7 +579,7 @@ frame's window-system, the theme will be reloaded.")
(defun doom|init-theme ()
"Set the theme and load the font, in that order."
(when doom-theme
(when (and doom-theme (not (memq doom-theme custom-enabled-themes)))
(load-theme doom-theme t)))
;; Getting themes to remain consistent across GUI Emacs, terminal Emacs and