From: Stefan Daschek <noniq-usenet@noniq.at>
Subject: Re: default value of file-name-history
Date: Sat, 20 Sep 2003 01:11:31 +0200 [thread overview]
Message-ID: <uznh09xwc.fsf@noniq.at> (raw)
In-Reply-To: 20030919.191203.202255364.jet@gyve.org
Masatake YAMATO <jet@gyve.org> writes:
> How do you think initialize file-name-history with the
> value of `recentf-list'? So you can do C-x C-f M-p M-p M-p...
> just after launching emacs.
Funny, I had exactly the same idea some days ago and thus added the
following to my .emacs:
(require 'recentf)
(setq file-name-history (append recentf-list file-name-history))
I also wanted files opened via Drag'n'Drop or emacsclient to
appear in file-name-history:
(add-hook 'find-file-hook (defun nq-find-file-add-to-history-hook ()
(when (and (buffer-file-name)
(not (member (buffer-file-name) file-name-history)))
(push (buffer-file-name) file-name-history))))
Well, everything seems to work as it should and I'm really happy :-)
ciao,
noniq
next prev parent reply other threads:[~2003-09-19 23:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-19 10:12 default value of file-name-history Masatake YAMATO
2003-09-19 16:40 ` Kevin Rodgers
2003-09-19 17:00 ` Henrik Enberg
2003-09-20 5:43 ` Masatake YAMATO
2003-09-20 7:20 ` David Ponce
2003-09-19 16:57 ` Stefan Monnier
2003-09-19 23:11 ` Stefan Daschek [this message]
2003-09-20 2:13 ` Miles Bader
2003-09-20 21:27 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uznh09xwc.fsf@noniq.at \
--to=noniq-usenet@noniq.at \
/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 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).