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:
parent
234cc27b77
commit
0b13525252
1 changed files with 5 additions and 5 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue