File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -1012,6 +1012,9 @@ Implementation function for `clojure--find-indent-spec'."
1012
1012
(when (numberp method)
1013
1013
(setq method (list method)))
1014
1014
(pcase method
1015
+ ((pred functionp)
1016
+ (when (= pos 0 )
1017
+ method))
1015
1018
((pred sequencep)
1016
1019
(pcase (length method)
1017
1020
(`0 nil )
@@ -1024,9 +1027,6 @@ Implementation function for `clojure--find-indent-spec'."
1024
1027
((or `defun `:defn)
1025
1028
(when (= pos 0 )
1026
1029
:defn ))
1027
- ((pred functionp)
1028
- (when (= pos 0 )
1029
- method))
1030
1030
(_
1031
1031
(message " Invalid indent spec for `%s' : %s " function method)
1032
1032
nil ))))))
Original file line number Diff line number Diff line change @@ -164,6 +164,17 @@ values of customisable variables."
164
164
(ala/bala top
165
165
|one)" )
166
166
167
+ ; ; we can pass a lambda to explicitely set the column
168
+ (put-clojure-indent 'arsymbol (lambda (indent-point state ) 0 ))
169
+
170
+ (check-indentation symbol-with-lambda
171
+ "
172
+ (arsymbol
173
+ |one)"
174
+ "
175
+ (arsymbol
176
+ |one)" )
177
+
167
178
(check-indentation form-with-metadata
168
179
"
169
180
(ns ^:doc app.core
You can’t perform that action at this time.
0 commit comments