mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-05 09:21:38 -05:00
Add an icon for helm buffers.
This commit is contained in:
parent
09bbe95a07
commit
958756996a
3 changed files with 10 additions and 4 deletions
|
@ -96,10 +96,10 @@ The `doom-modeline` was designed for minimalism, and offers:
|
|||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## Install
|
||||
|
|
|
@ -491,6 +491,11 @@ Given ~/Projects/FOSS/emacs/lisp/comint.el
|
|||
(when doom-modeline-icon
|
||||
(apply #'all-the-icons-alltheicon args)))
|
||||
|
||||
(defun doom-modeline-icon-fileicon (&rest args)
|
||||
"Display fileicon via ARGS."
|
||||
(when doom-modeline-icon
|
||||
(apply #'all-the-icons-fileicon args)))
|
||||
|
||||
(defun doom-modeline-icon-for-mode (&rest args)
|
||||
"Display icon for major mode via ARGS."
|
||||
(when doom-modeline-icon
|
||||
|
|
|
@ -201,7 +201,7 @@ buffer where knowing the current project directory is important."
|
|||
:face face
|
||||
:v-adjust -0.05
|
||||
:height 1.25)
|
||||
(if (display-graphic-p) " ")
|
||||
(if doom-modeline-icon " ")
|
||||
(propertize (abbreviate-file-name default-directory) 'face face))))
|
||||
|
||||
;;
|
||||
|
@ -2136,6 +2136,8 @@ The cdr can also be a function that returns a name to use.")
|
|||
(when (bound-and-true-p helm-alive-p)
|
||||
(concat
|
||||
" "
|
||||
(doom-modeline-icon-fileicon "elisp" :height 1.0 :v-adjust -0.1 :face 'all-the-icons-dpurple)
|
||||
(if doom-modeline-icon " ")
|
||||
(propertize
|
||||
(let ((custom (cdr (assoc (buffer-name) doom-modeline--helm-buffer-ids)))
|
||||
(case-fold-search t)
|
||||
|
@ -2187,7 +2189,6 @@ The cdr can also be a function that returns a name to use.")
|
|||
(eq 1 (cdr (assq 'follow doom-modeline--helm-current-source))))
|
||||
"HF"))
|
||||
|
||||
|
||||
(provide 'doom-modeline-segments)
|
||||
|
||||
;;; doom-modeline-segments.el ends here
|
||||
|
|
Loading…
Add table
Reference in a new issue