Minor fixes in global-auto-composition-mode
* lisp/emacs-lisp/easy-mmode.el (easy-mmode-pretty-mode-name): Produce prettier names of globalized minor modes. * lisp/composite.el (global-auto-composition-mode): Make it a globalized mode. (Bug#22682)
This commit is contained in:
parent
02b037b85c
commit
d4b93e11a5
2 changed files with 2 additions and 0 deletions
|
@ -838,6 +838,7 @@ omitted or nil.
|
||||||
|
|
||||||
For more information on Auto Composition mode, see
|
For more information on Auto Composition mode, see
|
||||||
`auto-composition-mode' ."
|
`auto-composition-mode' ."
|
||||||
|
:global t
|
||||||
:variable (default-value 'auto-composition-mode))
|
:variable (default-value 'auto-composition-mode))
|
||||||
|
|
||||||
(defalias 'toggle-auto-composition 'auto-composition-mode)
|
(defalias 'toggle-auto-composition 'auto-composition-mode)
|
||||||
|
|
|
@ -68,6 +68,7 @@ replacing its case-insensitive matches with the literal string in LIGHTER."
|
||||||
"toggle-\\|-mode\\'" ""
|
"toggle-\\|-mode\\'" ""
|
||||||
(symbol-name mode))))
|
(symbol-name mode))))
|
||||||
" mode")))
|
" mode")))
|
||||||
|
(setq name (replace-regexp-in-string "\\`Global-" "Global " name))
|
||||||
(if (not (stringp lighter)) name
|
(if (not (stringp lighter)) name
|
||||||
;; Strip leading and trailing whitespace from LIGHTER.
|
;; Strip leading and trailing whitespace from LIGHTER.
|
||||||
(setq lighter (replace-regexp-in-string "\\`\\s-+\\|\\s-+\\'" ""
|
(setq lighter (replace-regexp-in-string "\\`\\s-+\\|\\s-+\\'" ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue