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:
Matthew Lyon 2018-09-07 20:35:29 -07:00
parent 96bea9e9ad
commit 1f581a4e36
4 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -0,0 +1,4 @@
;;; lang/clojure/+joker.el -*- lexical-binding: t; -*-
(def-package! flycheck-joker
:after (flycheck clojure-mode))

View file

@ -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"))

View file

@ -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))