aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-08-09 14:51:20 +0000
committerGerd Moellmann2001-08-09 14:51:20 +0000
commit541b8aff2bce778d4ec817c37d3197cf40518aaf (patch)
tree7af14a1ecb47b078bbc85fb5447609d4d7713141
parentd0b56ec54a2d80fac2a65e6ebb422f90aa604201 (diff)
downloademacs-541b8aff2bce778d4ec817c37d3197cf40518aaf.tar.gz
emacs-541b8aff2bce778d4ec817c37d3197cf40518aaf.zip
(minor-mode-alist): Use mode-line-minor-mode-keymap
for the minor mode name.
-rw-r--r--lisp/bindings.el50
1 files changed, 22 insertions, 28 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el
index cdaff02a7ef..af5d65dd20b 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -232,34 +232,6 @@ Normally nil in most modes, since there is no process to display.")
232 `(-3 . ,(propertize "%p" 'help-echo help-echo)) 232 `(-3 . ,(propertize "%p" 'help-echo help-echo))
233 (propertize "-%-" 'help-echo help-echo)))) 233 (propertize "-%-" 'help-echo help-echo))))
234 234
235(defvar minor-mode-alist nil "\
236Alist saying how to show minor modes in the mode line.
237Each element looks like (VARIABLE STRING);
238STRING is included in the mode line iff VARIABLE's value is non-nil.
239
240Actually, STRING need not be a string; any possible mode-line element
241is okay. See `mode-line-format'.")
242;; Don't use purecopy here--some people want to change these strings.
243(setq minor-mode-alist
244 (list
245 (list 'abbrev-mode
246 (propertize " Abbrev"
247 'help-echo (purecopy
248 "mouse-2: turn off Abbrev mode")
249 'local-map (purecopy (make-mode-line-mouse-map
250 'mouse-2
251 #'mode-line-abbrev-mode))))
252 '(overwrite-mode overwrite-mode)
253 (list 'auto-fill-function
254 (propertize " Fill"
255 'help-echo (purecopy
256 "mouse-2: turn off Autofill mode")
257 'local-map (purecopy (make-mode-line-mouse-map
258 'mouse-2
259 #'mode-line-auto-fill-mode))))
260 ;; not really a minor mode...
261 '(defining-kbd-macro " Def")))
262
263(defvar mode-line-buffer-identification-keymap nil "\ 235(defvar mode-line-buffer-identification-keymap nil "\
264Keymap for what is displayed by `mode-line-buffer-identification'.") 236Keymap for what is displayed by `mode-line-buffer-identification'.")
265 237
@@ -387,6 +359,28 @@ text properties for face, help-echo, and local-map to it."
387 (define-key map [header-line down-mouse-3] 'mode-line-mode-menu-1) 359 (define-key map [header-line down-mouse-3] 'mode-line-mode-menu-1)
388 (setq mode-line-minor-mode-keymap map)) 360 (setq mode-line-minor-mode-keymap map))
389 361
362(defvar minor-mode-alist nil "\
363Alist saying how to show minor modes in the mode line.
364Each element looks like (VARIABLE STRING);
365STRING is included in the mode line iff VARIABLE's value is non-nil.
366
367Actually, STRING need not be a string; any possible mode-line element
368is okay. See `mode-line-format'.")
369;; Don't use purecopy here--some people want to change these strings.
370(setq minor-mode-alist
371 (list
372 (list 'abbrev-mode
373 (propertize " Abbrev"
374 'help-echo (purecopy "mouse-3: minor mode menu")
375 'local-map mode-line-minor-mode-keymap))
376 '(overwrite-mode overwrite-mode)
377 (list 'auto-fill-function
378 (propertize " Fill"
379 'help-echo (purecopy "mouse-3: minor mode menu")
380 'local-map mode-line-minor-mode-keymap))
381 ;; not really a minor mode...
382 '(defining-kbd-macro " Def")))
383
390;; These variables are used by autoloadable packages. 384;; These variables are used by autoloadable packages.
391;; They are defined here so that they do not get overridden 385;; They are defined here so that they do not get overridden
392;; by the loading of those packages. 386;; by the loading of those packages.