Refactor font loading

Init extra fonts within doom-init-fonts-h. This was moved because I used
to believe that set-fontset-font (according to its documentation) could
only change the frame-local fontset. It turns out that the exception
when you pass t for its first argument, which targets the default (i.e.
global) fontset.
This commit is contained in:
Henrik Lissner 2019-07-21 15:07:34 +02:00
parent 5005721039
commit a0593cc097
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 5 additions and 12 deletions

View file

@ -72,7 +72,7 @@ See `doom-init-fonts-h'."
(interactive)
(when doom-font
(set-frame-font doom-font t))
(mapc #'doom-init-emoji-fonts-h (frame-list)))
(mapc #'doom-init-fonts-h (frame-list)))
;;;###autoload
(defun doom/increase-font-size (count)