Add flycheck support for Clojure

This commit is contained in:
Jeremy Dormitzer 2020-01-04 08:40:03 -05:00
parent fc7fa03725
commit 901b8a6f2e

View File

@ -1838,13 +1838,22 @@ Start with clojure-mode:
(:+ 3)))
#+END_SRC
Add flycheck support:
#+BEGIN_SRC emacs-lisp
(use-package flycheck-clojure
:commands (flycheck-clojure-setup))
#+END_SRC
Sprinkle in some CIDER:
#+BEGIN_SRC emacs-lisp
(use-package cider
:commands (cider-mode cider-jack-in cider-jack-in-clojurescript)
:config (setq cider-known-endpoints
'(("local" "localhost" "4005"))
cider-prompt-for-symbol nil)
:config
(setq cider-known-endpoints
'(("local" "localhost" "4005"))
cider-prompt-for-symbol nil)
(general-def cider-mode-map "C-c t" cider-test-commands-map)
(flycheck-clojure-setup)
:hook ((clojure-mode . cider-mode)
(clojurescript-mode . cider-mode)
(clojurec-mode . cider-mode))