about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gitsum.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/gitsum.el b/gitsum.el
index 2ae37d9..85b0995 100644
--- a/gitsum.el
+++ b/gitsum.el
@@ -14,6 +14,7 @@
 (easy-mmode-defmap gitsum-diff-mode-shared-map
   '(("c" . gitsum-commit)
     ("g" . gitsum-refresh)
+    ("s" . gitsum-switch-to-git-status)
     ("q" . gitsum-kill-buffer)
     ("u" . gitsum-undo))
   "Basic keymap for `gitsum-diff-mode', bound to various prefix keys.")
@@ -95,6 +96,11 @@ A numeric argument serves as a repeat count."
   (unless (buffer-modified-p)
     (kill-buffer nil)))
 
+(defun gitsum-switch-to-git-status ()
+  "Switch to git-status."
+  (interactive)
+  (git-status default-directory))
+
 (defun gitsum ()
   "Entry point into gitsum-diff-mode."
   (interactive)