1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Show Flymake diagnostics on clicking mouse-1 on the mode-line indicator

* lisp/progmodes/flymake.el (flymake--mode-line-counter-map):
Bind [mode-line mouse-1] to 'flymake-show-buffer-diagnostics' (bug#76254).
This commit is contained in:
Juri Linkov 2025-11-30 20:23:28 +02:00
parent 5167989b2a
commit 0f9dd5b3a1

View file

@ -1891,6 +1891,8 @@ correctly.")
#'flymake--mode-line-counter-scroll-next) #'flymake--mode-line-counter-scroll-next)
(define-key map [mode-line wheel-up] (define-key map [mode-line wheel-up]
#'flymake--mode-line-counter-scroll-prev)) #'flymake--mode-line-counter-scroll-prev))
(define-key map [mode-line mouse-1]
#'flymake-show-buffer-diagnostics)
map)) map))
(defun flymake--mode-line-counter-1 (type) (defun flymake--mode-line-counter-1 (type)