Function: doom-modeline-buffer-file-state-icon

doom-modeline-buffer-file-state-icon is a natively compiled function defined in doom-modeline-segments.el.

Signature

(doom-modeline-buffer-file-state-icon ICON UNICODE TEXT FACE)

Documentation

Displays an ICON of buffer state with FACE.

UNICODE and TEXT are the alternatives if it is not applicable. Uses nerd-icons-mdicon to fetch the icon.

Source Code

;; Defined in /nix/store/1lcicrdd2r4b8rkc91nnn74ymk1jl6yd-emacs-packages-deps/share/emacs/site-lisp/elpa/doom-modeline-20260928.1632/doom-modeline-segments.el
(defun doom-modeline-buffer-file-state-icon (icon unicode text face)
  "Displays an ICON of buffer state with FACE.
UNICODE and TEXT are the alternatives if it is not applicable.
Uses `nerd-icons-mdicon' to fetch the icon."
  (doom-modeline-icon 'mdicon icon unicode text :face face))