help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a way to switch among splitted windows counter-clockwisely


From: Kevin Rodgers
Subject: Re: Is there a way to switch among splitted windows counter-clockwisely in Emacs?
Date: Tue, 18 Mar 2008 20:32:04 -0600
User-agent: Thunderbird 2.0.0.12 (Macintosh/20080213)

Rebecca Breu wrote:
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)))

`M-- C-x o' is a little easier to type.

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

[Prev in Thread] Current Thread [Next in Thread]