* Re: Is there a way to switch among splitted windows counter-clockwisely in Emacs?
[not found] <16012431.post@talk.nabble.com>
@ 2008-03-18 9:25 ` Rebecca Breu
2008-03-19 2:32 ` Kevin Rodgers
[not found] ` <mailman.9088.1205846683.18990.help-gnu-emacs@gnu.org>
1 sibling, 1 reply; 4+ messages in thread
From: Rebecca Breu @ 2008-03-18 9:25 UTC (permalink / raw)
To: Help-gnu-emacs
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)))
Yours,
Rebecca
--
View this message in context: http://www.nabble.com/Is-there-a-way-to-switch-among-splitted-windows-counter-clockwisely-in-Emacs--tp16012431p16117089.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is there a way to switch among splitted windows counter-clockwisely in Emacs?
2008-03-18 9:25 ` Is there a way to switch among splitted windows counter-clockwisely in Emacs? Rebecca Breu
@ 2008-03-19 2:32 ` Kevin Rodgers
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2008-03-19 2:32 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.9088.1205846683.18990.help-gnu-emacs@gnu.org>]
* Re: Is there a way to switch among splitted windows counter-clockwisely in Emacs?
[not found] ` <mailman.9088.1205846683.18990.help-gnu-emacs@gnu.org>
@ 2008-03-18 17:39 ` B. T. Raven
2008-03-18 17:43 ` B. T. Raven
0 siblings, 1 reply; 4+ messages in thread
From: B. T. Raven @ 2008-03-18 17:39 UTC (permalink / raw)
To: help-gnu-emacs
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)))
>
>
> Yours,
> Rebecca
From menu:
Options > Customize Emacs > Specific Option
Iswitchb Mode
Turn it on
Save for Current and Future Sessions
This will put something like:
'(iswitchb-mode t nil (iswitchb))
into the custom-set-variables section of your .emacs
Then, so you don't have to restart Emacs just place cursor after this
expression in .emacs and press C-x C-e to evaluate it. Or maybe that is
already accomplished by the Save for Current Session option in
Customize; I never checked.
Works for me.
Ed
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is there a way to switch among splitted windows counter-clockwisely in Emacs?
2008-03-18 17:39 ` B. T. Raven
@ 2008-03-18 17:43 ` B. T. Raven
0 siblings, 0 replies; 4+ messages in thread
From: B. T. Raven @ 2008-03-18 17:43 UTC (permalink / raw)
To: help-gnu-emacs
B. T. Raven wrote:
> 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)))
>>
>>
>> Yours,
>> Rebecca
>
> From menu:
> Options > Customize Emacs > Specific Option
> Iswitchb Mode
> Turn it on
> Save for Current and Future Sessions
>
> This will put something like:
>
> '(iswitchb-mode t nil (iswitchb))
>
> into the custom-set-variables section of your .emacs
>
> Then, so you don't have to restart Emacs just place cursor after this
> expression in .emacs and press C-x C-e to evaluate it. Or maybe that is
> already accomplished by the Save for Current Session option in
> Customize; I never checked.
>
> Works for me.
>
> Ed
Oops! I forgot final step. Iswitchb mode changes the way C-x b works.
You get a list of all (or of a subset of buffers with customizable
filtering) from which you can quickly select with buffer name completion.
Ed
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-19 2:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <16012431.post@talk.nabble.com>
2008-03-18 9:25 ` Is there a way to switch among splitted windows counter-clockwisely in Emacs? Rebecca Breu
2008-03-19 2:32 ` Kevin Rodgers
[not found] ` <mailman.9088.1205846683.18990.help-gnu-emacs@gnu.org>
2008-03-18 17:39 ` B. T. Raven
2008-03-18 17:43 ` B. T. Raven
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.