强制emacs最近使用recentf忽略指定文件的文件(例如.windows和.revive) [英] Force emacs recent files using recentf to ignore specified files (.windows and .revive for example)
问题描述
使 recentf
忽略一些文件是将适当的正则表达式添加到 recentf-exclude
列表:
(add-to-list'recentf-exclude\\.windows\\\'')
(add-to-list'recentf-exclude\\ \\\.revive\\')
这将阻止上述任何将来的输入被添加到 recentf
列表中。您需要删除 recentf
文件中的当前条目,以使其永久删除或等待,直到其他条目被淘汰。
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.
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.
这篇关于强制emacs最近使用recentf忽略指定文件的文件(例如.windows和.revive)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!