From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Richard Subject: Re: minor mode recentf: show only *.tex and *.org files?! Date: Tue, 25 Jun 2013 12:34:12 +0200 Message-ID: <87li5y8onv.fsf@yahoo.fr> References: <1491756.k2ybY6NjeE@linux-ik7b.site> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrQZf-0005MJ-Fj for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 06:34:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrQZe-0002rs-Ah for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 06:34:11 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:14272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrQZe-0002qf-4R for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 06:34:10 -0400 In-Reply-To: <1491756.k2ybY6NjeE@linux-ik7b.site> (AW's message of "Tue, 25 Jun 2013 12:06:41 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: AW Cc: emacs-orgmode@gnu.org AW 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.