GNU ELPA - diff-hl


Highlight uncommitted changes using VC
diff-hl-1.9.0.tar, 2022-Aug-29, 160 KiB
Dmitry Gutov <>
Browse ELPA's repository
CGit or Gitweb

To install this package, run in Emacs:

M-x package-install RET diff-hl RET

Full description

`diff-hl-mode' highlights uncommitted changes on the side of the
window (using the fringe, by default), allows you to jump between
the hunks and revert them selectively.

Provided commands:

`diff-hl-diff-goto-hunk'  C-x v =
`diff-hl-revert-hunk'     C-x v n
`diff-hl-previous-hunk'   C-x v [
`diff-hl-next-hunk'       C-x v ]
`diff-hl-show-hunk'       C-x v *
`diff-hl-stage-current-hunk' C-x v S

The mode takes advantage of `smartrep' if it is installed.

Alternatively, it integrates with `repeat-mode' (Emacs 28+).

Add either of the following to your init file.

To use it in all buffers:


Only in `prog-mode' buffers, with `vc-dir' integration:

(add-hook 'prog-mode-hook 'turn-on-diff-hl-mode)
(add-hook 'vc-dir-mode-hook 'turn-on-diff-hl-mode)

Old versions

diff-hl-1.8.8.tar.lz2020-Dec-2022.7 KiB
diff-hl-1.8.7.tar.lz2019-Jul-08 220 KiB
diff-hl-1.8.6.tar.lz2019-Feb-24 220 KiB
diff-hl-1.8.5.tar.lz2018-Dec-09 220 KiB
diff-hl-1.8.4.tar.lz2016-Jun-2310.5 KiB
diff-hl-1.8.3.tar.lz2016-Feb-0410.4 KiB
diff-hl-1.8.2.tar.lz2016-Jan-1110.00 KiB
diff-hl-1.8.1.tar.lz2015-Oct-3110.0 KiB
diff-hl-1.8.0.tar.lz2015-Sep-109.96 KiB
diff-hl-1.7.0.tar.lz2015-Jan-038.36 KiB
diff-hl-1.6.0.tar.lz2014-Aug-117.73 KiB
diff-hl-1.5.3.tar.lz2014-Feb-137.33 KiB
diff-hl-1.5.2.tar.lz2014-Feb-127.30 KiB
diff-hl-1.5.1.tar.lz2013-Nov-117.05 KiB