Skip to content

Commit 0bd6093

Browse files
committed
fix(emacs): diff-hl: magit integration
Add hooks as explained in https://github.com/dgutov/diff-hl#magit
1 parent a8317a3 commit 0bd6093

File tree

1 file changed

+3
-0
lines changed
  • modules/nixos/programs/emacs

1 file changed

+3
-0
lines changed

modules/nixos/programs/emacs/init.el

+3
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,9 @@
465465

466466
(use-package magit
467467
:hook (magit-log-mode . magit-diff-show-or-scroll-up)
468+
:init
469+
(add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh)
470+
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
468471
:custom
469472
(magit-no-confirm '(set-and-push stage-all-changes unstage-all-changes))
470473
(magit-bury-buffer-function #'magit-restore-window-configuration)

0 commit comments

Comments
 (0)