From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: too many buffers Date: Wed, 20 Jan 2010 23:34:42 +0100 Organization: ThierryVolpiatto Message-ID: <87eilkbe2l.fsf@tux.homenetwork> References: <4B575419.7050908@gnu.org> <87d414qyiv.fsf@tux.homenetwork> <4B578116.5070204@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1264027248 27484 80.91.229.12 (20 Jan 2010 22:40:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jan 2010 22:40: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 Wed Jan 20 23:40:41 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 1NXjE8-0003yy-L7 for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jan 2010 23:40:40 +0100 Original-Received: from localhost ([127.0.0.1]:58984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXjE9-00062F-GT for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jan 2010 17:40:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXjDe-0005uT-OU for help-gnu-emacs@gnu.org; Wed, 20 Jan 2010 17:40:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXjDZ-0005lw-Lp for help-gnu-emacs@gnu.org; Wed, 20 Jan 2010 17:40:09 -0500 Original-Received: from [199.232.76.173] (port=39536 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXjDY-0005lL-Kv for help-gnu-emacs@gnu.org; Wed, 20 Jan 2010 17:40:04 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:40131) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXjDY-0002qL-4B for help-gnu-emacs@gnu.org; Wed, 20 Jan 2010 17:40:04 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NXjDU-0003ey-Jp for help-gnu-emacs@gnu.org; Wed, 20 Jan 2010 23:40:00 +0100 Original-Received: from 107.77.197-77.rev.gaoland.net ([77.197.77.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Jan 2010 23:40:00 +0100 Original-Received: from thierry.volpiatto by 107.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Jan 2010 23:40:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 107.77.197-77.rev.gaoland.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHBARgJRFPS0WbMBTC TSG/uJs0yyVHAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABpUlE QVQ4y3VTQXKDMAyUnD7AwvQOhtxj5N4LFh9ow/+/UtlpM0BczWSS0Wola7UBeEb3+3kJ/5p9ZLz3 UI0n0J0Y4K/lh1nG24FhlJOR2LdSKtpV5gfi/Zd+NdaJBbB4D5N0JnfUIVp6obZURkJwS2a8b9uX AkgxA5gCEcknAH1s2z0DPooWmjGKcJR+HNZt+9bm0GtGRycRuZGs98Ffr02vABWGopIAhmXmxnQN BwBXZjgFLHRoqbfeYxCLWqsjLyKhbEHW+A5nEs699Q2O80ALrgHTmUTy6P0MnKyKQpKHpoNWokxs F0D5VegvWmEozyE6nuMiS98mWzlUQ9bW8qYfqOaFtzWlYCqGeIs6HEyl08jkrxUG9MF5ipXpOOpd ZMoXPPVSLWJiiwNNB+eRSyxJZmQKcacikgucnCRiHuJOLmyYJRDPwOqAvY4pA+Wy+VS8G26BAsdb Ph2Hw7ORy/H0IOG0TnaM8Cp0XrFYyU0v2z8AqkifPVbLZ0qo/gsRg60C7p+8Ov9jrUIxFde+jnAq X42hyp/c+ZcnVyUYBarrqZt3+R8450png3cWKgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAwOC0wNS0z MVQyMjoxNDoyMiswMjowMK3VBDcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMDctMTAtMjhUMTc6MDg6 NDgrMDE6MDDLdIcLAAAAEXRFWHRqcGVnOmNvbG9yc3BhY2UAMix1VZ8AAAAgdEVYdGpwZWc6c2Ft cGxpbmctZmFjdG9yADJ4MiwxeDEsMXgxSfqmtAAAAABJRU5ErkJggg== User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.91 (gnu/linux) Cancel-Lock: sha1:5nD6DFGl2CpLGE6I8mhLy4C5gA4= 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:71329 Archived-At: Suvayu Ali writes: > On Wednesday 20 January 2010 01:03 PM, Thierry Volpiatto wrote: >> Sam Steingold writes: >> >>> andrea wrote: >>>> >>>> Can I limit the creation of new buffers or maybe I should write some >>>> functions that cleans the situation automatically (using ibuffer maybe)? >>> >>> enable midnight.el to clean up unused buffers. >>> e.g., >>> (custom-set-variables '(midnight-delay 7200 t (midnight))) >>> in your .emacs will remove old unused buffers at 2 am. >> >> Also, avoid opening many dired buffer: >> >> If you use anything >> >> you will find a command named `anything-find-files' (it is new) in >> anything-config.el. >> >> With this command you can navigate to a file you want to open without >> opening any dired buffers (use `C-z' to expand subdir and `C-.' to went back >> one level). >> >> So if you want to navigate to ~/foo/bar/baz/your_file, you will have >> only the buffer your_file open. >> >> I use this command as a replacement of standard C-x C-f. > > Or you can just put this in your .emacs and use `a' to navigate and > open files in a dired buffer. :) > > (put 'dired-find-alternate-file 'disabled nil) Note that the first time you hit "a" in a dired buffer emacs will ask you if you want to always use this command and will add it for you in your .emacs ;-) -- Thierry Volpiatto