Mercurial > emacs
changeset 32048:39617f078b9d
(easy-mmode-pretty-mode-name): Prettier.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sun, 01 Oct 2000 00:58:35 +0000 |
parents | d481da7b59b0 |
children | b5f2a5e4bc23 |
files | lisp/emacs-lisp/easy-mmode.el |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emacs-lisp/easy-mmode.el Sun Oct 01 00:57:13 2000 +0000 +++ b/lisp/emacs-lisp/easy-mmode.el Sun Oct 01 00:58:35 2000 +0000 @@ -57,8 +57,10 @@ "Turn the symbol MODE into a string intended for the user. If provided LIGHTER will be used to help choose capitalization." (let* ((case-fold-search t) - (name (concat (capitalize (replace-regexp-in-string - "-mode\\'" "" (symbol-name mode))) + (name (concat (replace-regexp-in-string + "-Minor" " minor" + (capitalize (replace-regexp-in-string + "-mode\\'" "" (symbol-name mode)))) " mode"))) (if (not (stringp lighter)) name (setq lighter (replace-regexp-in-string "\\`\\s-+\\|\\-s+\\'" "" lighter))