emacs-devel
[Top][All Lists]
Advanced

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

Re: Use .emacs.d in savehist.el


From: Miles Bader
Subject: Re: Use .emacs.d in savehist.el
Date: Sat, 29 Oct 2005 05:16:51 +0900

2005/10/29, Richard M. Stallman <address@hidden>:
>     Wouldn't (convert-standard-filename "~/.emacs_savehist") be more
>     obvious?
>
> convert-standard-filename does not do anything like this.

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")

-miles
--
Do not taunt Happy Fun Ball.




reply via email to

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