mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Prevent custom from writing font settings to custom.el
Otherwise it tries to write unreadable forms to custom-file, causing invalid-read errors at startup.
This commit is contained in:
@ -590,6 +590,9 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
||||
`((fixed-pitch-serif ((t (:font ,doom-serif-font))))))
|
||||
(when doom-variable-pitch-font
|
||||
`((variable-pitch ((t (:font ,doom-variable-pitch-font))))))))
|
||||
;; Never save these settings to `custom-file'
|
||||
(dolist (sym '(fixed-pitch fixed-pitch-serif variable-pitch))
|
||||
(put sym 'saved-face nil))
|
||||
(cond
|
||||
(doom-font
|
||||
;; I avoid `set-frame-font' at startup because it is expensive; doing extra,
|
||||
|
Reference in New Issue
Block a user