From 6c9a49461cc0e35087e94c90d5a6c0deb5993ce6 Mon Sep 17 00:00:00 2001 From: Phil Jackson Date: Mon, 31 May 2010 20:59:52 +0100 Subject: [PATCH] c for pick, n and p for navigation. --- rebase-mode.el | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/rebase-mode.el b/rebase-mode.el index 0671f05b..fab1584d 100644 --- a/rebase-mode.el +++ b/rebase-mode.el @@ -47,11 +47,12 @@ '(2 font-lock-builtin-face))) "Font lock keywords for rebase-mode.") -(defvar key-to-action-map '(("p" . "pick") - ("r" . "reword") - ("e" . "edit") - ("s" . "squash") - ("f" . "fixup")) +(defvar key-to-action-map + '(("c" . "pick") + ("r" . "reword") + ("e" . "edit") + ("s" . "squash") + ("f" . "fixup")) "Mapping from key to action.") (defvar rebase-mode-map @@ -65,6 +66,10 @@ (define-key map (kbd "M-p") 'rebase-mode-move-line-up) (define-key map (kbd "M-n") 'rebase-mode-move-line-down) (define-key map (kbd "k") 'rebase-mode-kill-line) + + (define-key map (kbd "n") 'next-line) + (define-key map (kbd "p") 'previous-line) + map) "Keymap for rebase-mode. Note this will be added to by the top-level code which defines the edit functions.")