(spaceline-define-segment buffer-mode-icon
"an `all-the-icons' segment to show the mode of the current buffer"
(all-the-icons-icon-for-mode major-mode
:v-adjust -0.15
:face :inherit)
:enabled (all-the-icons-available-p))
where all-the-icons-available-p is just an alias for display-graphic-p.
This works... but it doesn't adjust to the introduction of new segments, such as anzu.
also, if emacs loses focus (such as when I) switch to a different program the segments face doesn't change.
I've got a custom segment defined like this:
where
all-the-icons-available-p
is just an alias fordisplay-graphic-p
.This works... but it doesn't adjust to the introduction of new segments, such as anzu.
also, if emacs loses focus (such as when I) switch to a different program the segments face doesn't change.