Skip to content

Commit 2181bb9

Browse files
bbatsovkommen
authored andcommitted
Add tests and documentation for the indentation config changes
1 parent 091bf37 commit 2181bb9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

clojure-mode-indentation-test.el

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,27 @@ values of customisable variables."
133133
|\"some doc string
134134
- some note\"")
135135

136+
;; we can specify different indentation for symbol with some ns prefix
137+
(put-clojure-indent 'bala 0)
138+
(put-clojure-indent 'ala/bala 1)
139+
140+
(check-indentation symbol-without-ns
141+
"
142+
(bala
143+
|one)"
144+
"
145+
(bala
146+
|one)")
147+
148+
(check-indentation symbol-with-ns
149+
"
150+
(ala/bala top
151+
|one)"
152+
"
153+
(ala/bala top
154+
|one)")
155+
156+
136157
(provide 'clojure-mode-indentation-test)
137158

138159
;; Local Variables:

0 commit comments

Comments
 (0)