From 54c28241253b3036ce76a71ef7c9a3edc14e0847 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 11 Sep 2018 17:41:00 +0800 Subject: [PATCH] Slightly change evil-state. --- doom-modeline.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 45dd965..05142c3 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -451,7 +451,7 @@ active.") if (= d 0) collect (string-to-char " ") else collect (string-to-char ".")) (if (eq idx len) "\"};" "\",\n"))))) - 'xpm t :ascent 'center))))) + 'xpm t :ascent 'center))))) (defun doom-modeline-buffer-file-name () "Propertized variable `buffer-file-name' based on `+doom-modeline-buffer-file-name-style'." @@ -1029,7 +1029,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 tag 'face + (propertize (s-trim-right tag) 'face (if (doom-modeline--active) (cond ((eq tag evil-normal-state-tag) 'doom-modeline-evil-normal-state) ((eq tag evil-emacs-state-tag) 'doom-modeline-evil-emacs-state)