fix: move flymake mouse binding to other fringe

This commit is contained in:
Kiana Sheibani 2026-02-14 18:37:43 -05:00
parent b5504e4fdc
commit be6ee0a8b0
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -2001,6 +2001,18 @@ In order to obtain as much information as possible about the current state of th
*** Bindings
I prefer =flymake='s little error indicator to be on the right fringe, so as not to clutter the already busy left fringe. Doom does this by default, but the binding for clicking the fringe to show an error is still set to the left fringe, so we need to fix that.
#+begin_src emacs-lisp
(map! :after flymake
:when (eq flymake-fringe-indicator-position 'right-fringe)
:map flymake-mode-map
"<left-fringe> <mouse-1>" nil
"<right-fringe> <mouse-1>" #'flymake-show-buffer-diagnostics)
#+end_src
Project-wide diagnostic keybind:
#+begin_src emacs-lisp
(map! :leader
:desc "Open errors buffer"