![[Home]](https://www.emacswiki.org/images/logo218x38.png)
This page is for enhancements to Emacs for use with command ‘diff’ and the related Emacs major mode, DiffMode.
Library diff-mode-.el (note the hyphen at the end), extends the functionality in standard library diff-mode.el by highlighting the Diff* buffer differently. Here is a screen shot:
diff-mode-.el is for Emacs 21 and later. For Emacs 20 and older, see library diff+20.el (DiffPlusTwenty). The highlighting of vanilla Emacs 22 and later comes close to that provided by diff-mode-.el.
Libraries diff+.el and diff+20.el extend the functionality in standard library diff.el. The former is for Emacs 21 and later; the latter is for Emacs 20 or older. (Library diff.el changed significantly from Emacs 20 to Emacs 21.)
diff+.el is a minor extension that simply selects the *Diff* buffer and fits its frame when ‘diff’ is finished.diff+20.el is the equivalent for Emacs 20 of library diff-mode-.el (see DiffMode-).‘save-buffer’ offering a filename for a diff file‘ediff’ session from within diff mode.