4 `diff-hl-mode` provides IDE-like highlighting of `vc-diff` results on the left
5 fringe of the current buffer.
7 Since it uses the corresponding VC diff command, it's only accurate when the
8 buffer is in saved state.
10 Additionally, it defines and binds
12 * `diff-hl-diff-goto-hunk` (`C-x v =`)
13 * `diff-hl-revert-hunk` (`C-x v n`)
14 * `diff-hl-previous-hunk` (`C-x v [`)
15 * `diff-hl-next-hunk` (`C-x v ]`)
17 The mode takes advantage of `smartrep` if it is installed.
19 Tested with Git, Mercurial, and Bazaar. May work with other VC backends, too.
24 Ensure `diff-hl.el` is in a directory on your load-path, and add the following
25 to your `~/.emacs` or `~/.emacs.d/init.el`
29 and, to use it in all buffers
33 or, for example, to use it in all `prog-mode` and `vc-dir-mode` buffers
35 (add-hook 'prog-mode-hook 'turn-on-diff-hl-mode)
36 (add-hook 'vc-dir-mode-hook 'turn-on-diff-hl-mode)