Add comment wrt load-theme not disabling previous themes

This commit is contained in:
Henrik Lissner 2020-04-29 21:22:58 -04:00
parent 936124e546
commit cb6dd300b4
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -606,6 +606,9 @@ behavior). Do not set this directly, this is let-bound in `doom-init-theme-h'.")
(unless no-enable
(setq doom-theme theme
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))
(run-hooks 'doom-load-theme-hook))
result)))