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
|
||||
(add-hook! 'after-setting-font-hook
|
||||
(defun doom-init-all-the-icons-fonts-h ()
|
||||
(when (fboundp 'set-fontset-font)
|
||||
(dolist (font (list "Weather Icons"
|
||||
"github-octicons"
|
||||
"FontAwesome"
|
||||
"all-the-icons"
|
||||
"file-icons"
|
||||
"Material Icons"))
|
||||
(set-fontset-font t 'unicode font nil 'append))))
|
||||
(set-fontset-font t 'unicode font nil 'append)))))
|
||||
:config
|
||||
(cond ((daemonp)
|
||||
(defadvice! doom--disable-all-the-icons-in-tty-a (orig-fn &rest args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue