Function: treemacs-icon-for-mode

treemacs-icon-for-mode is a byte-compiled function defined in treemacs-icons.el.

Signature

(treemacs-icon-for-mode MODE)

Documentation

Retrieve an icon for major MODE from treemacs-icons.

Uses treemacs-icon-fallback as fallback.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-icons.el
(define-inline treemacs-icon-for-mode (mode)
  "Retrieve an icon for major MODE from `treemacs-icons'.
Uses `treemacs-icon-fallback' as fallback."
  (declare (side-effect-free t))
  (inline-letevals (mode)
    (inline-quote
     (ht-get treemacs-icons ,mode (with-no-warnings treemacs-icon-fallback)))))