Hrvoje Niksic <[EMAIL PROTECTED]> wrote:

> Peter S Galbraith <[EMAIL PROTECTED]> writes:
> 
> > It would be nice to be able to activate it using the customize
> > interface, similarly to what I've done with other other file in
> > emacs-goodies-el.  Good idea?
> 
> I agree that that would be nice, but I don't know what is the standard
> way to present a minor mode variable to custom.  I tried playing with
> :set, but the results were not what I expected.

Can I infer from the following that it now works?

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

:-)

Peter


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to