[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dired-git-info 6ec44d7 2/8: extend config info in readm
From: |
Clemens Radermacher |
Subject: |
[elpa] externals/dired-git-info 6ec44d7 2/8: extend config info in readme |
Date: |
Wed, 11 Dec 2019 14:32:37 -0500 (EST) |
branch: externals/dired-git-info
commit 6ec44d72698e9f293f2af7315a27c1f2e5c16dd0
Author: Ma'or Kadosh <address@hidden>
Commit: GitHub <address@hidden>
extend config info in readme
---
README.org | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/README.org b/README.org
index c34f9c9..b79f025 100644
--- a/README.org
+++ b/README.org
@@ -11,6 +11,12 @@ the dired buffer:
* Installation
+** MELPA
+
+[[https://melpa.org/#/getting-started][Set up MELPA]], then install via =M-x
package-install RET dired-git-info=
+
+** Manual
+
For manual installation, clone the repository and call:
#+BEGIN_SRC elisp
@@ -19,9 +25,30 @@ For manual installation, clone the repository and call:
* Config
-Bind the minor mode command in dired:
+** Bind the minor mode command in dired
#+BEGIN_SRC elisp
(with-eval-after-load 'dired
(define-key dired-mode-map ")" 'dired-git-info-mode))
#+END_SRC
+
+** Don't hide normal Dired file info
+
+By default, toggling =dired-git-info-mode= also toggles the built-in
=dired-hide-details-mode=, which hides file details such as ownership,
permissions and size. This behaviour can be disabled by overriding
=dgi-auto-hide-details-p=:
+
+#+BEGIN_SRC elisp
+(with-eval-after-load 'dired
+ (setq dgi-auto-hide-details-p nil))
+#+END_SRC
+
+** Enable automatically in every Dired buffer (if in Git repository)
+
+To enable =dired-git-info-mode= whenever you navigate to a Git repository, add
the following snippet:
+#+BEGIN_SRC elisp
+(with-eval-after-load 'dired
+ (defun dired-git-info-mode-loose ()
+ "enable 'dired-git-info-mode only if current Dired buffer is in a Git repo"
+ (if (locate-dominating-file "." ".git")
+ (dired-git-info-mode)))
+ (add-hook 'dired-after-readin-hook 'dired-git-info-mode-loose))
+#+END_SRC
- [elpa] externals/dired-git-info updated (b4c5636 -> 7a43e22), Clemens Radermacher, 2019/12/11
- [elpa] externals/dired-git-info 9f34bd7 1/8: Implement truncating of messages if length exceeds window size, Clemens Radermacher, 2019/12/11
- [elpa] externals/dired-git-info 88d0dc4 6/8: Add dired-git-info-auto-enable, Clemens Radermacher, 2019/12/11
- [elpa] externals/dired-git-info 7a43e22 8/8: Add note about ELPA package delay, Clemens Radermacher, 2019/12/11
- [elpa] externals/dired-git-info 6ec44d7 2/8: extend config info in readme,
Clemens Radermacher <=
- [elpa] externals/dired-git-info 488c172 3/8: melpa -> elpa, Clemens Radermacher, 2019/12/11
- [elpa] externals/dired-git-info 7b14812 5/8: Merge pull request #6 from it-is-wednesday/patch-1, Clemens Radermacher, 2019/12/11
- [elpa] externals/dired-git-info 65a3a9c 7/8: Fix description, Clemens Radermacher, 2019/12/11
- [elpa] externals/dired-git-info cf4e7cf 4/8: replace handrolled auto enable function, Clemens Radermacher, 2019/12/11