[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Soo many buffers

From: Andrea Crotti
Subject: Re: Soo many buffers
Date: Mon, 09 Aug 2010 18:47:27 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (darwin)

Dan Davison <> writes:

> Hi Andrea,
> I've had this in my 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

It took me some time to realize it but I think ido-mode is smarter than
what I thought.

My filter works, if I do C-x b and tab I don't see any org-file.
BUT if I start to type the name when it matches on one of the org-files
I see it anyway and I can switch to it.
For me it's perfect, even better than what I thought :)

And I don't find any C-c b in org-mode, sure it's not something you
defined yourself??

reply via email to

[Prev in Thread] Current Thread [Next in Thread]