emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: AW <alexander.willand@t-online.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: minor mode recentf: show only *.tex and *.org files?!
Date: Tue, 25 Jun 2013 12:34:12 +0200	[thread overview]
Message-ID: <87li5y8onv.fsf@yahoo.fr> (raw)
In-Reply-To: <1491756.k2ybY6NjeE@linux-ik7b.site> (AW's message of "Tue, 25 Jun 2013 12:06:41 +0200")

AW <alexander.willand@t-online.de> writes:
> I'm using the minor mode recentf to get a list of recently opened files. But 
> the list is cluttered with files like *.out, *.log and whatever.

Variable recentf-exclude is the answer.
I have this :
(setq recentf-exclude '(
                         "/.emacs.bmk$"
                         "\\.ido.last$" ; ido mode (emacs)
                         "session\\.[a-f0-9]*$" ; emacs
                         "~$" ; emacs (and others) backup
                         "\\.log$" ; LaTeX
                         "\\.pdfsync$" ; LaTeX
                         "\\.toc" ; LaTeX
                         "\\.aux$" ; LaTeX
                         "/Dropbox/" ; avoid opening dropbox files, there is probably a local mirror
                         "bssm2011-dropbox" ; symbolic link to dropbox
                         "/COMMIT_EDITMSG$"
                         "/tmp/"
                         ".el.gz$"
                         ))

but obviously you want to adjust that to your situation. If you really
only want org and tex files, you should ignore anything that doesn't end
in org or tex, i.e.

(setq recentf-exclude '(         ; if filename...
                        "[^gx]$" ; doesn't end in gx
                        "[^e]x$" ; or ends in x but not ex
                        "[^r]g$" ; or ends in g but not rg
                        "[^t]ex$"; or ends in ex but not tex
                        "[^o]rg$" ; or ends in rg but not org
                        ))       ; ...then exclude
N.

  reply	other threads:[~2013-06-25 10:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-25 10:06 minor mode recentf: show only *.tex and *.org files?! AW
2013-06-25 10:34 ` Nicolas Richard [this message]
2013-06-25 12:30   ` AW
2013-06-25 12:39     ` Nicolas Richard
2013-06-25 13:21       ` AW
2013-06-25 14:24         ` Nicolas Richard
2013-06-25 14:10       ` AW

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.orgmode.org/

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

  git send-email \
    --in-reply-to=87li5y8onv.fsf@yahoo.fr \
    --to=theonewiththeevillook@yahoo.fr \
    --cc=alexander.willand@t-online.de \
    --cc=emacs-orgmode@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).