From 5aea22ec316e073a7d621474ab9592eb4c4a1f30 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 22 May 2021 16:01:01 -0400 Subject: [PATCH] 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. --- core/core-ui.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core-ui.el b/core/core-ui.el index 256320eb4..327ce4000 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -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,