diff options
| author | Gerd Moellmann | 2001-08-09 14:51:20 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-08-09 14:51:20 +0000 |
| commit | 541b8aff2bce778d4ec817c37d3197cf40518aaf (patch) | |
| tree | 7af14a1ecb47b078bbc85fb5447609d4d7713141 | |
| parent | d0b56ec54a2d80fac2a65e6ebb422f90aa604201 (diff) | |
| download | emacs-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.el | 50 |
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 "\ | ||
| 236 | Alist saying how to show minor modes in the mode line. | ||
| 237 | Each element looks like (VARIABLE STRING); | ||
| 238 | STRING is included in the mode line iff VARIABLE's value is non-nil. | ||
| 239 | |||
| 240 | Actually, STRING need not be a string; any possible mode-line element | ||
| 241 | is 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 "\ |
| 264 | Keymap for what is displayed by `mode-line-buffer-identification'.") | 236 | Keymap 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 "\ | ||
| 363 | Alist saying how to show minor modes in the mode line. | ||
| 364 | Each element looks like (VARIABLE STRING); | ||
| 365 | STRING is included in the mode line iff VARIABLE's value is non-nil. | ||
| 366 | |||
| 367 | Actually, STRING need not be a string; any possible mode-line element | ||
| 368 | is 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. |