From c0e271ef5a13c20c66798139495e6a4dc484a90e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 15 Jun 2018 22:44:20 +0200 Subject: [PATCH] Fix "Invalid read syntax: '#'" errors Caused when Emacs reads back the unserialized font-specs it saved in .local/custom.el. So we store them in xlfd format instead. --- core/core-ui.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index a185d6b37..bbde3d863 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -557,10 +557,11 @@ frame's window-system, the theme will be reloaded.") (progn (custom-set-faces (when (fontp doom-font) - (map-put default-frame-alist 'font (font-xlfd-name doom-font)) - `(fixed-pitch ((t (:font ,doom-font))))) + (let ((xlfd (font-xlfd-name doom-font))) + (map-put default-frame-alist 'font xlfd) + `(fixed-pitch ((t (:font ,xlfd)))))) (when (fontp doom-variable-pitch-font) - `(variable-pitch ((t (:font ,doom-variable-pitch-font)))))) + `(variable-pitch ((t (:font ,(font-xlfd-name doom-variable-pitch-font))))))) ;; Fallback to `doom-unicode-font' for Unicode characters (when (fontp doom-unicode-font) (setq use-default-font-for-symbols nil)