Function: nerd-icons-auto-mode-match?
nerd-icons-auto-mode-match? is a natively compiled function defined in
nerd-icons.el.
Signature
(nerd-icons-auto-mode-match? &optional FILE)
Documentation
Whether or not FILE's major-mode match against its auto-mode-alist.
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-auto-mode-match? (&optional file)
"Whether or not FILE's `major-mode' match against its `auto-mode-alist'."
(let* ((file (or file (buffer-file-name) (buffer-name)))
(auto-mode (nerd-icons--auto-mode-lookup (file-name-nondirectory file))))
(eq major-mode auto-mode)))