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 @@ -1090,6 +1090,9 @@ Implementation function for `clojure--find-indent-spec'."
1090
1090
(when (numberp method)
1091
1091
(setq method (list method)))
1092
1092
(pcase method
1093
+ ((pred functionp)
1094
+ (when (= pos 0 )
1095
+ method))
1093
1096
((pred sequencep)
1094
1097
(pcase (length method)
1095
1098
(`0 nil )
@@ -1102,9 +1105,6 @@ Implementation function for `clojure--find-indent-spec'."
1102
1105
((or `defun `:defn)
1103
1106
(when (= pos 0 )
1104
1107
:defn ))
1105
- ((pred functionp)
1106
- (when (= pos 0 )
1107
- method))
1108
1108
(_
1109
1109
(message " Invalid indent spec for `%s' : %s " function method)
1110
1110
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