4 `diff-hl-mode` provides IDE-like highlighting on the fringe to the left of the
5 changed buffer lines, compared to current HEAD.
7 Since it uses the corresponding VC diff command, it's only accurate when a
8 buffer is in saved state.
10 Tested with Git, Mercurial, and Bazaar. May work with other VC backends, too.
15 Ensure diff-hl.el is in a directory on your load-path, and add the following to
16 your `~/.emacs` or `~/.emacs.d/init.el`
20 and, to use it in all buffers
24 or, for example, to use it in all `prog-mode` buffers
26 (add-hook 'prog-mode-hook 'turn-on-diff-hl-mode)