Run `diff-hl-magit-post-refresh` after committing

Otherwise `diff-hl-mode` still highlights uncommitted changes
This commit is contained in:
Jeremy Bi 2016-07-06 10:27:38 +08:00 committed by syl20bnr
parent 7e82535bf3
commit 81626bee0b
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@
(progn
(setq diff-hl-side 'right)
(when (eq version-control-diff-tool 'diff-hl)
(when (configuration-layer/package-usedp 'magit)
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh))
(when version-control-global-margin
(global-diff-hl-mode))
(unless (display-graphic-p)