mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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.
This commit is contained in:
@ -557,10 +557,11 @@ frame's window-system, the theme will be reloaded.")
|
|||||||
(progn
|
(progn
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
(when (fontp doom-font)
|
(when (fontp doom-font)
|
||||||
(map-put default-frame-alist 'font (font-xlfd-name doom-font))
|
(let ((xlfd (font-xlfd-name doom-font)))
|
||||||
`(fixed-pitch ((t (:font ,doom-font)))))
|
(map-put default-frame-alist 'font xlfd)
|
||||||
|
`(fixed-pitch ((t (:font ,xlfd))))))
|
||||||
(when (fontp doom-variable-pitch-font)
|
(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
|
;; Fallback to `doom-unicode-font' for Unicode characters
|
||||||
(when (fontp doom-unicode-font)
|
(when (fontp doom-unicode-font)
|
||||||
(setq use-default-font-for-symbols nil)
|
(setq use-default-font-for-symbols nil)
|
||||||
|
Reference in New Issue
Block a user