diff --git a/README.md b/README.md index 48d0ece..ff99288 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,10 @@ forms and macros that introduce local bindings (e.g. `loop`, `let`, Use a single space indentation for function (macro) arguments when there are no arguments on the same line as the function name. [[link](#one-space-indent)] + * This one is used by default by [Emacs](https://github.com/clojure-emacs/clojure-mode#indentation-of-macro-forms), + while Cursive and Vim default to the alternative. + Pick one and stick to that. + [[Discussion]](https://github.com/bbatsov/clojure-style-guide/issues/126) ```Clojure ;; good @@ -125,7 +129,11 @@ when there are no arguments on the same line as the function name. bala portokala) - ;; bad - two-space indent + #(or + %1 + %2) + + ;; option - two-space indent (filter even? (range 1 10)) @@ -134,6 +142,10 @@ when there are no arguments on the same line as the function name. ala bala portokala) + + #(or + %1 + %2) ``` *