unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How global is a define-global-minor-mode mode?
@ 2006-12-14 18:35 Lennart Borgman
  2006-12-25  0:43 ` Richard Stallman
                   ` (2 more replies)
  0 siblings, 3 replies; 35+ messages in thread
From: Lennart Borgman @ 2006-12-14 18:35 UTC (permalink / raw)


I am trying to use define-global-minor-mode, see below. I have 
customized the global mode to be t, but when I open new buffers the 
minor mode is not set in them. Is this a bug in define-global-minor-mode?


(define-minor-mode html-site-mode
  "Adds a menu for easy access of setting site, uploading etc."
  :init-value nil
  :lighter nil
  :keymap html-site-mode-map
  :group 'html-site)

(defvar html-site-mode-off-list
  '(nxhtml-mode))

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

^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2007-01-29  4:32 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-14 18:35 How global is a define-global-minor-mode mode? Lennart Borgman
2006-12-25  0:43 ` Richard Stallman
2006-12-29 15:44 ` Richard Stallman
2006-12-29 17:21   ` Lennart Borgman (gmail)
2006-12-30  6:23     ` Richard Stallman
2006-12-30 10:57       ` Lennart Borgman (gmail)
2006-12-31  1:46         ` Richard Stallman
2006-12-31  2:27           ` Lennart Borgman (gmail)
2006-12-31 22:13             ` Richard Stallman
2007-01-03  0:18   ` Johan Bockgård
2007-01-03 21:11     ` Richard Stallman
2007-01-20 19:34 ` Chong Yidong
2007-01-21 22:27   ` Richard Stallman
2007-01-21 23:11   ` Stefan Monnier
2007-01-22  9:04     ` Richard Stallman
2007-01-22 14:55       ` Stefan Monnier
2007-01-23 20:55         ` Richard Stallman
2007-01-23 23:00           ` Stefan Monnier
2007-01-23 23:59             ` Lennart Borgman (gmail)
2007-01-24  1:15               ` Stefan Monnier
2007-01-24 19:29                 ` Lennart Borgman (gmail)
2007-01-25  4:57                   ` Stefan Monnier
2007-01-25  8:56                     ` Lennart Borgman (gmail)
2007-01-25 19:27                       ` Stefan Monnier
2007-01-25 21:47                     ` Lennart Borgman (gmail)
2007-01-25 23:56                       ` Lennart Borgman (gmail)
2007-01-26  4:34                         ` Stefan Monnier
2007-01-27 19:43                           ` Chong Yidong
2007-01-26  4:35                       ` Stefan Monnier
2007-01-28  7:42                       ` Richard Stallman
2007-01-28  7:42             ` Richard Stallman
2007-01-28 15:47               ` Chong Yidong
2007-01-28 16:37                 ` David Kastrup
2007-01-28 19:53                   ` Chong Yidong
2007-01-29  4:32               ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).