about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2008-02-04 16:44:56 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2008-02-04 16:44:56 +0100
commitd331786f7c4db692f10ce651d05d21f5ebe2ec9d (patch)
tree2896620e580e4da8255e1f8d5f6f667fd874a029
parent0a97a9c3191884bcab237191c005df1d7f4e8d91 (diff)
downloadgitsum-d331786f7c4db692f10ce651d05d21f5ebe2ec9d.tar.gz
gitsum-d331786f7c4db692f10ce651d05d21f5ebe2ec9d.tar.xz
gitsum-d331786f7c4db692f10ce651d05d21f5ebe2ec9d.zip
Add a short-cut to switch to git-status
-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)