Skip to content

Instantly share code, notes, and snippets.

@swaroopch
Last active September 1, 2017 01:03
Show Gist options
  • Save swaroopch/2252a3cf3b1c8ad03513bc594a310f6b to your computer and use it in GitHub Desktop.
Save swaroopch/2252a3cf3b1c8ad03513bc594a310f6b to your computer and use it in GitHub Desktop.
How do I add a new segment to the spacemacs mode line?
(spaceline-define-segment foo
"Foo Docs"
(when (bound-and-true-p spaceline-foo-p)
"Foo: TODO")
:when active
:global-override foo)
(add-to-list 'spacemacs-spaceline-additional-segments '(foo))
(spaceline-spacemacs-theme '(foo))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment