summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorKรฉvin Le Gouguec <kevin.legouguec@gmail.com>2020-04-13 11:24:11 +0200
committerKรฉvin Le Gouguec <kevin.legouguec@gmail.com>2020-04-13 11:24:11 +0200
commitec430cbb4fb24f3c4d7af77df16e9cda02559163 (patch)
tree857009103c15a85232b69d36b8436291655f7237 /.emacs
parent86bac97580285f020621a94ee8649aee04867b08 (diff)
downloaddotfiles-ec430cbb4fb24f3c4d7af77df16e9cda02559163.tar.xz
Update diff-hl integration with Magit
Cf. <https://github.com/dgutov/diff-hl/commit/a625033fb1dde83f6e4c2fc21f632b22ec34b609>.
Diffstat (limited to '.emacs')
-rw-r--r--.emacs3
1 files changed, 2 insertions, 1 deletions
diff --git a/.emacs b/.emacs
index 6e7206b..19e04f8 100644
--- a/.emacs
+++ b/.emacs
@@ -194,7 +194,8 @@
(new-props '(face compilation-mode-line-run)))
(setcar indicator (apply #'propertize "โš™" (append new-props old-props)))))
-(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh t)
+(add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh)
+(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
;; Don't use Customize here, since that would set the variable's value
;; in stone, and I would miss out on future updates by Magit.