[ESS] Unbind C-<up> and C-<down> from the R process
Alexander Engelhardt
kamaitachi at gmx.de
Sat Feb 25 22:14:30 CET 2012
Hey team,
I am switching between emacs windows with C-arrowkeys, like this:
(global-set-key (kbd "C-<up>") 'windmove-up)
(global-set-key (kbd "C-<down>") 'windmove-down)
(global-set-key (kbd "C-<right>") 'windmove-right)
(global-set-key (kbd "C-<left>") 'windmove-left)
However, in *R* mode, C-<up> runs comint-previous-input, which is the
same as M-p. I would like to switch out of my *R* process window with
C-<up> as well, and I am okay with only using M-p and M-n to cycle
through my command history.
I tried (global-unset-key "\C-<up>") one line before my four
global-set-key commands, but that just deleted the windmove-up binding too.
Is there a way to unbind C-<up> only in the *R* mode? I'm really not
familiar with Lisp yet.
Thanks in advance,
Alex
More information about the ESS-help
mailing list