Function: doom-modeline-segment--helm-buffer-id
doom-modeline-segment--helm-buffer-id is a natively compiled function
defined in doom-modeline-segments.el.
Signature
(doom-modeline-segment--helm-buffer-id)
Documentation
Helm session identifier.
Source Code
;; Defined in /nix/store/1lcicrdd2r4b8rkc91nnn74ymk1jl6yd-emacs-packages-deps/share/emacs/site-lisp/elpa/doom-modeline-20260928.1632/doom-modeline-segments.el
(doom-modeline-def-segment helm-buffer-id
"Helm session identifier."
(when (bound-and-true-p helm-alive-p)
(let ((sep (doom-modeline-spc)))
(concat
sep
(when doom-modeline-icon
(concat
(doom-modeline-icon 'sucicon "nf-custom-emacs" nil nil
:face (doom-modeline-face
(and doom-modeline-major-mode-color-icon
'nerd-icons-blue)))
sep))
(propertize
(let ((custom (cdr (assoc (buffer-name) doom-modeline--helm-buffer-ids)))
(case-fold-search t)
(name (replace-regexp-in-string "-" " " (buffer-name))))
(cond ((stringp custom) custom)
((functionp custom) (funcall custom))
(t
(string-match "\\*helm:? \\(mode \\)?\\([^\\*]+\\)\\*" name)
(concat "HELM " (capitalize (match-string 2 name))))))
'face (doom-modeline-face 'doom-modeline-buffer-file))
sep))))