branch: externals/dired-git-info
commit cf4e7cf257e3b228503a059f9578567e6437ed8e
Author: Ma'or Kadosh <4103412+it-is-wednes...@users.noreply.github.com>
Commit: GitHub <nore...@github.com>

    replace handrolled auto enable function
    
    with dired-git-info-auto-enable
---
 README.org | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/README.org b/README.org
index fc3ea0f..b97332b 100644
--- a/README.org
+++ b/README.org
@@ -46,9 +46,5 @@ By default, toggling =dired-git-info-mode= also toggles the 
built-in =dired-hide
 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))
+  (add-hook 'dired-after-readin-hook 'dired-git-info-auto-enable))
 #+END_SRC

Reply via email to