Function: nerd-icons-set-font
nerd-icons-set-font is a natively compiled function defined in
nerd-icons.el.
Signature
(nerd-icons-set-font &optional FONT-FAMILY FRAME)
Documentation
Modify nerd font charsets to use FONT-FAMILY for FRAME.
Source Code
;; Defined in /nix/store/yazcqi510kxs7jygyiirgf8qyg348f6p-emacs-packages-deps/share/emacs/site-lisp/elpa/nerd-icons-20260823.17/nerd-icons.el
(defun nerd-icons-set-font (&optional font-family frame)
"Modify nerd font charsets to use FONT-FAMILY for FRAME."
(let ((font-f (or font-family nerd-icons-font-family))
(charsets '((#xe5fa . #xe6bb) ;; Seti-UI + Custom
(#xe700 . #xe958) ;; Devicons
(#xed00 . #xf2ff) ;; Font Awesome
(#xe200 . #xe2a9) ;; Font Awesome Extension
(#xf500 . #xfd46) (#xf0001 . #xf1af0) ;; Material Design Icons
(#xe300 . #xe3e3) ;; Weather
(#xf400 . #xf533) #x2665 #x26a1 ;; Octicons
(#xe0a0 . #xe0a3) (#xe0b0 . #xe0d7) ;; Powerline Symbols + Extra
(#x23fb . #x23fe) #x2b58 ;; IEC Power Symbols
(#xf300 . #xf385) ;; Font Logos
(#xe000 . #xe00a) ;; Pomicons
(#xea60 . #xec84)))) ;; Codicons
(cl-loop for charset in charsets do
(set-fontset-font
(frame-parameter nil 'font)
charset
(font-spec :family font-f
:weight nil
:size nil)
frame
'prepend))))