mirror of
https://github.com/correl/doom-modeline.git
synced 2024-12-25 03:00:11 +00:00
Update modeline while refreshing vc.
This commit is contained in:
parent
c3b3f802e4
commit
299ef87829
1 changed files with 1 additions and 0 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue