]> code.delx.au - gnu-emacs-elpa/blobdiff - README.md
Fix usage of "ignored"
[gnu-emacs-elpa] / README.md
index 09dd7c0d27daa6632d4ae814db066369e6289e01..0f9fe6481ab4b0a6f1830fa6284846c4786fc97a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,17 +1,47 @@
 About\r
 =====\r
 \r
-`diff-hl-mode` highlights uncommitted changes on the left fringe of the window,\r
+`diff-hl-mode` highlights uncommitted changes on the left side of the window,\r
 allows you to jump between and revert them selectively.\r
 \r
-For the usage instructions and the list of commands, see the header comment.\r
+For the usage instructions and the list of commands, see the Commentary section\r
+inside the file.\r
 \r
-Tested with Git, Mercurial, and Bazaar. May work with other VC backends, too.\r
+Tested with Git, Mercurial, Bazaar and SVN. May work with other VC backends, too.\r
 \r
-Screenshot\r
+The package also contains auxiliary modes:\r
+\r
+* `diff-hl-dired-mode` provides similar functionality in Dired.\r
+* `diff-hl-margin-mode` changes the highlighting function to\r
+  use the margin instead of the fringe.\r
+* `diff-hl-amend-mode` shifts the reference revision back by one.\r
+\r
+Check out the Commentary section in each respective file for the usage\r
+instructions.\r
+\r
+Screenshots\r
+=====\r
+\r
+diff-hl-mode\r
+-----\r
+Top window: a buffer in this minor mode, bottom window: the corresponding diff.\r
+\r
+![screenie](screenshot.png)\r
+\r
+diff-hl-dired-mode\r
+-----\r
+\r
+![screenie](screenshot-dired.png)\r
+\r
+diff-hl-margin-mode\r
+-----\r
+\r
+![screenie](screenshot-margin.png)\r
+\r
+Requirements\r
 =====\r
 \r
-[![screenie](http://i.imgur.com/bC8dBs.png)](http://i.imgur.com/bC8dB.png)\r
+Emacs 24+. On OS X, Emacs 24.3 or higher is recommended.\r
 \r
 Notes\r
 =====\r
@@ -21,6 +51,40 @@ Notes
   maybe we can do something similar to `highlight-markup-buffers` with a hidden\r
   buffer containing the unmodified copy.\r
 \r
-* [git-gutter](https://github.com/syohex/emacs-git-gutter) provides the commands\r
-  to show/hide/toggle margin indicators for the same information, and allows you\r
-  to customize how the indicators look.\r
+* We conflict with other modes when they put indicators on the fringe,\r
+  such as [Flycheck](https://github.com/flycheck/flycheck). This is\r
+  rarely a significant problem, since if you're using such a mode,\r
+  you'd usually want to fix all errors and warnings before continuing,\r
+  and then the conflicting indicators go away.\r
+\r
+* There's no fringe when Emacs is running in the console, but the navigation\r
+  and revert commands still work. Consider turning `diff-hl-margin-mode` on,\r
+  to show the indicators in the margin instead.\r
+\r
+* Frame-local and buffer-local values of `line-spacing` are not supported.\r
+\r
+* [emacs-git-gutter](https://github.com/syohex/emacs-git-gutter) shows\r
+  indicators in the margin by default, allows you to customize how the\r
+  indicators look more easily, and has a "stage hunk" command.\r
+\r
+Integration\r
+=====\r
+\r
+If you're using some package other than `vc` to commit changes, it might\r
+not run `vc-checkin-hook` after commits. In that case, you'll need to\r
+either add `diff-hl-update` to the hook it does run, or advise some\r
+function that's called in the buffer after its state has changed.\r
+\r
+psvn\r
+-----\r
+\r
+```lisp\r
+(defadvice svn-status-update-modeline (after svn-update-diff-hl activate)\r
+  (diff-hl-update))\r
+```\r
+\r
+Magit\r
+-----\r
+\r
+If you have a recent enough version installed, it defines\r
+`magit-revert-buffer-hook` (or `magit-not-reverted-hook`), which we use.\r