Emacs n00b here, I've fiddled a bit with it in graphical mode and so far I've found it great. I wanted to give the terminal version a try and found out that there's a few annoying behaviour differences, in particular with shift-selection.
In graphical mode I can combine shift selection (ie holding shift to set a mark) with the arrow keys, the control key (to select whole words) or the origin or end keys (to select the whole/a large part of a line).
In terminal mode the keys work fine on their own (I can select regions while holding shift and moving with the arrow keys*, C-left/right allows me to jump whole words, origin and end bring me where I want to go) but I can't combine them (can't select whole words by holding shift and C-arrowing, or select the remaining part of a line with shift-end or shift-origin).
I also found that C-backspace didn't work (ie didn't erase the whole word) in console while it does in window mode, though I read about M-backspace after looking for a solution.
I searched as thoroughly as I could but could not find how to get the terminal version to behave like the graphical version... Lots of people seem to ask questions about Emacs's shift selection but none of them have quite the same problem... Can someone explain where those behaviour differences come from?
Thanks in advance.
*Though, holding shift, if I go down (with the arrow key) to select whole lines, I can't go up again to unselect them (" is undefined").
[edit /] Okay, so obviously this comes from the fact that my terminal doesn't have the same shortcuts as graphical Emacs does. Fair enough. I see a couple of solutions here:
- getting used to default Emacs shortcuts
- filling my .emacs with global-set-key's. Although I tried
but it doesn't work as I intend it to -_-(fset 'select-to-end [(kbd "C-
<spc>
<end>
")]) (global-set-key (kbd "S-<end>
") 'select-to-end)
$TERM
? – Craig Citro