clojure-emacs / squiggly-clojure

Flycheck checker for Clojure, using eastwood and core.typed.
GNU General Public License v3.0
204 stars 25 forks source link

next-error-function is unchanged #20

Closed expez closed 8 years ago

expez commented 9 years ago

The keys M-n and M-p are bound to next-error and previous-error respectively. It's common to override the next-error-function to make these navigational commands work properly. Right now these are bound by cider to cider-jump-to-compilation-error which means flycheck errors can't be navigated.

Alternatively we could put this in the README:

(add-hook 'cider-mode-hook 
  (lambda () (setq next-error-function #'flycheck-next-error-function)))
pnf commented 8 years ago

Advice added to README: If you're used to flycheck but not used to cider, you may want

(add-hook 'cider-mode-hook 
  (lambda () (setq next-error-function #'flycheck-next-error-function)))

to override the binding to ```cider-jump-to-compilation-error.