On Mon 1 Jul 2013 at 07:44:17AM +0800, David Pollak wrote:
> Is there an offline package of Clojure docs (the full core.* api docs,
> cheat sheets, etc.)?
If you work with an editor with clojure REPL integration, you can
fashion your own cheat sheet.
I have a vim command that dumps a list of all public vars with arglists
(filtered by an optional pattern) into a scratch buffer like this:
;;; clojure.core {{{1
clojure.core/*1
clojure.core/*2
clojure.core/*3
…
clojure.core/xml-seq [root]
clojure.core/zero? [x]
clojure.core/zipmap [keys vals]
;;; clojure.core.protocols {{{1
…
Then I use the REPL commands in the buffer to look up docs, source, and
search vars with the editor. It's quite handy, and always up to date.
The funny {{{1 bits are fold markers that allow code folding by
namespace. A cheat sheet in org-mode format would be pretty nice for
emacs.
My apologies if you've already considered this. If you haven't, I hope
you find the suggestion useful.
guns