Show some extra evil-state info in modeline
This commit is contained in:
parent
7de3d74dfa
commit
6b25025611
1 changed files with 12 additions and 0 deletions
|
@ -88,6 +88,18 @@ WIDGET is ignored."
|
||||||
(ignore widget)
|
(ignore widget)
|
||||||
(format-mode-line "%l/%c:%p")))
|
(format-mode-line "%l/%c:%p")))
|
||||||
|
|
||||||
|
(defun my-smt-extra-minor-modes (minor-modes)
|
||||||
|
"Add some more info to MINOR-MODES."
|
||||||
|
(if (boundp 'evil-state)
|
||||||
|
(let ((l (capitalize (elt (symbol-name evil-state) 0))))
|
||||||
|
`(tspan ,minor-modes (tspan :fill "#54a875" ,(char-to-string l))))
|
||||||
|
minor-modes))
|
||||||
|
|
||||||
|
(add-function
|
||||||
|
:filter-return
|
||||||
|
(symbol-function 'smt/minor-mode-indicator-text)
|
||||||
|
#'my-smt-extra-minor-modes)
|
||||||
|
|
||||||
(smt/defrow my-smt-right
|
(smt/defrow my-smt-right
|
||||||
:prototype 'default-right
|
:prototype 'default-right
|
||||||
:widgets '(my-smt-jabber-activity
|
:widgets '(my-smt-jabber-activity
|
||||||
|
|
Loading…
Reference in a new issue