gnu-emacs-sources
[Top][All Lists]
Advanced

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

Re: savehist -- save minibuffer history between Emacs invocations


From: Simon Josefsson
Subject: Re: savehist -- save minibuffer history between Emacs invocations
Date: Tue, 01 Nov 2005 11:09:03 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Hrvoje Niksic <address@hidden> writes:

> Hrvoje Niksic <address@hidden> writes:
>
>> That requires loading savehist to install savehist-mode, which is
>> wrong.  I was thinking of something along the lines of
>>  :set (lambda (val) (savehist-mode (if val 1 0))), but I couldn't
>> really make it work.
>
> I've now nailed it, and it's right there in the manual.  Sorry about
> OT, but this might help other authors.  The incantation that works for
> me, transplanted from Elisp manual, is:
>
> (defcustom savehist-mode nil
>   "Mode for automatic saving of minibuffer history.
> Set this by calling the `savehist-mode' function or using the customize
> interface."
>   :type 'boolean
>   :set (lambda (symbol value) (savehist-mode (or value 0)))
>   :initialize 'custom-initialize-default
>   :require 'savehist
>   :group 'savehist)

It works here too, and is much better than my flawed patch.  Thanks!


reply via email to

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