unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: suvayu ali <fatkasuvayu+linux@gmail.com>
Cc: help-gnu-emacs@gnu.org, Andrea Crotti <andrea.crotti.0@gmail.com>
Subject: Re: Soo many buffers
Date: Sat, 07 Aug 2010 14:03:09 -0400	[thread overview]
Message-ID: <87hbj6xpuq.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <AANLkTi=HcX31jiECJjGdR+PYdCPnfv=QA0NvvyA5kNBs@mail.gmail.com> (suvayu ali's message of "Thu, 5 Aug 2010 08:55:53 -0700")

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 <fatkasuvayu+linux@gmail.com> writes:

> On 5 August 2010 04:32, Andrea Crotti <andrea.crotti.0@gmail.com> 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.



  reply	other threads:[~2010-08-07 18:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-05 11:32 Soo many buffers Andrea Crotti
2010-08-05 15:55 ` suvayu ali
2010-08-07 18:03   ` Dan Davison [this message]
2010-08-09 16:47     ` Andrea Crotti
2010-08-09 16:54       ` Richard Riley
2010-08-10  8:34         ` Andrea Crotti
2010-08-13  8:50           ` Andrea Crotti
2010-08-19 15:04             ` Chris Newton
2010-08-05 16:19 ` Tassilo Horn
2010-08-06 11:07   ` Andrea Crotti
2010-08-06 11:14     ` Gary
2010-08-06 13:58       ` Andrea Crotti
2010-08-06 15:12         ` Glauber Alex Dias Prado

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hbj6xpuq.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=andrea.crotti.0@gmail.com \
    --cc=fatkasuvayu+linux@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).