[Top][All Lists]

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

Re: Use .emacs.d in savehist.el

From: Hrvoje Niksic
Subject: Re: Use .emacs.d in savehist.el
Date: Tue, 25 Oct 2005 11:30:08 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> Any objection to the patch below?

Ideally I was aiming to have both emacsen share their minibuffer
histories, but I'm not sure if that's realistic.  I suppose the patch
is OK, except you might want to use ~/.xemacs under XEmacs.  Something

(defcustom savehist-file
   ;; Backward compatibility with previous versions of savehist.
   ((file-exists-p "~/.emacs-history") "~/.emacs-history")
   ((and (not (featurep 'xemacs)) (file-directory-p "~/.emacs.d/"))
   ((and (featurep 'xemacs) (file-directory-p "~/.xemacs/"))
   ;; For users without .emacs.d.
   (t "~/.emacs-history"))
  "File name to save minibuffer history to.
The minibuffer history is a series of Lisp expressions, which should be
loaded using `savehist-load' from your .emacs.  See `savehist-load' for
more details."
  :type 'file
  :group 'savehist)

reply via email to

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