emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recentf ignores directory


From: Stephen Berman
Subject: Re: recentf ignores directory
Date: Tue, 09 Dec 2008 14:58:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

On Mon, 8 Dec 2008 18:43:36 -0800 Tak Ota <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]