Slightly change evil-state.

This commit is contained in:
Vincent Zhang 2018-09-11 17:41:00 +08:00
parent dcb106fb5f
commit 54c2824125

View file

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