I am trying to use windmove
with the default bindings and am unable to get the shift key bindings working correctly.
When I hit Shift-<up>
, instead of selecting another window, the point moves and a region is selected.
Also, C-h k RET Shift-<up>
simply shows <up>
.
Using GNU Emacs 24.3.
Here is the entry from my .emacs
.
(global-set-key "\e[1;2A" 'windmove-up)
(global-set-key "\e[1;2B" 'windmove-down)
(global-set-key "\e[1;2C" 'windmove-right)
(global-set-key "\e[1;2D" 'windmove-left)
I am using these entries, instead of windmove-default-keybindings
since the default wasn't working when I opened a non-windowed emacs through tmux.
windmove-default-keybindings
, it does indeed work in the windowed version. It still doesn't work in tmux. However it is beginning to look like more of an inputrc issue sinceC-h k
isn't getting it either.C-h w windmove-down
tell you? Whatever key it says is the key that is bound to that command. Then doC-h k
followed by hitting whatever keyboard key you think your keyboard uses to create the sequenceESC [ 1 ; 2 B
(i.e., "\e[1;2B"). That tells you what that keyboard key (whatever it is) is really bound to, if anything.