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

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

[elpa] scratch/dired-git-info 2e986ce 25/33: Allow command to run for di


From: Clemens Radermacher
Subject: [elpa] scratch/dired-git-info 2e986ce 25/33: Allow command to run for dired derived modes, as well
Date: Sun, 17 Feb 2019 13:03:31 -0500 (EST)

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

    Allow command to run for dired derived modes, as well
---
 dired-git-info.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dired-git-info.el b/dired-git-info.el
index 1bb89b5..42aff51 100644
--- a/dired-git-info.el
+++ b/dired-git-info.el
@@ -177,7 +177,7 @@ info format and defaults to `dgi-commit-message-format'."
 (defun dgi-toggle-git-info ()
   "Toggle git message info in current dired buffer."
   (interactive)
-  (unless (eq major-mode 'dired-mode)
+  (unless (derived-mode-p 'dired-mode)
     (user-error "Not in a dired buffer"))
   (unless (locate-dominating-file "." ".git")
     (user-error "Not inside a git repository"))



reply via email to

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