fix: use variable to assign nerd-fonts

This commit is contained in:
Janis 2025-01-10 12:24:45 +01:00
parent 04c1d8c317
commit 0b036c1a28

View file

@ -345,8 +345,7 @@ Font size [[https://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Attri
(defun nemo/set-fallback-fonts () (defun nemo/set-fallback-fonts ()
"Set fallback fonts for icons/symbols." "Set fallback fonts for icons/symbols."
(when (member nemo/nerd-fonts-font (font-family-list)) (set-fontset-font t nil (font-spec :height nemo/font-height-mono :font nemo/nerd-fonts-font))
(set-fontset-font t nil (font-spec :height nemo/font-height-mono :font "Symbols Nerd Font")))
) )
(apply-if-gui #'nemo/set-fallback-fonts) (apply-if-gui #'nemo/set-fallback-fonts)