]> code.delx.au - gnu-emacs-elpa/blobdiff - README.md
Check if the original Dired buffer is still alive
[gnu-emacs-elpa] / README.md
index de67c58d0f8f62f009a050a050520fb90ed3f3d9..325f53ea570c349cbb6f346eafedf7f4106ef82c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,19 +1,42 @@
 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, 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
-Top window: a buffer in this minor mode, bottom window: the corresponding diff.\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
@@ -28,14 +51,21 @@ Notes
   maybe we can do something similar to `highlight-markup-buffers` with a hidden\r
   buffer containing the unmodified copy.\r
 \r
-* There's no fringe when Emacs is running in the console, but the navigation and\r
-  revert commands still work.\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
-* [git-gutter](https://github.com/syohex/emacs-git-gutter) provides interactive\r
-  commands to show/hide/toggle margin indicators for the same information, and\r
-  allows you to customize how the indicators look.\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
@@ -52,3 +82,9 @@ psvn
 (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`, which we use.\r