Reputation: 11
I have been struggling to get emacs CUA-mode working in the console where it works fine in X (in an xterm using emacs -nw
).
The main features I want are shift-movement selection and ^C
,^V
,^X
but any more would be helpful. So far I am using a local keyboard and monitor but ultimate goal is to get all this working over ssh
using something like putty.
So far I have been working on getting my terminal to output the same control sequences that emacs expects to see for shift-movement (specifically S-<down>
or <S-down>
) and this works in the console when shift-select-mode is set in .emacs. So far so good, so I can shift select text from any emacs invocation type: X-windows, terminal ($TERM=linux
or $TERM=xterm
). This site has been very useful.
Shift-<down>
displays as follows using cat -v
and emacs happily maps <S-down>
to this control sequence.
cat -v (then type shift-down)
^[O2B
Here's the problem, switch on cua-mode and the shift-selection stops working but ^C
,^V
and ^X
starts working !? So I can either have shift-selection or ^C
,^V
,^X
but not both at the same time.
-------
Setup:
emacs 23
Raspberry Pi
Raspian (similar to Debian)
Upvotes: 1
Views: 584
Reputation: 28541
You might like to try a more recent version of Emacs, since cua-mode has been slowly changed to use the same code as shift-select-mode. In Emacs-24.4, cua-mode actually uses shift-select-mode directly.
Upvotes: 1