Skip to content

Commit 9fed392

Browse files
committed
Add special indentation rules for the threading macros
1 parent b9a51d7 commit 9fed392

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Removed `inferior-lisp` integration in favor of `inf-clojure`.
88
* Indent the body of `cond` with 2 spaces.
99
* Remove special indentation settings for `defstruct`, `struct-map` and `assoc`.
10+
* Added special indentation settings for `->`, `->>`, `cond->` and `cond->>`.
1011

1112
## 3.0.1 (24/11/2014)
1213

clojure-mode.el

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,8 @@ it from Lisp code, use (put-clojure-indent 'some-symbol 'defun)."
800800
(case 1)
801801
(cond 0)
802802
(condp 2)
803+
(cond-> 1)
804+
(cond->> 1)
803805
(when 1)
804806
(while 1)
805807
(when-not 1)
@@ -810,6 +812,8 @@ it from Lisp code, use (put-clojure-indent 'some-symbol 'defun)."
810812
(doto 1)
811813
(locking 1)
812814
(proxy 2)
815+
(-> 1)
816+
(->> 1)
813817
(with-open 1)
814818
(with-precision 1)
815819
(with-local-vars 1)

0 commit comments

Comments
 (0)