Slick Clojure Editor Setup with Atom
Clojure has an amazing tooling and support for a couple of editors including — Emacs and Cursive. Still, every time when I open them they feel … heavy. I spend quite a bit of time researching different options and even though I love VSCode I found peace with Atom.
Couple of things to consider when we talk about editing Clojure:
- Parentheses — to not worry about inference/coloring of the parens
- REPL — to evaluate functions
- Linter — to highlight warnings and errors
- Formatter — to not worry about code formatting
This guide is based on atom tools guide from clojurescript.org website.
Installation
apm install parinfer lisp-paredit rainbow-delimiters
Credits:
parinfer — Shaun LeBron and Chris Oakman
lisp-paredit — Jon Spalding
rainbow-delimiters — Mounier Florian
Linter
brew install candid82/brew/jokerapm install linter-joker
Credits:
joker — Roman Bataev
linter-joker-Ryan De La Torre
Formatter
apm install atom-beautify
Credits:
atom-beautify — Glavin Wiechert
node-cljfmt —Case Nelson
cljfmt — James Reeves
Look and Feel
apm install atom-file-icons hasklig
Credits:
atom-file-icons — Donovan Hiland
atom-hasklig — adilparvez
hasklig — Ian Tuomi
Here are Vimeo Album and YouTube Playlist
If you enjoyed this article, and would like to be notified when I release similar story consider following me on medium and twitter.