fix: move flymake mouse binding to other fringe
This commit is contained in:
parent
b5504e4fdc
commit
be6ee0a8b0
1 changed files with 12 additions and 0 deletions
12
config.org
12
config.org
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue