mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
fix(lib): avoid writing customized faces to custom.el (take 2)
Setting custom--inhibit-theme-enable to t isn't enough, since
custom--should-apply-setting will return non-nil if THEME is 'user.
Ref: #7929
Amend: 68771150ba
This commit is contained in:
@ -6,11 +6,11 @@
|
|||||||
(add-hook! 'doom-load-theme-hook
|
(add-hook! 'doom-load-theme-hook
|
||||||
(defun doom-apply-customized-faces-h ()
|
(defun doom-apply-customized-faces-h ()
|
||||||
"Run `doom-customize-theme-hook'."
|
"Run `doom-customize-theme-hook'."
|
||||||
(letf! (defun custom-push-theme (prop symbol theme mode &optional value)
|
(letf! ((#'custom--should-apply-setting #'ignore)
|
||||||
(funcall custom-push-theme prop symbol theme mode value)
|
(defun custom-push-theme (prop symbol theme mode &optional value)
|
||||||
(if (facep symbol) (face-spec-set symbol value t)))
|
(funcall custom-push-theme prop symbol theme mode value)
|
||||||
(let ((custom--inhibit-theme-enable t))
|
(if (facep symbol) (face-spec-set symbol value t))))
|
||||||
(run-hooks 'doom-customize-theme-hook)))))
|
(run-hooks 'doom-customize-theme-hook))))
|
||||||
|
|
||||||
(defun doom--normalize-face-spec (spec)
|
(defun doom--normalize-face-spec (spec)
|
||||||
(cond ((listp (car spec))
|
(cond ((listp (car spec))
|
||||||
|
Reference in New Issue
Block a user