Add option for flycheck-joker for clojure
This is provided as a +feature on clojure because joker is not included in the standard clojure distribution, and I wouldn't assume a given clojurist has or wants to have it installed. But I think installing it is the least-fuss option for syntax-checking clojure/script code in emacs with flycheck.
This commit is contained in:
parent
96bea9e9ad
commit
1f581a4e36
4 changed files with 11 additions and 1 deletions
|
@ -80,7 +80,7 @@
|
||||||
:lang
|
:lang
|
||||||
;assembly ; assembly for fun or debugging
|
;assembly ; assembly for fun or debugging
|
||||||
;(cc +irony +rtags); C/C++/Obj-C madness
|
;(cc +irony +rtags); C/C++/Obj-C madness
|
||||||
;clojure ; java with a lisp
|
;(clojure +joker) ; java with a lisp
|
||||||
;common-lisp ; if you've seen one lisp, you've seen them all
|
;common-lisp ; if you've seen one lisp, you've seen them all
|
||||||
;coq ; proofs-as-programs
|
;coq ; proofs-as-programs
|
||||||
;crystal ; ruby at the speed of c
|
;crystal ; ruby at the speed of c
|
||||||
|
|
4
modules/lang/clojure/+joker.el
Normal file
4
modules/lang/clojure/+joker.el
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
;;; lang/clojure/+joker.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(def-package! flycheck-joker
|
||||||
|
:after (flycheck clojure-mode))
|
|
@ -37,3 +37,6 @@
|
||||||
(map! :map clj-refactor-map
|
(map! :map clj-refactor-map
|
||||||
:localleader
|
:localleader
|
||||||
:desc "Refactor hydra" :n "r" #'hydra-cljr-help-menu/body)))
|
:desc "Refactor hydra" :n "r" #'hydra-cljr-help-menu/body)))
|
||||||
|
|
||||||
|
(when (and (featurep! +joker) (featurep! :feature syntax-checker))
|
||||||
|
(load! "+joker"))
|
||||||
|
|
|
@ -4,3 +4,6 @@
|
||||||
(package! cider)
|
(package! cider)
|
||||||
(package! clj-refactor)
|
(package! clj-refactor)
|
||||||
|
|
||||||
|
(when (and (featurep! :feature syntax-checker)
|
||||||
|
(featurep! +joker))
|
||||||
|
(package! flycheck-joker))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue