|
From: | Lennart Borgman |
Subject: | How global is a define-global-minor-mode mode? |
Date: | Thu, 14 Dec 2006 19:35:27 +0100 |
User-agent: | Thunderbird 1.5.0.8 (Windows/20061025) |
(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)
[Prev in Thread] | Current Thread | [Next in Thread] |