diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2008-02-04 16:44:56 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2008-02-04 16:44:56 +0100 |
commit | d331786f7c4db692f10ce651d05d21f5ebe2ec9d (patch) | |
tree | 2896620e580e4da8255e1f8d5f6f667fd874a029 | |
parent | 0a97a9c3191884bcab237191c005df1d7f4e8d91 (diff) | |
download | gitsum-d331786f7c4db692f10ce651d05d21f5ebe2ec9d.tar.gz gitsum-d331786f7c4db692f10ce651d05d21f5ebe2ec9d.tar.xz gitsum-d331786f7c4db692f10ce651d05d21f5ebe2ec9d.zip |
Add a short-cut to switch to git-status
-rw-r--r-- | gitsum.el | 6 |
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) |