From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Is there a way to switch among splitted windows counter-clockwisely in Emacs? Date: Tue, 18 Mar 2008 11:43:03 -0600 Message-ID: References: <16012431.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205862050 21397 80.91.229.12 (18 Mar 2008 17:40:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2008 17:40:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 18 18:41:20 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 1JbfoK-00012h-SY for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Mar 2008 18:41:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jbfnl-0002Cb-5H for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Mar 2008 13:40:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 18 Mar 2008 11:42:58 -0500 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 50 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 65.45.140.41 Original-X-Trace: sv3-hzXQ+UFmMDNszwktP/8upcykrD44PeuCWHOgY0JIjQMTGtspz6uesF3usz4UlK5DcmB9KyRLLG2OWiI!9rCx/59USD6hESAYcX9OW0RrPL+9OOaRnvgkgrMMahAXT/5fSXgumm09w/Zuvf8HhLFlv2m6vQCr!6ngjVAuvqIDuR9ugSGdQbb7hymLJvg== Original-X-Complaints-To: abuse@sysmatrix.net X-DMCA-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.37 Original-Xref: shelby.stanford.edu gnu.emacs.help:157125 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:52497 Archived-At: 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