From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: weber Newsgroups: gmane.emacs.help Subject: Re: Quick cycle Date: Fri, 11 Apr 2008 05:01:01 -0700 (PDT) Organization: http://groups.google.com Message-ID: <365f186e-7b67-482b-9369-9848657c59ef@c65g2000hsa.googlegroups.com> References: <84d83544-22a7-4462-b9bc-32d6ffc3d7c7@t12g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1207917702 29009 80.91.229.12 (11 Apr 2008 12:41:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2008 12:41:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 11 14:42:14 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JkIZB-0002hK-Of for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Apr 2008 14:41:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkIYX-00080I-Nc for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Apr 2008 08:40:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!c65g2000hsa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 201.21.216.108 Original-X-Trace: posting.google.com 1207915261 22099 127.0.0.1 (11 Apr 2008 12:01:01 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 11 Apr 2008 12:01:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c65g2000hsa.googlegroups.com; posting-host=201.21.216.108; posting-account=7GrjgQoAAAD6slWURausdJnhFDkmQYC8 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 stargate.datacom:3128 (squid/2.6.STABLE5) Original-Xref: shelby.stanford.edu gnu.emacs.help:157869 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53238 Archived-At: On Apr 11, 3:40=A0am, superheat...@yahoo.ca wrote: > Hello, I have a quick question. > > I have 2 vertical splits, with an additional horizontal split in each > in one window. Is there a way to quickly switch between them without > cycling using C-x o for instance, or C-x b and typing the name? > Perhaps numbering? > > Right now I'm using my mouse, but it strikes me as very un-emacs, and > taking the hand off the keyboard is as much a pain as cycling through > each until I get to the split I want. > > - Edward This is from jao [1]: ;;;; window navegation (defun jao-first-window () (interactive) (select-window (frame-first-window))) (defmacro jao-nth-window (n) `'(lambda () (interactive) (jao-first-window) (other-window ,n))) and then he defines some keys: (global-set-key (kbd "\C-c1") 'jao-first-window) (global-set-key (kbd "\C-c2") (jao-nth-window 1)) (global-set-key (kbd "\C-c3") (jao-nth-window 2)) (global-set-key (kbd "\C-c4") (jao-nth-window 3)) does that help you? original repo is http://hacks-galore.org/darcs?r=3Demacs;a=3Dsummary Cheers, Hugo