fix(lib): autoload doom--run-customize-theme-hook
In case the user byte-compiles any files where custom-theme-set-faces!
is used.
Amend: afb9773d7c
Ref: #7929
Ref: #7933
This commit is contained in:
parent
afb9773d7c
commit
c2c241666b
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defconst doom-customize-theme-hook nil)
|
(defconst doom-customize-theme-hook nil)
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
(defun doom--run-customize-theme-hook (fn)
|
(defun doom--run-customize-theme-hook (fn)
|
||||||
"Run FN, but suppress any writes to `custom-file'."
|
"Run FN, but suppress any writes to `custom-file'."
|
||||||
(letf! ((#'custom--should-apply-setting #'ignore)
|
(letf! ((#'custom--should-apply-setting #'ignore)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue