Inhibit font loading in non-gui sessions
This commit is contained in:
parent
29f88e6c63
commit
069d085eec
1 changed files with 10 additions and 9 deletions
|
@ -179,6 +179,7 @@ local value, whether or not it's permanent-local. Therefore, we cycle
|
|||
"Set the theme and load the font, in that order."
|
||||
(when doom-theme
|
||||
(load-theme doom-theme t))
|
||||
(when (display-graphic-p)
|
||||
(with-demoted-errors "FONT ERROR: %s"
|
||||
(when (fontp doom-font)
|
||||
(set-frame-font doom-font nil (if frame (list frame) t)))
|
||||
|
@ -187,7 +188,7 @@ local value, whether or not it's permanent-local. Therefore, we cycle
|
|||
(set-fontset-font t 'unicode doom-unicode-font frame))
|
||||
;; ...and for variable-pitch-mode:
|
||||
(when (fontp doom-variable-pitch-font)
|
||||
(set-face-attribute 'variable-pitch frame :font doom-variable-pitch-font)))
|
||||
(set-face-attribute 'variable-pitch frame :font doom-variable-pitch-font))))
|
||||
(run-hooks 'doom-init-ui-hook))
|
||||
|
||||
(defun doom|reload-ui-in-daemon (frame)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue