From 299ef87829b086fb938bb2aa1b6b5744f81d1cea Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 24 Sep 2018 21:41:10 +0800 Subject: [PATCH] Update modeline while refreshing vc. --- doom-modeline.el | 1 + 1 file changed, 1 insertion(+) diff --git a/doom-modeline.el b/doom-modeline.el index c5f7b5d..aa4c198 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -693,6 +693,7 @@ directory, the file name, and its state (modified, read-only or non-existent)." (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) (doom-modeline-def-segment vcs "Displays the current branch, colored based on its state."