[Top][All Lists]

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

Re: Use .emacs.d in savehist.el

From: Kim F. Storm
Subject: Re: Use .emacs.d in savehist.el
Date: Sat, 29 Oct 2005 19:31:11 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Richard M. Stallman" <address@hidden> writes:

>     Though perhaps a standard function to do such name munging would be a
>     nice idea, e.g.:
>       (user-customization-file-name BASE &optional DOTFILE)
>     if .emacs.d doesn't exist  =>  (concat "~/" (or DOTFILE (concat "." 
> BASE)))
>     if .emacs.d does eixst     =>  (concat "~/.emacs.d/" BASE)
>     Then the savehist example would be (user-customization-file-name 
> "savehist"),
>     and .emacs would be (user-customization-file-name "init.el" ".emacs")
> That does sound convenient.  Would you like to do it?

I like this too, but functionality should be:

If DOTFILE non-nil and ~/DOTFILE exists, use ~/DOTFILE, else [as above].

Otherwise, some old DOTFILE will suddenly "disappear" if the user later creates 

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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