domtronn / spaceline-all-the-icons.el

A Spaceline Mode Line theme using All The Icons for Emacs
MIT License
235 stars 25 forks source link

using the correct face for custom segments #112

Closed mohkale closed 4 years ago

mohkale commented 4 years ago

I've got a custom segment defined like this:

(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.

working

broken

also, if emacs loses focus (such as when I) switch to a different program the segments face doesn't change.

focus

mohkale commented 4 years ago

sorry, meant too post this to the main spaceline repo