强制emacs最近使用recentf忽略指定文件的文件(例如.windows和.revive) [英] Force emacs recent files using recentf to ignore specified files (.windows and .revive for example)

查看:493
本文介绍了强制emacs最近使用recentf忽略指定文件的文件(例如.windows和.revive)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直被这个事实所困扰,因为当使用revive.el退出并启用了windows.el时,它会打开一个文件并写入它,名为.revive和.windows。这些被保存,所以它在最近的文件列表中。有没有办法让它忽略这些文件或我想要的任何其他文件。

解决方案

使 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆