Skip to content

Commit 223ac32

Browse files
committed
Restore old indentation behaviour of :require forms
It's up for debate whether we should use :always-align or respect the -indent-style variable. But the old behaviour was analogous to :always-align (it didn't respect user customization) so let's do that for now.
1 parent d05ec45 commit 223ac32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clojure-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ This function also returns nil meaning don't specify the indentation."
11181118
(cond
11191119
;; Preserve useful alignment of :require (and friends) in `ns' forms.
11201120
((and function (string-match "^:" function))
1121-
(clojure--normal-indent last-sexp :align-arguments))
1121+
(clojure--normal-indent last-sexp :always-align))
11221122
;; This is should be identical to the :defn above.
11231123
((and function
11241124
(string-match "\\`\\(?:\\S +/\\)?\\(def[a-z]*\\|with-\\)"

0 commit comments

Comments
 (0)