Skip to content
Oleh Krehel edited this page Aug 21, 2019 · 2 revisions

The following Hydra pops open a list of Flycheck errors and then allows easy navigation through them. The error list closes automatically when you quit the Hydra. I have it bound to <Leader>e with evil-leader-mode.

(defhydra hydra-flycheck
    (:pre (flycheck-list-errors)
     :post (quit-windows-on "*Flycheck errors*")
     :hint nil)
  "Errors"
  ("f" flycheck-error-list-set-filter "Filter")
  ("j" flycheck-next-error "Next")
  ("k" flycheck-previous-error "Previous")
  ("gg" flycheck-first-error "First")
  ("G" (progn (goto-char (point-max)) (flycheck-previous-error)) "Last")
  ("q" nil))
Clone this wiki locally