emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] scratch/dired-git-info 16c7a1a 15/33: Hide details when showing g


From: Clemens Radermacher
Subject: [elpa] scratch/dired-git-info 16c7a1a 15/33: Hide details when showing git info
Date: Sun, 17 Feb 2019 13:03:29 -0500 (EST)

branch: scratch/dired-git-info
commit 16c7a1a669a071a061b9fa8dd0796c515a8a1a9b
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>

    Hide details when showing git info
---
 dired-git-info.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dired-git-info.el b/dired-git-info.el
index 471fef4..428c7d3 100644
--- a/dired-git-info.el
+++ b/dired-git-info.el
@@ -34,6 +34,12 @@
   '((t (:inherit font-lock-comment-face)))
   "Face for commit message overlays.")
 
+(defvar dgi-auto-hide-details t
+  "If details should get hidden automatically.
+
+Uses `dired-hide-details-mode' to hide details when showing git
+info.")
+
 (defvar dgi-commit-message-format "%s\t%cr"
   "Format of the commit messages.
 
@@ -342,6 +348,9 @@ info format and defaults to `dgi-commit-message-format'."
     (user-error "Not in a dired buffer"))
   (if dgi--commit-ovs
       (dgi--cleanup)
+    (when dgi-auto-hide-details
+      (unless dired-hide-details-mode
+        (dired-hide-details-mode 1)))
     (let* ((files (dgi--save-marked
                    (dired-unmark-all-marks)
                    (dired-toggle-marks)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]