Add comment wrt load-theme not disabling previous themes
This commit is contained in:
parent
936124e546
commit
cb6dd300b4
1 changed files with 3 additions and 0 deletions
|
@ -606,6 +606,9 @@ behavior). Do not set this directly, this is let-bound in `doom-init-theme-h'.")
|
||||||
(unless no-enable
|
(unless no-enable
|
||||||
(setq doom-theme theme
|
(setq doom-theme theme
|
||||||
doom-init-theme-p t)
|
doom-init-theme-p t)
|
||||||
|
;; `load-theme' doesn't disable previously enabled themes, which seems
|
||||||
|
;; like what you'd want. You could always use `enable-theme' to activate
|
||||||
|
;; multiple themes instead.
|
||||||
(mapc #'disable-theme (remq theme custom-enabled-themes))
|
(mapc #'disable-theme (remq theme custom-enabled-themes))
|
||||||
(run-hooks 'doom-load-theme-hook))
|
(run-hooks 'doom-load-theme-hook))
|
||||||
result)))
|
result)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue