Skip to content

using the correct face for custom segments #218

@mohkale

Description

@mohkale

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions