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 `diff-hl-diff-goto-hunk` and
11 `diff-hl-revert-hunk`, to `C-x v =` and `C-x v n` respectively.
13 Tested with Git, Mercurial, and Bazaar. May work with other VC backends, too.
18 Ensure diff-hl.el is in a directory on your load-path, and add the following to
19 your `~/.emacs` or `~/.emacs.d/init.el`
23 and, to use it in all buffers
27 or, for example, to use it in all `prog-mode` buffers
29 (add-hook 'prog-mode-hook 'turn-on-diff-hl-mode)