Skip to content

Instantly share code, notes, and snippets.

@TheBB
Last active August 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheBB/54e906df5b4b83bb5e94 to your computer and use it in GitHub Desktop.
Save TheBB/54e906df5b4b83bb5e94 to your computer and use it in GitHub Desktop.
(spacemacs|add-toggle which-function-mode
:status which-function-mode
:on (which-function-mode)
:off (which-function-mode -1)
:evil-leader "of")
(spacemacs|define-mode-line-segment which-function
which-func-format
:when (bound-and-true-p which-function-mode))
(setq spacemacs-mode-line-right
'(which-function
(battery :when active)
selection-info
((buffer-encoding-abbrev point-position line-column) :separator " | ")
((global-mode new-version) :when active)
buffer-position
hud
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment