Skip to content
weavejester edited this page Aug 30, 2012 · 4 revisions

You can add the following code to your init.el file to get better indentation for Compojure macros:

(require 'clojure-mode)

(define-clojure-indent
  (defroutes 'defun)
  (GET 2)
  (POST 2)
  (PUT 2)
  (DELETE 2)
  (HEAD 2)
  (ANY 2)
  (context 2))
Clone this wiki locally