all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* C-x C-o but in the other direction?
@ 2009-04-21 21:13 glen stark
  2009-04-21 21:58 ` Evans Winner
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: glen stark @ 2009-04-21 21:13 UTC (permalink / raw)
  To: help-gnu-emacs

Hi.

If typically run emacs with 3 windows open.  I often find myself having to 
do C-x C-o twice to get to the counter clockwise window.  Is there a 
'select previous window' command in emacs?

Thanks



-- 
www.glenstark.net


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: C-x C-o but in the other direction?
  2009-04-21 21:13 C-x C-o but in the other direction? glen stark
@ 2009-04-21 21:58 ` Evans Winner
  2009-04-22  5:51   ` Nikolaj Schumacher
  2009-04-22  5:49 ` tiefeng wu
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Evans Winner @ 2009-04-21 21:58 UTC (permalink / raw)
  To: help-gnu-emacs

glen stark <mail@nospam.glenstark.net> writes:

    If typically run emacs with 3 windows open.  I often
    find myself having to do C-x C-o twice to get to the
    counter clockwise window.  Is there a 'select previous
    window' command in emacs?

I am not sure, but you could do C-u -1 C-x o RET or make a
command that does that like:

(defun previous-window ()
  "Select the previous window."
  (interactive)
  (other-window -1))

or something like that and bind it to a key.
 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: C-x C-o but in the other direction?
  2009-04-21 21:13 C-x C-o but in the other direction? glen stark
  2009-04-21 21:58 ` Evans Winner
@ 2009-04-22  5:49 ` tiefeng wu
  2009-04-22 11:41 ` Bernardo
       [not found] ` <mailman.5795.1240400708.31690.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 6+ messages in thread
From: tiefeng wu @ 2009-04-22  5:49 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 673 bytes --]

2009/4/22 glen stark <mail@nospam.glenstark.net>

> Hi.
>
> If typically run emacs with 3 windows open.  I often find myself having to
> do C-x C-o twice to get to the counter clockwise window.  Is there a
> 'select previous window' command in emacs?
>
> Thanks
>
>
>
> --
> www.glenstark.net
>

there are "previous-buffer" and "previous-multiframe-window" commands
first one switch to previous buffer window in same window where you are
second one switch to previous "frame window" if you have pop-up-frames
variable set to t

I recommend you visit http://www.emacswiki.org/emacs-en/DrewAdams#toc7
and read about Drew Adams elisp libraries

cheers!

tiefeng wu
2009-04-22

[-- Attachment #2: Type: text/html, Size: 1273 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: C-x C-o but in the other direction?
  2009-04-21 21:58 ` Evans Winner
@ 2009-04-22  5:51   ` Nikolaj Schumacher
  0 siblings, 0 replies; 6+ messages in thread
From: Nikolaj Schumacher @ 2009-04-22  5:51 UTC (permalink / raw)
  To: Evans Winner; +Cc: help-gnu-emacs

Evans Winner <thorne@timbral.net> wrote:

> I am not sure, but you could do C-u -1 C-x o RET

You can also give a negative prefix with C-- or M-- instead of C-u -1.

But for me, that's still too much to type.
Maybe you'll like:
http://nschum.de/src/emacs/window-numbering-mode/


regards,
Nikolaj Schumacher




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: C-x C-o but in the other direction?
  2009-04-21 21:13 C-x C-o but in the other direction? glen stark
  2009-04-21 21:58 ` Evans Winner
  2009-04-22  5:49 ` tiefeng wu
@ 2009-04-22 11:41 ` Bernardo
       [not found] ` <mailman.5795.1240400708.31690.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 6+ messages in thread
From: Bernardo @ 2009-04-22 11:41 UTC (permalink / raw)
  To: help-gnu-emacs

> If typically run emacs with 3 windows open.  I often find myself having to 
> do C-x C-o twice to get to the counter clockwise window.  Is there a 
> 'select previous window' command in emacs?
> 
some people prefer windomove package; it uses shift + arrow keys to move 
between windows

see windmove.el or http://www.emacswiki.org/emacs-en/WindMove




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: C-x C-o but in the other direction?
       [not found] ` <mailman.5795.1240400708.31690.help-gnu-emacs@gnu.org>
@ 2009-04-23 17:50   ` glen stark
  0 siblings, 0 replies; 6+ messages in thread
From: glen stark @ 2009-04-23 17:50 UTC (permalink / raw)
  To: help-gnu-emacs

Just want to thank everyone for the tips.  I'll be trying them out now to 
see which I like best.

Glen


-- 
www.glenstark.net


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-04-23 17:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-21 21:13 C-x C-o but in the other direction? glen stark
2009-04-21 21:58 ` Evans Winner
2009-04-22  5:51   ` Nikolaj Schumacher
2009-04-22  5:49 ` tiefeng wu
2009-04-22 11:41 ` Bernardo
     [not found] ` <mailman.5795.1240400708.31690.help-gnu-emacs@gnu.org>
2009-04-23 17:50   ` glen stark

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.