about | blog | config | notes | github

1. Diff-HL: Highlight Uncommited Changes

This package indicates which lines have been changed within GNU/Emacs buffers regardless of which version control system is used. Although, I only use Git.

2. Package Install

(use-package diff-hl

If we are using a version of Magit that is greater than 2.4.0, we need to also add the following hooks.

(add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh)
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
(provide 'init-diff-hl)

Created: 2021-11-13

Emacs 26.1 (Org mode 9.5)