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

@ -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
:localleader
: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! clj-refactor)
(when (and (featurep! :feature syntax-checker)
(featurep! +joker))
(package! flycheck-joker))