feat(flymake): add previous and next diagnostic keybinds
This commit is contained in:
parent
68893a63f9
commit
d16c371f10
1 changed files with 14 additions and 10 deletions
24
config.org
24
config.org
|
|
@ -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.
|
||||
|
||||
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
|
||||
(after! flymake
|
||||
|
|
@ -1930,16 +1939,11 @@ And just to make sure nothing else accidentally starts running:
|
|||
"c X" #'flymake-show-project-diagnostics)
|
||||
#+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
|
||||
(after! flymake-popon
|
||||
; Widen popon
|
||||
(setq flymake-popon-width 120)
|
||||
; Add visible border
|
||||
(set-face-foreground 'flymake-popon-posframe-border (doom-color 'selection)))
|
||||
(map! :m "[ e" #'flymake-goto-prev-error
|
||||
:m "] e" #'flymake-goto-next-error
|
||||
:m "[ E" #'previous-error
|
||||
:m "] E" #'next-error)
|
||||
#+end_src
|
||||
|
||||
*** Popups
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue