Skip to content

Commit ae5f46d

Browse files
committed
Ensure indent [] when inside () instead of any kind of parens
1 parent ab083ae commit ae5f46d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clojure-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ This function also returns nil meaning don't specify the indentation."
329329
;; thing on that line has to be complete sexp since we are
330330
;; inside the innermost containing sexp.
331331
(backward-prefix-chars)
332-
(if (eq (char-after (point)) ?\[)
332+
(if (and (eq (char-after (point)) ?\[)
333+
(eq (char-after (elt state 1)) ?\())
333334
(+ (current-column) 2) ;; this is probably inside a defn
334335
(current-column)))
335336
(let ((function (buffer-substring (point)

0 commit comments

Comments
 (0)