Don't reload theme at startup if already enabled
This commit is contained in:
parent
46c49cf55a
commit
c75b2a36ab
1 changed files with 1 additions and 1 deletions
|
@ -579,7 +579,7 @@ frame's window-system, the theme will be reloaded.")
|
||||||
|
|
||||||
(defun doom|init-theme ()
|
(defun doom|init-theme ()
|
||||||
"Set the theme and load the font, in that order."
|
"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)))
|
(load-theme doom-theme t)))
|
||||||
|
|
||||||
;; Getting themes to remain consistent across GUI Emacs, terminal Emacs and
|
;; Getting themes to remain consistent across GUI Emacs, terminal Emacs and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue