Fix doom-serif-font and doom-variable-pitch-font: they need to be set for current frame too
On Emacs 26.1 these two font settings had no effect on the main frame. Signed-off-by: Edwin Török <edwin@etorok.net>
This commit is contained in:
parent
6859f77e1d
commit
7795da4800
1 changed files with 2 additions and 2 deletions
|
@ -351,9 +351,9 @@ frame's window-system, the theme will be reloaded.")
|
||||||
((display-graphic-p)
|
((display-graphic-p)
|
||||||
(setq doom-font (face-attribute 'default :font))))
|
(setq doom-font (face-attribute 'default :font))))
|
||||||
(when doom-serif-font
|
(when doom-serif-font
|
||||||
(set-face-attribute 'fixed-pitch-serif t :font doom-serif-font))
|
(set-face-attribute 'fixed-pitch-serif nil :font doom-serif-font))
|
||||||
(when doom-variable-pitch-font
|
(when doom-variable-pitch-font
|
||||||
(set-face-attribute 'variable-pitch t :font doom-variable-pitch-font))
|
(set-face-attribute 'variable-pitch nil :font 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)
|
||||||
(set-fontset-font t nil doom-unicode-font nil 'append)))
|
(set-fontset-font t nil doom-unicode-font nil 'append)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue