meili100 wrote:
Suppose you have 5 splitted windows and you are in window 2. You want to
switch to window 1.
I know a way to switch to the next window is Ctrl-x o, but you have to
switch 4 times to window 1. Is there a way to switch counter-clockwisely?
The function bound to C-x o, other-window, takes an optional prefix
argument. Invoking it with prefix argument -1 would do what you like:
C-u -1 C-x o. Since this is quite awful to type, you could define a new
keybinding, say:
(global-set-key "\C-xp" '(lambda ()
(interactive)
(other-window -1)))