emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] minor mode recentf: show only *.tex and *.org files?!


From: Nicolas Richard
Subject: Re: [O] minor mode recentf: show only *.tex and *.org files?!
Date: Tue, 25 Jun 2013 12:34:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

AW <address@hidden> 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 via email to

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