Fix #4992: set-fontset-font call when unavailable
Missed a guard on a set-fontset-font call in d4dec3565's refactors.
This commit is contained in:
parent
735efd0c85
commit
a98c2ece63
1 changed files with 8 additions and 7 deletions
|
@ -492,13 +492,14 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
||||||
:preface
|
:preface
|
||||||
(add-hook! 'after-setting-font-hook
|
(add-hook! 'after-setting-font-hook
|
||||||
(defun doom-init-all-the-icons-fonts-h ()
|
(defun doom-init-all-the-icons-fonts-h ()
|
||||||
|
(when (fboundp 'set-fontset-font)
|
||||||
(dolist (font (list "Weather Icons"
|
(dolist (font (list "Weather Icons"
|
||||||
"github-octicons"
|
"github-octicons"
|
||||||
"FontAwesome"
|
"FontAwesome"
|
||||||
"all-the-icons"
|
"all-the-icons"
|
||||||
"file-icons"
|
"file-icons"
|
||||||
"Material Icons"))
|
"Material Icons"))
|
||||||
(set-fontset-font t 'unicode font nil 'append))))
|
(set-fontset-font t 'unicode font nil 'append)))))
|
||||||
:config
|
:config
|
||||||
(cond ((daemonp)
|
(cond ((daemonp)
|
||||||
(defadvice! doom--disable-all-the-icons-in-tty-a (orig-fn &rest args)
|
(defadvice! doom--disable-all-the-icons-in-tty-a (orig-fn &rest args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue