warcry98 / clj-cookbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clj-cookbook

A collection of useful Clojure recipes (the sort of things you do once in the lifetime of a project and then forget how to do).

Meta level recipes will be documented here.

Formatting pre-commit hook

Pre-commit hook bash script can be found here.

Downloads and caches zprint and uses it to format staged code automatically on commit.

Formatting rules can be configured here.

Setup:

git config core.hooksPath git-hooks
chmod +x git-hooks/pre-commit

The accompanying blog post can be found here.

About


Languages

Language:Clojure 60.7%Language:HTML 34.0%Language:Shell 2.5%Language:Ruby 2.4%Language:Java 0.4%