From fc091fcc613fabd5354791240047a018563ebc24 Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Thu, 25 Nov 2021 20:56:00 +0100 Subject: [PATCH] doom-modeline-update-flycheck-text: literal vector Otherwise, I get the error `Two bases given in one event`. --- doom-modeline-segments.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 415ec9e..d467d0b 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -881,14 +881,12 @@ mouse-3: Next error" (define-key map [mode-line mouse-3] #'flycheck-next-error) (when (featurep 'mwheel) - (define-key map (vector 'mode-line - mouse-wheel-down-event) + (define-key map [mode-line mouse-wheel-down-event] (lambda (event) (interactive "e") (with-selected-window (posn-window (event-start event)) (flycheck-previous-error 1)))) - (define-key map (vector 'mode-line - mouse-wheel-up-event) + (define-key map [mode-line mouse-wheel-up-event] (lambda (event) (interactive "e") (with-selected-window (posn-window (event-start event))