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

2013-06-25 Thread AW
Hi! 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. Can somebody drop me two or three lines, which I can put into my .emacs file to make recentf only show *.org and *.tex files? Thank you, Regards,

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

2013-06-25 Thread Nicolas Richard
AW alexander.will...@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 '(

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

2013-06-25 Thread AW
Am Dienstag, 25. Juni 2013, 12:34:12 schrieb Nicolas Nicolas Richard: AW alexander.will...@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

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

2013-06-25 Thread Nicolas Richard
Le 25/06/2013 14:30, AW a écrit : (setq recentf-exclude '( /diary[0-9]\{4\}[a-zA-Z]\{2,4\}$ )) You have to double the backslashes. Reason is that when lisp reads the string, it translates it into /diary[0-9]{4}[a-zA-Z]{2,4}$ which is not the regexp you want. -- Nico.

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

2013-06-25 Thread AW
Am Dienstag, 25. Juni 2013, 14:39:50 schrieb Nicolas Richard: Le 25/06/2013 14:30, AW a écrit : (setq recentf-exclude '( /diary[0-9]\{4\}[a-zA-Z]\{2,4\}$ )) You have to double the backslashes. Reason is that when lisp reads the string, it translates it into

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

2013-06-25 Thread AW
Am Dienstag, 25. Juni 2013, 14:39:50 schrieb Nicolas Nicolas Richard: Le 25/06/2013 14:30, AW a écrit : (setq recentf-exclude '( /diary[0-9]\{4\}[a-zA-Z]\{2,4\}$ )) You have to double the backslashes. Reason is that when lisp reads the string, it translates it into

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

2013-06-25 Thread Nicolas Richard
AW alexander.will...@t-online.de writes: I get lots of lines like c:/Users/aw/AppData/Local/Temp/diary1234ABc , despite duplication of backlashes. As you noticed in your next mesasge, you should activate recentf only after setting this variable. Alternatively, you can call (recentf-cleanup)