Minor improve evil state.

This commit is contained in:
Vincent Zhang 2018-08-12 01:34:44 +08:00
parent 481021890d
commit dd93ffc199

View file

@ -991,7 +991,7 @@ See `mode-line-percent-position'.")
"The current evil state. Requires `evil-mode' to be enabled."
(when (bound-and-true-p evil-local-mode)
(let ((tag (evil-state-property evil-state :tag t)))
(propertize (s-trim-right tag) 'face
(propertize tag 'face
(if (doom-modeline--active)
(cond ((eq tag evil-normal-state-tag) 'doom-modeline-info)
((eq tag evil-emacs-state-tag) 'doom-modeline-warning)