[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs Improvement
From: |
Arturo García Ares |
Subject: |
Re: Emacs Improvement |
Date: |
Sat, 10 Jan 2004 01:43:09 +0100 |
User-agent: |
Mutt/1.3.28i |
On Fri, Jan 09, 2004 at 03:04:17PM +0200, era@iki.fi wrote:
> Or maybe he just wants whatever file(s) he specified on the command
> line to also be added to the minibuffer history. I don't see a good
> reason for that, but it shouldn't be hard to do. (It's not a very
> intuitive thing to do so it should probably not be made the default,
> and probably not even a feature shipped with Emacs, but somebody could
> easily hook up a snippet to put in your .emacs.)
This is such a snippet:
(add-hook 'find-file-hooks
(lambda ()
(add-to-list 'file-name-history
(abbreviate-file-name (buffer-file-name)))))