]> code.delx.au - gnu-emacs-elpa/blob - README.md
README, comments, license
[gnu-emacs-elpa] / README.md
1 About
2 =====
3
4 `diff-hl-mode` provides IDE-like highlighting on the fringe to the left of the
5 changed buffer lines, compared to current HEAD.
6
7 Since it uses the corresponding VC diff command, it's only accurate when a
8 buffer is in saved state.
9
10 Tested with Git, Mercurial, and Bazaar. May work with other VC backends, too.
11
12 Usage
13 =====
14
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`
17
18 (require 'diff-hl)
19
20 and, to use it in all buffers
21
22 (global-diff-hl-mode)
23
24 or, for example, to use it in all `prog-mode` buffers
25
26 (add-hook 'prog-mode-hook 'turn-on-diff-hl-mode)