branch: elpa/flymake-kondor commit 2af18767f6e223a5d0b6eb013fa0787790dd9dcb Author: ad...@turbocafe.in.eu.org <ad...@turbocafe.in.eu.org> Commit: ad...@turbocafe.in.eu.org <ad...@turbocafe.in.eu.org>
readme --- README.org | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/README.org b/README.org index e7b459d..94b4271 100644 --- a/README.org +++ b/README.org @@ -3,20 +3,8 @@ #+AUTHOR: https://turbocafe.keybase.pub this package integrates clj-kondo a clojure linter into emacs' -flymake; if you use flymake you may have something like following in -init.el - -#+BEGIN_SRC emacs-lisp -(use-package flymake - :ensure nil - :bind (([f8] . flymake-goto-next-error) - ([f7] . flymake-goto-prev-error)) - :hook (prog-mode . (lambda () (flymake-mode t))) - :config (remove-hook 'flymake-diagnostic-functions 'flymake-proc-legacy-flymake)) -#+END_SRC - -to use this package get clj-kondo following [[https://github.com/borkdude/clj-kondo/blob/master/doc/install.md][installation instructions]]; -then proceed with your preferred way of adding packages +flymake; to use this package get clj-kondo following [[https://github.com/borkdude/clj-kondo/blob/master/doc/install.md][installation +instructions]]; then proceed with your preferred way of adding packages * melpa @@ -37,13 +25,26 @@ then proceed with your preferred way of adding packages * local #+BEGIN_SRC emacs-lisp -(use-package flymake-kondor - :ensure flymake-quickdef - :after flymake - :load-path "site-lisp/flymake-kondor" - :hook (clojure-mode . flymake-kondor-setup)) +(add-to-list 'load-path "~/path/to/flymake-kondor") +(require "flymake-kondor") +(add-hook 'clojure-mode-hook 'flymake-kondor-setup) #+END_SRC -when in clojure-mode flymake-mode is activated and you can navigate to -prev/next error in buffer; there's [[https://github.com/borkdude/flycheck-clj-kondo][sister project]] that integrates -clj-kondo into flycheck if you use that one + +* note about flymake + +to start linting activate =M-x flymake-mode= in clojure buffer; even +better assign hook and keys so you could navigate to prev/next error +in buffer instantly + +#+BEGIN_SRC emacs-lisp +(use-package flymake + :ensure nil + :bind (([f8] . flymake-goto-next-error) + ([f7] . flymake-goto-prev-error)) + :hook (prog-mode . (lambda () (flymake-mode t))) + :config (remove-hook 'flymake-diagnostic-functions 'flymake-proc-legacy-flymake)) +#+END_SRC + +there's [[https://github.com/borkdude/flycheck-clj-kondo][sister project]] that integrates clj-kondo into flycheck +