feat(flymake): add previous and next diagnostic keybinds

This commit is contained in:
Kiana Sheibani 2026-02-04 16:36:33 -05:00
parent 68893a63f9
commit d16c371f10
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -1890,7 +1890,16 @@ While we're here, we'll also set my preferred =evil-escape= keys:
The two most common syntax checking engines seem to be =flymake= and =flycheck=. =flymake= is built in to Emacs, is generally faster and currently has better support in the ecosystem, so I'll use that one. The two most common syntax checking engines seem to be =flymake= and =flycheck=. =flymake= is built in to Emacs, is generally faster and currently has better support in the ecosystem, so I'll use that one.
I really like =flycheck='s double-arrow fringe indicator, though, so let's quickly steal that: Just to make sure nothing else accidentally starts running:
#+begin_src emacs-lisp :tangle packages.el
(package! flycheck :disable t)
(package! flyspell :disable t)
#+end_src
*** Appearance
I really like =flycheck='s double-arrow fringe indicator, so let's quickly steal that:
#+begin_src emacs-lisp #+begin_src emacs-lisp
(after! flymake (after! flymake
@ -1930,16 +1939,11 @@ And just to make sure nothing else accidentally starts running:
"c X" #'flymake-show-project-diagnostics) "c X" #'flymake-show-project-diagnostics)
#+end_src #+end_src
*** Tooltips
Having an IDE-style tooltip pop up is nice, but ~flymake-popon~ is a bit ugly by default.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(after! flymake-popon (map! :m "[ e" #'flymake-goto-prev-error
; Widen popon :m "] e" #'flymake-goto-next-error
(setq flymake-popon-width 120) :m "[ E" #'previous-error
; Add visible border :m "] E" #'next-error)
(set-face-foreground 'flymake-popon-posframe-border (doom-color 'selection)))
#+end_src #+end_src
*** Popups *** Popups