Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force emacs recent files using recentf to ignore specified files (.windows and .revive for example)

I have always been bugged by the fact that when exiting with revive.el and windows.el enabled it opens a file and writes to it called .revive and .windows. These are saved so it goes in the recent files list. Is there anyway to make it ignore these files or any other files I desire.

like image 359
J Spen Avatar asked Nov 06 '11 03:11

J Spen


1 Answers

A way to make recentf ignore some files is to add appropriate regexps to recentf-exclude list:

(add-to-list 'recentf-exclude "\\.windows\\'")
(add-to-list 'recentf-exclude "\\.revive\\'")

This will prevent any future entries of the above from being added to the recentf list. You need to delete the current entries in your recentf file for them to be permanently removed or wait until they are phased out from other entries.

like image 96
Victor Deryagin Avatar answered Nov 16 '22 02:11

Victor Deryagin