all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Tak Ota <Takaaki.Ota@am.sony.com>
Cc: emacs-devel@gnu.org
Subject: Re: recentf ignores directory
Date: Tue, 09 Dec 2008 14:58:26 +0100	[thread overview]
Message-ID: <877i69zbzx.fsf@escher.local.home> (raw)
In-Reply-To: <20081208.184336.84301573.Takaaki.Ota@am.sony.com> (Tak Ota's message of "Mon, 8 Dec 2008 18:43:36 -0800")

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




      reply	other threads:[~2008-12-09 13:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-09  2:43 recentf ignores directory Tak Ota
2008-12-09 13:58 ` Stephen Berman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877i69zbzx.fsf@escher.local.home \
    --to=stephen.berman@gmx.net \
    --cc=Takaaki.Ota@am.sony.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.