Possible Duplicate:
Emacs, switch to previous window
other-window
advances me to the next window in the current frame, but I also want a way to move back to the previous window.
Emacs has next-buffer
and previous-buffer
, but no analogous interactive functions for window navigation. Just other-window
.
To select a different window, click with Mouse-1 on its mode line. With the keyboard, you can switch windows by typing C-x o ( other-window ).
You can split a window horizontally or vertically by clicking C-Mouse-2 in the mode line or the scroll bar.
Provide a negative argument with C-u - ("Control+U" then "minus"), or even more simply C-- ("Control minus").
From code, (other-window -1)
or (other-frame -1)
will do the same thing.
Check out the help for the key you want to reverse (e.g. C-h k C-x o to show help for C-x o) and if it says "A negative argument..." you know you can use C--.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With