From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Davison Newsgroups: gmane.emacs.help Subject: Re: Soo many buffers Date: Sat, 07 Aug 2010 14:03:09 -0400 Message-ID: <87hbj6xpuq.fsf@stats.ox.ac.uk> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1281299923 1054 80.91.229.12 (8 Aug 2010 20:38:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Aug 2010 20:38:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Andrea Crotti To: suvayu ali Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 08 22:38: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.69) (envelope-from ) id 1OiCdj-0003O6-Oh for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Aug 2010 22:38:40 +0200 Original-Received: from localhost ([127.0.0.1]:41984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiARr-0003l2-I0 for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Aug 2010 14:18:15 -0400 Original-Received: from [140.186.70.92] (port=51343 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oi9Tv-0002Ja-Us for help-gnu-emacs@gnu.org; Sun, 08 Aug 2010 13:16:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ohnjn-00026x-Fm for help-gnu-emacs@gnu.org; Sat, 07 Aug 2010 14:03:16 -0400 Original-Received: from markov.stats.ox.ac.uk ([163.1.210.1]:33191) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ohnjn-00022C-5c for help-gnu-emacs@gnu.org; Sat, 07 Aug 2010 14:03:15 -0400 Original-Received: from blackcap.stats.ox.ac.uk (blackcap.stats [163.1.210.5]) by markov.stats.ox.ac.uk (8.13.6/8.13.6) with ESMTP id o77I3CGZ020529; Sat, 7 Aug 2010 19:03:12 +0100 (BST) Original-Received: by blackcap.stats.ox.ac.uk (Postfix, from userid 5158) id 0C20D22203; Sat, 7 Aug 2010 19:03:11 +0100 (BST) In-Reply-To: (suvayu ali's message of "Thu, 5 Aug 2010 08:55:53 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 8 (1) 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:74494 Archived-At: Hi Andrea, I've had this in my emacs.org for ages #+begin_src emacs-lisp ;; ;; Things that I'm not really interested in seeing in emacs ;; ;; (you can still open them explicitly) (setq dan/ignored-extensions '(".html" ".csv" ".ps" ".bst" ".cls" ".fdf" ".spl" ".aux" ".ppt" ".doc" ".xls" ".mp3" ".org")) (mapc (lambda(extension) (add-to-list 'completion-ignored-extensions extension)) dan/ignored-extensions) (ido-mode t) ;; (iswitchb-mode t) (setq ido-separator " ") ;; As regexps, these should really have terminal $ (mapc (lambda(extension) (add-to-list 'ido-ignore-buffers (regexp-quote extension)) (add-to-list 'ido-ignore-files (regexp-quote extension))) dan/ignored-extensions) (add-to-list 'ido-ignore-buffers "\\*") ;; if you want *scratch* or *R* just type it ;; (add-to-list 'ido-ignore-files "^[^.]+$") ;; files must have a . in their name (experimental) #+end_src It prevents C-x b from showing me org files, amongst other things. Note that org provides C-c b to switch to org buffers only. The only thing I don't like is that this prevents C-x C-f from offering org files. I've wondered whether org should also provide a find-file command for org files only. I'm sure that's possible to implement in many different ways with the various completion engines. Dan suvayu ali writes: > On 5 August 2010 04:32, Andrea Crotti wrote: >> One thing that would be nice I think would be one command to toggle the >> visibility of the org buffers on and off. >> They can stay always open but I can afford one more click to access them >> if they don't stay in the way while I work. >> >> Is there such a shadowing thing somewhere? >> Thanks >> > > How about ibuffer and filtering? Some thing like `/ m org-mode' in an > active ibuffer should filter the org-mode buffers. Then you can invert > the filter with `/ !'. Hopefully this helps.