From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sven Bretfeld" Newsgroups: gmane.emacs.help Subject: Re: how to keep a permanent buffer list open? Date: 22 Jan 2010 20:07:34 +0100 Message-ID: <87bpgmargp.fsf@gmx.ch> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1264188588 21476 80.91.229.12 (22 Jan 2010 19:29:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Jan 2010 19:29:48 +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 Jan 22 20:29:38 2010 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 1NYPCH-0006mm-Uh for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Jan 2010 20:29:34 +0100 Original-Received: from localhost ([127.0.0.1]:55252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYOrH-0002rG-Q5 for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Jan 2010 14:07:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYOqu-0002oN-C6 for help-gnu-emacs@gnu.org; Fri, 22 Jan 2010 14:07:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYOqq-0002nQ-Pg for help-gnu-emacs@gnu.org; Fri, 22 Jan 2010 14:07:28 -0500 Original-Received: from [199.232.76.173] (port=35652 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYOqq-0002nG-G2 for help-gnu-emacs@gnu.org; Fri, 22 Jan 2010 14:07:24 -0500 Original-Received: from mx5.rz.ruhr-uni-bochum.de ([134.147.64.33]:50626) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NYOqp-0001yT-Bc for help-gnu-emacs@gnu.org; Fri, 22 Jan 2010 14:07:24 -0500 X-Queued: (qmail 5916 invoked from network); 22 Jan 2010 19:07:21 -0000 Original-Received: from c2-3-4.rz.ruhr-uni-bochum.de (134.147.64.5) by mx5.rz.ruhr-uni-bochum.de with SMTP; 22 Jan 2010 19:07:21 -0000 X-Queued: (qmail 501 invoked by uid 281); 22 Jan 2010 19:07:21 -0000 X-Qmailscanner: from 88.153.160.5 (0axIjN0NPR+LRPfelBuK8A==@88.153.160.5) by c2-3-4.rz.ruhr-uni-bochum.de (envelope-from , uid 80) with qmail-scanner-2.01 (sophie: 3.05/3.2/4.48. Clear:RC:1(88.153.160.5):. Processed in 0.02144 secs); 22 Jan 2010 19:07:21 -0000 Original-Received: from ip-88-153-160-5.unitymediagroup.de (HELO kamaloka) (0axIjN0NPR+LRPfelBuK8A==@88.153.160.5) by c2-3-4.rz.ruhr-uni-bochum.de with (DHE-RSA-AES128-SHA encrypted) SMTP; 22 Jan 2010 19:07:21 -0000 In-Reply-To: (Brendan Miller's message of "Thu, 21 Jan 2010 17:30:10 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:71375 Archived-At: Hi Brendan Brendan Miller writes: > Basically, I want this to perform the save function that tabs would > i.e. letting me visually keep track of what files/buffers I have open > and switch between them with a mouse click. I figure a buffer list > would be better for keeping track of a large number of buffers, that > would overflow on a tabbar. I would suggest a customized tabbar that splits buffers into groups. The following is what I have. It groups Tabs into Dired, User, Mail and temporary buffers (*-buffers). Only one group is visible at a time. You can browse the buffers and groups with the Windows key (super) plus arrows. You can make your own groups easily by following the same model.=20 Hope it helps, Sven (defun tabbar-buffer-groups () "Return the list of group names the current buffer belongs to. This function is a custom function for tabbar-mode's tabbar-buffer-groups. This function group all buffers into 3 groups: Those Dired, those user buffer, those LaTeX buffer, those emacs buffer etc. Emacs buffer are those starting with *." (list (cond ;; ((string-equal "*" (substring (buffer-name) 0 1)) ;; "tmp Buffers" ;; ) ((eq major-mode 'dired-mode) "Dired Buffers" ) ((eq major-mode 'latex-mode) "User Buffers" ) ((eq major-mode 'bibtex-mode) "User Buffers" ) ((eq major-mode 'org-mode) "User Buffers" ) ((eq major-mode 'emacs-lisp-mode) "User Buffers" ) ((eq major-mode 'message-mode) "Gnus Buffers" ) ((eq major-mode 'mail-mode) "Gnus Buffers" ) ((eq major-mode 'gnus-group-mode) "Gnus Buffers" ) ((eq major-mode 'gnus-summary-mode) "Gnus Buffers" ) ((eq major-mode 'gnus-article-mode) "Gnus Buffers" ) (t "Emacs Buffer" ) ))) (setq tabbar-buffer-groups-function 'tabbar-buffer-groups) ;; =C2=ABtabbar-keybindings=C2=BB (to ".tabbar-keybindings") (global-set-key [(s-right)] 'tabbar-forward) (global-set-key [(s-left)] 'tabbar-backward) (global-set-key [(s-up)] 'tabbar-backward-group) (global-set-key [(s-down)] 'tabbar-forward-group)