From 969d00129005a09eea8d04eba4fa139376cf4615 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Fri, 23 Nov 2018 22:36:26 +0800 Subject: [PATCH] Update modeline after refreshing vc state. --- doom-modeline.el | 1 + 1 file changed, 1 insertion(+) diff --git a/doom-modeline.el b/doom-modeline.el index 1184ca9..9ae950b 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -824,6 +824,7 @@ mouse-3: Toggle minor modes" (add-hook 'after-revert-hook #'doom-modeline--update-vcs) (add-hook 'after-save-hook #'doom-modeline--update-vcs) (add-hook 'find-file-hook #'doom-modeline--update-vcs t) +(advice-add #'vc-refresh-state :after #'doom-modeline--update-vcs) (advice-add #'select-window :after #'doom-modeline--update-vcs) (doom-modeline-def-segment vcs