c for pick, n and p for navigation.
This commit is contained in:
parent
c2c15b67c4
commit
6c9a49461c
1 changed files with 10 additions and 5 deletions
|
@ -47,11 +47,12 @@
|
||||||
'(2 font-lock-builtin-face)))
|
'(2 font-lock-builtin-face)))
|
||||||
"Font lock keywords for rebase-mode.")
|
"Font lock keywords for rebase-mode.")
|
||||||
|
|
||||||
(defvar key-to-action-map '(("p" . "pick")
|
(defvar key-to-action-map
|
||||||
("r" . "reword")
|
'(("c" . "pick")
|
||||||
("e" . "edit")
|
("r" . "reword")
|
||||||
("s" . "squash")
|
("e" . "edit")
|
||||||
("f" . "fixup"))
|
("s" . "squash")
|
||||||
|
("f" . "fixup"))
|
||||||
"Mapping from key to action.")
|
"Mapping from key to action.")
|
||||||
|
|
||||||
(defvar rebase-mode-map
|
(defvar rebase-mode-map
|
||||||
|
@ -65,6 +66,10 @@
|
||||||
(define-key map (kbd "M-p") 'rebase-mode-move-line-up)
|
(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 "M-n") 'rebase-mode-move-line-down)
|
||||||
(define-key map (kbd "k") 'rebase-mode-kill-line)
|
(define-key map (kbd "k") 'rebase-mode-kill-line)
|
||||||
|
|
||||||
|
(define-key map (kbd "n") 'next-line)
|
||||||
|
(define-key map (kbd "p") 'previous-line)
|
||||||
|
|
||||||
map)
|
map)
|
||||||
"Keymap for rebase-mode. Note this will be added to by the
|
"Keymap for rebase-mode. Note this will be added to by the
|
||||||
top-level code which defines the edit functions.")
|
top-level code which defines the edit functions.")
|
||||||
|
|
Loading…
Reference in a new issue