emacs-devel
[Top][All Lists]
Advanced

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

Re: default value of file-name-history


From: Stefan Daschek
Subject: Re: default value of file-name-history
Date: Sat, 20 Sep 2003 01:11:31 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt)

Masatake YAMATO <address@hidden> 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





reply via email to

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