Multiline Clojure docstrings

If you’re using Emacs, grab clojure-mode.el from technomancy’s Github, which differs from the one in ELPA (I don’t know why, both claim to be version 1.11.5, maybe someone can comment on that?) but includes clojure-fill-docstring which will format docstrings with nice indentation and linewrapping, bound by default to C-c M-q. It will take this: (defn … Read more

How do I set up Aquamacs for Clojure development?

These are the steps I took to set them up without using ELPA. Hope this helps. Get SLIME using MacPorts sudo port -v install slime Get paredit curl -O http://mumble.net/~campbell/emacs/paredit.el Get clojure & clojure-contrib Either using MacPorts sudo port -v install clojure clojure-contrib Or downloading directly curl -O http://build.clojure.org/snapshots/org/clojure/clojure/1.1.0-master-SNAPSHOT/clojure-1.1.0-master-20091202.150145-1.jar curl -O http://build.clojure.org/snapshots/org/clojure/clojure-contrib/1.1.0-master-SNAPSHOT/clojure-contrib-1.1.0-master-20091212.205045-1.jar Get clojure-mode and … Read more

Reason for skipping AOT?

This isn’t specific to noir but one scenario you might want to skip AOT for a given namespace is when deploying your code to a PaaS provider such as heroku. Heroku performs AOT compilation of your code by default so consider this snippet in your server.clj: (db/connect! (System/getenv “DB_URL”)) (defn start [port] (run-jetty app {:port … Read more

tech