Function: doom-modeline--format-buffer-file-name
doom-modeline--format-buffer-file-name is a natively compiled function
defined in doom-modeline-core.el.
Signature
(doom-modeline--format-buffer-file-name)
Documentation
Get and format the buffer file name.
Source Code
;; Defined in /nix/store/1lcicrdd2r4b8rkc91nnn74ymk1jl6yd-emacs-packages-deps/share/emacs/site-lisp/elpa/doom-modeline-20260928.1632/doom-modeline-core.el
(defun doom-modeline--format-buffer-file-name ()
"Get and format the buffer file name."
(let ((buffer-file-name (file-local-name
(or (buffer-file-name (buffer-base-buffer)) ""))))
(or (and doom-modeline-buffer-file-name-function
(funcall doom-modeline-buffer-file-name-function buffer-file-name))
buffer-file-name)))