mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-03-10 08:41:32 -07:00
fix: ignore doom-theme if load-theme is used
Users shouldn't be using both, and `load-theme` should be higher
priority (because it's easier to do by accident).
Fix: #8257
Amend: #8119
Amend: 50b9afbb2d
This commit is contained in:
parent
e81b5796a3
commit
38868c79f5
1 changed files with 6 additions and 1 deletions
|
|
@ -624,7 +624,12 @@ them as such. Also intended as a helper for `doom--theme-is-colorscheme-p'."
|
|||
(with-temp-buffer
|
||||
(let ((enable-theme-functions
|
||||
(remq 'doom-enable-theme-h enable-theme-functions)))
|
||||
(doom-run-hooks 'doom-load-theme-hook))))))
|
||||
(doom-run-hooks 'doom-load-theme-hook))
|
||||
;; HACK: If the user uses `load-theme' in their $DOOMDIR instead of
|
||||
;; setting `doom-theme', override the latter, because they shouldn't
|
||||
;; be using both.
|
||||
(unless (memq theme (ensure-list doom-theme))
|
||||
(setq-default doom-theme theme))))))
|
||||
|
||||
(add-hook! 'after-make-frame-functions :depth -90
|
||||
(defun doom-fix-frame-color-parameters-h (f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue