File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 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'."
10901090 (when (numberp method)
10911091 (setq method (list method)))
10921092 (pcase method
1093+ ((pred functionp)
1094+ (when (= pos 0 )
1095+ method))
10931096 ((pred sequencep)
10941097 (pcase (length method)
10951098 (`0 nil )
@@ -1102,9 +1105,6 @@ Implementation function for `clojure--find-indent-spec'."
11021105 ((or `defun `:defn)
11031106 (when (= pos 0 )
11041107 :defn ))
1105- ((pred functionp)
1106- (when (= pos 0 )
1107- method))
11081108 (_
11091109 (message " Invalid indent spec for `%s' : %s " function method)
11101110 nil ))))))
Original file line number Diff line number Diff line change @@ -164,6 +164,17 @@ values of customisable variables."
164164(ala/bala top
165165 |one)" )
166166
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+
167178(check-indentation form-with-metadata
168179 "
169180(ns ^:doc app.core
You can’t perform that action at this time.
0 commit comments