From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: too many buffers Date: Mon, 18 Jan 2010 08:25:49 +1100 Organization: Rapt Technologies Message-ID: <87my0cbezm.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263764592 7637 80.91.229.12 (17 Jan 2010 21:43:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Jan 2010 21:43:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 17 22:43:05 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 1NWctl-0003Sy-7s for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jan 2010 22:43:05 +0100 Original-Received: from localhost ([127.0.0.1]:57614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWctm-0000RY-1W for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jan 2010 16:43:06 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.kjsl.com!news.alt.net!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) Cancel-Lock: sha1:p+LOjb6XhEVXbHHs1bJFcbWToEA= Original-Lines: 46 Original-NNTP-Posting-Host: 3b29c7f4.news.astraweb.com Original-X-Trace: DXC=OgHilCkN]lGMnc]O[a9m]EL?0kYOcDh@Jicn3=OH8AiDGWKO\4l; 6:OHE63nT=CoIDocYPgX67L3E Original-Xref: news.stanford.edu gnu.emacs.help:176212 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:71283 Archived-At: andrea writes: > When I use emacs for long times I end up having a lot of buffers. > It's not a big problem but it can be annoying, and there are some > buffers that should just not stay there: > - magit buffers > - dired buffers (I didn't find a variable useful to limit the opening of > new buffers) > - completions/help/annotate. > > I normally use those things once and if I need them again I'll execute > again the function. > > Can I limit the creation of new buffers or maybe I should write some > functions that cleans the situation automatically (using ibuffer maybe)? > > And also with org-mode when I use the agenda it visits ALL the buffers > without closing them after, is that normal? > > I have more than 50 files in the agenda only... > Thanks > Its quite normal for emacs to have lots of open buffers. I think the trick is to use some of the facilities and other packages out there to reduce the apparent clutter presented to the user when using things like list-buffers or switch to buffer etc. Have a look on the emacs wiki at a few of the buffer related packages. There are actually quite a few options out there. Your bound to find something that will suit your preferences and requirements - in fact, the issue will probably be identifying which one is best. Often, trial and error is the best approach. Personally, I'm currently using ido mode and while I have lots of buffers open, I tend to not notice them. I've also found ibuffer and friends useful at times. Note that Org often keeps a lot of buffers open so that when you do things like agenda views etc, it doesn't have the lead time of opening them all again to determine what items may have been added/changed etc. Of course, the number depends on the how many org files you have and which ones are automatically included in your agenda views. Tim -- tcross (at) rapttech dot com dot au