From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Micha Feigin Newsgroups: gmane.emacs.help Subject: Re: how to change buffer like in visual studio, ultraedit etc (like Alt-Tab in windows but for buffers)? Date: Mon, 7 May 2007 01:03:00 +0300 Message-ID: <20070507010300.1fd524f7@litshi.luna.local> References: <1178434436.660671.286460@n59g2000hsh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1178489258 3059 80.91.229.12 (6 May 2007 22:07:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 May 2007 22:07:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 07 00:07:36 2007 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 1HkotD-0008AM-RJ for geh-help-gnu-emacs@m.gmane.org; Mon, 07 May 2007 00:07:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hkp07-0005Fs-I5 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 May 2007 18:14:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hkozv-0005Fd-06 for help-gnu-emacs@gnu.org; Sun, 06 May 2007 18:14:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hkozt-0005FR-Ct for help-gnu-emacs@gnu.org; Sun, 06 May 2007 18:14:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hkozt-0005FO-8E for help-gnu-emacs@gnu.org; Sun, 06 May 2007 18:14:29 -0400 Original-Received: from gate.tau.ac.il ([132.66.16.26] helo=doar.tau.ac.il) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hkosy-0008IU-Ka for help-gnu-emacs@gnu.org; Sun, 06 May 2007 18:07:20 -0400 Original-Received: from litshi.luna.local (89.0.28.31.dynamic.barak-online.net [89.0.28.31]) by doar.tau.ac.il (Postfix) with ESMTP id 362C2BEEF for ; Mon, 7 May 2007 01:04:16 +0300 (IDT) In-Reply-To: <1178434436.660671.286460@n59g2000hsh.googlegroups.com> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i486-pc-linux-gnu) X-detected-kernel: Genre and OS details not recognized. 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:43778 Archived-At: On 5 May 2007 23:53:56 -0700 mopi <52hands@gmail.com> wrote: > I have tried some of the buffer switchers out there and while some > have neat stuff like regexp switching I just want it to work like in > visual studio or ultraedit. > > I.e. keeping Ctrl pressed while pressing Tab repeatedly cycles between > the open buffers (preferably in order of last usage). C-S-tab cycles > the reverse order. Pressing C-tab only one time switches to the last > viewed buffer. > Have a look at tabbar.el I got it from http://www.emacswiki.org/cgi-bin/wiki/TabBarMode Not completely what you want since it doesn't go by usage order though. I set it up with: ;; enable the tabbar (require 'tabbar) ;; show only non-scratch buffers (setq tabbar-buffer-list-function (lambda () (remove-if (lambda(buffer) (find (aref (buffer-name buffer) 0) " *")) (buffer-list)))) (tabbar-mode) (global-set-key [(control f10)] 'tabbar-local-mode) (global-set-key [(C-S-iso-lefttab)] 'tabbar-backward-tab) (global-set-key [(C-tab)] 'tabbar-forward-tab) (global-set-key [(C-M-S-iso-lefttab)] 'tabbar-backward-group) (global-set-key [(C-M-tab)] 'tabbar-forward-group) > I have tried swbuff-y but pressing C-tab only once just brings up the > buffer-switcher and don't switch to last viewed buffer. Also, when I > cycle to a another buffer name in the list I need to press RET to > actually switch to it. The preferred way would be to switch to the > currently highlighted buffer when I release the Ctrl key. Like Alt-Tab > works in windows. > > Thanks in advance. > > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs >