* recentf ignores directory
@ 2008-12-09 2:43 Tak Ota
2008-12-09 13:58 ` Stephen Berman
0 siblings, 1 reply; 2+ messages in thread
From: Tak Ota @ 2008-12-09 2:43 UTC (permalink / raw)
To: david, emacs-devel
I don't find a way to customize recentf to remember opened directory
names as well as file names. So I have the following customization in
my .emacs. Don't you think it is generally useful if the recentf
remembers directory names as well?
(defun recentf-track-opened-directory (dir)
"Insert the name of the directory just opened into the recent list."
(recentf-add-file dir)
nil)
(add-to-list 'recentf-used-hooks '(find-directory-functions recentf-track-opened-directory))
-Tak
I don't subscribe to the emacs-devel list so please include the
address explicitly for the correspondence.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: recentf ignores directory
2008-12-09 2:43 recentf ignores directory Tak Ota
@ 2008-12-09 13:58 ` Stephen Berman
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Berman @ 2008-12-09 13:58 UTC (permalink / raw)
To: Tak Ota; +Cc: emacs-devel
On Mon, 8 Dec 2008 18:43:36 -0800 Tak Ota <Takaaki.Ota@am.sony.com> wrote:
> I don't find a way to customize recentf to remember opened directory
> names as well as file names. So I have the following customization in
> my .emacs. Don't you think it is generally useful if the recentf
> remembers directory names as well?
>
> (defun recentf-track-opened-directory (dir)
> "Insert the name of the directory just opened into the recent list."
> (recentf-add-file dir)
> nil)
> (add-to-list 'recentf-used-hooks '(find-directory-functions recentf-track-opened-directory))
>
> -Tak
>
> I don't subscribe to the emacs-devel list so please include the
> address explicitly for the correspondence.
Here's a variant I use, which Kevin Rodgers suggested a long time ago in
gnu.emacs.help:
(add-hook 'dired-mode-hook
(lambda () (when recentf-mode
(recentf-add-file default-directory))))
Steve Berman
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-09 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-09 2:43 recentf ignores directory Tak Ota
2008-12-09 13:58 ` Stephen Berman
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).