Skip to content

Commit

Permalink
Ensure indent [] when inside () instead of any kind of parens
Browse files Browse the repository at this point in the history
  • Loading branch information
ucieee committed Apr 6, 2008
1 parent ab083ae commit ae5f46d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ This function also returns nil meaning don't specify the indentation."
;; thing on that line has to be complete sexp since we are
;; inside the innermost containing sexp.
(backward-prefix-chars)
(if (eq (char-after (point)) ?\[)
(if (and (eq (char-after (point)) ?\[)
(eq (char-after (elt state 1)) ?\())
(+ (current-column) 2) ;; this is probably inside a defn
(current-column)))
(let ((function (buffer-substring (point)
Expand Down

0 comments on commit ae5f46d

Please sign in to comment.