Hrvoje Niksic <[EMAIL PROTECTED]> writes: > Hrvoje Niksic <[EMAIL PROTECTED]> 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! _______________________________________________ Gnu-emacs-sources mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources
