Function: nerd-icons-insert-icons-for
nerd-icons-insert-icons-for is a natively compiled function defined in
nerd-icons.el.
Signature
(nerd-icons-insert-icons-for FAMILY &optional HEIGHT DURATION)
Documentation
Insert all of the available icons associated with FAMILY.
If a HEIGHT is provided it will render the icons at this height. This is useful both to see the icons more clearly and to test different height rendering. If DURATION is provided, it will pause for DURATION seconds between printing each character.
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-insert-icons-for (family &optional height duration)
"Insert all of the available icons associated with FAMILY.
If a HEIGHT is provided it will render the icons at this height.
This is useful both to see the icons more clearly and to test
different height rendering. If DURATION is provided, it will
pause for DURATION seconds between printing each character."
(let* ((data-f (nerd-icons--data-name family))
(insert-f (nerd-icons--function-name family))
(height (or height 1.0))
(data (funcall data-f)))
(mapc
(lambda (it)
(insert (format "%s - %s\n" (funcall insert-f (car it) :height height) (car it)))
(when duration (sit-for duration)))
data)))