【发布时间】:2013-02-16 20:58:49
【问题描述】:
如何让 Emacs ido-mode 的recentf-list 忽略不感兴趣的文件?
我正在使用带有xSteve's function for ido recent files 的ido-mode(功能见下文)。
但就目前而言,它首先显示无趣的文件,如下所示:
-> ~/.ido-last
~/Library/Application Support/Aquamacs Emacs/recent-addresses
~/Documents/journal.org
那么如何让ido-mode 忽略~/.ido-last 和~/Library/Application Support/Aquamacs Emacs/recent-addresses 等无趣文件?
附:这是那个函数,供参考:
(defun xsteve-ido-choose-from-recentf ()
"Use ido to select a recently opened file from the `recentf-list'"
(interactive)
(let ((home (expand-file-name (getenv "HOME"))))
(find-file
(ido-completing-read "Recentf open: "
(mapcar (lambda (path)
(replace-regexp-in-string home "~" path))
recentf-list)
nil t))))
(global-set-key [(meta f11)] 'xsteve-ido-choose-from-recentf)
【问题讨论】:
标签: emacs ido-mode recent-file-list