├── Makefile
├── README.md
├── diffview.el
└── screenshots
├── diffview-after.png
└── diffview-before.png
/Makefile:
--------------------------------------------------------------------------------
1 | README.md: make-readme-markdown.el diffview.el
2 | emacs --script $< < diffview.el >$@
3 |
4 | ifeq ($(LOCAL),1)
5 | make-readme-markdown.el:
6 | cp -v ../make-readme-markdown/make-readme-markdown.el .
7 | else
8 | make-readme-markdown.el:
9 | wget -q -O $@ https://raw.github.com/mgalgs/make-readme-markdown/master/make-readme-markdown.el
10 | endif
11 |
12 | .INTERMEDIATE: make-readme-markdown.el
13 | .PHONY: README.md
14 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | ## diffview.el
3 | *View diffs in side-by-side format*
4 |
5 | ---
6 | [](http://www.gnu.org/licenses/gpl-3.0.html)
7 | [](http://melpa.org/#/diffview)
8 | [](http://stable.melpa.org/#/diffview)
9 |
10 | Render a unified diff (top/bottom) in an easy-to-comprehend side-by-side
11 | format. This comes in handy for reading patches from mailing lists (or
12 | from whencever you might acquire them).
13 |
14 | ### Installation
15 |
16 |
17 | M-x package-install diffview
18 |
19 | ### Usage
20 |
21 |
22 | The following functions are provided for launching a side-by-side diff:
23 |
24 | * `diffview-current` : View the current diff buffer side-by-side
25 | * `diffview-region` : View the current diff region side-by-side
26 | * `diffview-message` : View the current email message (which presumably
27 | contains a patch) side-by-side
28 |
29 | ### Keybindings
30 |
31 |
32 | * `}` : Next file
33 | * `{` : Previous file
34 | * `l` : Align windows
35 | * `q` : Quit
36 |
37 | ### Screenshots
38 |
39 |
40 | Before:
41 |
42 |
43 | After:
44 |
45 |
46 |
47 |
48 | ### Function and Macro Documentation
49 |
50 | #### `(diffview-current)`
51 |
52 | Show current diff buffer in a side-by-side view.
53 |
54 | #### `(diffview-region)`
55 |
56 | Show current diff region in a side-by-side view.
57 |
58 | #### `(diffview-message)`
59 |
60 | Show `message-mode` buffer in a side-by-side view.
61 | This is useful for reading patches from mailing lists.
62 |
63 | -----
64 |