Liking cljdoc? Tell your friends :D

Clojars Project

Introduction

A Clojure and ClojureScript library that parses code and optionally applies parinfer(ish) to it. It works pretty much like parinfer and implements the three modes (indent, paren, and smart) but I'm not necessarily trying to make it behave the exact same way.

Try the interactive docs!

Compared to the real parinfer, parinferish...

  1. Acts as a general purpose clojure parser, because its parse function returns the code a hiccup-style data structure, not merely a string. In fact, adjusting parens/indentation is just an optional step.
  2. Doesn't ever change code when only the cursor position changes (and only smart mode requires the cursor position at all)
  3. Has no basis in math, logic, or sanity...the only basis for any behavior is my own preferences and bugs.

Licensing

All files that originate from this project are dedicated to the public domain. I would love pull requests, and will assume that they are also dedicated to the public domain.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close