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:
parent
31ca03c7a0
commit
5aea22ec31
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue