emacs-pretest-bug
[Top][All Lists]
Advanced

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

define-global-minor-mode: customizing variable does not set mode at init


From: Lennart Borgman
Subject: define-global-minor-mode: customizing variable does not set mode at init
Date: Tue, 27 Jun 2006 00:14:46 +0200
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)


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





reply via email to

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