Add alternative keybinds for goto/move cell commands

As it seems that some smartrep keybinds does not work properly in
MuMaMo-enabled buffer, this change provides some shortcuts for these
keybinds.

I sent a pull request to smartrep.el regarding this issue:
myuhe/smartrep.el#7
This commit is contained in:
Takafumi Arakaki 2012-06-14 16:22:13 +02:00
parent 6978c29ea2
commit 49fa8629b9

View file

@ -1083,8 +1083,12 @@ Do not use `python-mode'. Use plain mode when MuMaMo is not installed::
(define-key map "\C-c\C-m" 'ein:notebook-merge-cell-command)
(define-key map "\C-c\C-n" 'ein:notebook-goto-next-input-command)
(define-key map "\C-c\C-p" 'ein:notebook-goto-prev-input-command)
(define-key map (kbd "C-<up>") 'ein:notebook-goto-prev-input-command)
(define-key map (kbd "C-<down>") 'ein:notebook-goto-next-input-command)
(define-key map (kbd "C-c <up>") 'ein:notebook-move-cell-up-command)
(define-key map (kbd "C-c <down>") 'ein:notebook-move-cell-down-command)
(define-key map (kbd "M-<up>") 'ein:notebook-move-cell-up-command)
(define-key map (kbd "M-<down>") 'ein:notebook-move-cell-down-command)
(define-key map "\C-c\C-f" 'ein:notebook-request-tool-tip-or-help-command)
(define-key map "\C-c\C-i" 'ein:notebook-complete-command)
(define-key map "\C-c\C-x" 'ein:notebook-view-traceback)