From dda980e2bcc121d828e34c1e2426d51264b0f060 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Tue, 2 Feb 2016 21:39:06 +0200 Subject: [PATCH] Add more CIDER indent spec metas defapi, defroutes, letroutes --- src/compojure/api/api.clj | 1 + src/compojure/api/core.clj | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/compojure/api/api.clj b/src/compojure/api/api.clj index 9515457a..dcb224ea 100644 --- a/src/compojure/api/api.clj +++ b/src/compojure/api/api.clj @@ -65,4 +65,5 @@ " (:doc (meta #'compojure.api.middleware/api-middleware)))} defapi [name & body] + {:style/indent 1} `(def ~name (api ~@body))) diff --git a/src/compojure/api/core.clj b/src/compojure/api/core.clj index fc4621e2..6b290c36 100644 --- a/src/compojure/api/core.clj +++ b/src/compojure/api/core.clj @@ -20,6 +20,7 @@ "Define a Ring handler function from a sequence of routes. The name may optionally be followed by a doc-string and metadata map." [name & routes] + {:style/indent 1} (let [[name routes] (macro/name-with-attributes name routes)] `(def ~name (routes ~@routes)))) @@ -28,6 +29,7 @@ Equivalent to: `(let [...] (routes ...))`" [bindings & body] + {:style/indent 2} `(let ~bindings (routes ~@body))) (defn undocumented