Call other-window
with a negative count. This can be done interactively by pressing C-- C-x o. The "C--" is supplying a numeric argument of -1. You can supply any numeric (NUM) by pressing C-u num.
If you don't want to press the additional key cord, just write you own command command to hard code the "-1" argument:
Add this code to your .emacs
file
(global-set-key "\C-xp" (lambda ()
(interactive)
(other-window -1)))
How does it work? "C-x o" calls the function other-window
(to find that out use C-h k
and then type the key combo).
In the code above we define an anonymous function, make it interactive and do what we want. Then we bind that function to the key combinaion C-x p
.