From dd93ffc199ad3a7e8b8bd8d2acb79d457ba82b7b Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sun, 12 Aug 2018 01:34:44 +0800 Subject: [PATCH] Minor improve evil state. --- doom-modeline.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doom-modeline.el b/doom-modeline.el index 60c2f04..21171a8 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -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)