Update modeline after refreshing vc state.

This commit is contained in:
Vincent Zhang 2018-11-23 22:36:26 +08:00
parent 34c6f91d36
commit 969d001290

View file

@ -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