diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-26 12:39:13 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-26 12:39:13 +0200 |
commit | ae877d551155000dffdbcd1b90d682967c6988d0 (patch) | |
tree | 8f4e04672cc4b55fc5790df36b307af456ad76e2 /lisp/progmodes/flymake.el | |
parent | e98b7d6ba2c8634c82f49ee18fd8b91b1b83a187 (diff) | |
download | emacs-ae877d551155000dffdbcd1b90d682967c6988d0.tar.gz emacs-ae877d551155000dffdbcd1b90d682967c6988d0.tar.bz2 emacs-ae877d551155000dffdbcd1b90d682967c6988d0.zip |
Add new user option flymake-mode-line-lighter
* doc/misc/flymake.texi (Customizable variables): Document it.
* lisp/progmodes/flymake.el (flymake-mode-line-lighter): New user
option (bug#55115).
(flymake--mode-line-title): Use it.
Diffstat (limited to 'lisp/progmodes/flymake.el')
-rw-r--r-- | lisp/progmodes/flymake.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 8cbebe78fe1..b5f4fff3c31 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -1358,6 +1358,11 @@ This is a suitable place for placing the `flymake-error-counter', Separating each of these with space is not necessary." :type '(repeat (choice string symbol))) +(defcustom flymake-mode-line-lighter "Flymake" + "The string to use in the Flymake mode line." + :type 'string + :version "29.1") + (defvar flymake-mode-line-title '(:eval (flymake--mode-line-title)) "Mode-line construct to show Flymake's mode name and menu.") @@ -1386,7 +1391,7 @@ correctly.") (defun flymake--mode-line-title () `(:propertize - "Flymake" + ,flymake-mode-line-lighter mouse-face mode-line-highlight help-echo ,(lambda (&rest _) |