clojure-lint-spacemacs-layer icon indicating copy to clipboard operation
clojure-lint-spacemacs-layer copied to clipboard

Spacemacs-layer to add and configure a linter for Clojure

clojure-lint layer

clojure-lint

Enables clojure-mode, flycheck and flycheck-joker. Uses joker for linting in Clojure(Script). Therefore, you have to install joker and make sure it is a binary in the path, e.g. with

yaourt -S joker

Supports clj, cljs and cljc-files:

cljc_support

Installation

Clone this repository to a location where you store your private layers, e.g. ~/.emacs.layers

mkdir ~/.emacs.layers/
git clone https://github.com/n2o/clojure-lint-spacemacs-layer ~/.emacs.layers/clojure-lint

Then link this layer into your .emacs.d folder:

ln -s ~/.emacs.layers/clojure-lint/ ~/.emacs.d/private/clojure-lint

At last, add the new layer clojure-lint and the syntax-checking layer to your dotspacemacs-configuration-layers.

Usage

This automatically enables flycheck-mode with flycheck-joker on Clojure-files and lints your code. No additional steps should be required.