From d331786f7c4db692f10ce651d05d21f5ebe2ec9d Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 4 Feb 2008 16:44:56 +0100 Subject: Add a short-cut to switch to git-status --- gitsum.el | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit 1.4.1