From 8e0ed6239b5d1f8d843a7f015c7860fd6e901c7e Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 5 Mar 2019 00:01:40 +0700 Subject: [PATCH] Update buffer file name in evil. See https://github.com/seagle0128/doom-modeline/issues/129#issuecomment-469327822. --- doom-modeline-segments.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 1089f91..78a65d8 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -282,6 +282,8 @@ mouse-1: Previous buffer\nmouse-3: Next buffer" (add-hook 'after-save-hook #'doom-modeline-update-buffer-file-name) (add-hook 'after-change-functions #'doom-modeline-update-buffer-file-name) (add-hook 'clone-indirect-buffer-hook #'doom-modeline-update-buffer-file-name) +(add-hook 'evil-insert-state-exit-hook #'doom-modeline-update-buffer-file-name) +(add-hook 'evil-insert-state-exit-hook #'doom-modeline-update-buffer-file-state-icon) (advice-add #'rename-buffer :after #'doom-modeline-update-buffer-file-name) (advice-add #'set-visited-file-name :after #'doom-modeline-update-buffer-file-name) (advice-add #'undo :after #'doom-modeline-update-buffer-file-name)