I have a minor mode I want enabled in most buffers. I use this code to fix that:

(define-global-minor-mode html-site-global-mode html-site-mode
 (lambda()
   (when buffer-file-name
     (unless (memq major-mode html-site-mode-off-list)
       (html-site-mode 1)))))

This works as expected when doing

  M-x html-site-global-mode

I mean that this toggles the mode html-site-mode in the buffers I want to. This also works if I customize the variable html-site-global-mode.

However if I save this customization permanently with the value ON then html-site-mode is not turned on in the buffers I want to the next time I start Emacs. The value of html-site-global-mode is t, but something else has failed.

In GNU Emacs 22.0.50.1 (i386-mingw-nt5.0.2195)
of 2006-06-25



_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to