@@ -215,6 +215,19 @@ For instructions on how to write these specifications, see
215
215
[ this document] ( https://docs.cider.mx/cider/indent_spec.html ) .
216
216
The only difference is that you're allowed to use lists instead of vectors.
217
217
218
+ ### Indentation of Comments
219
+
220
+ ` clojure-mode ` differentiates between comments like ` ; ` , ` ;; ` , etc.
221
+ By default ` clojure-mode ` treats ` ; ` as inline comments and * always* indents those.
222
+ You can change this behaviour like this:
223
+
224
+ ``` emacs-lisp
225
+ (add-hook 'clojure-mode-hook (lambda () (setq-local comment-column 0)))
226
+ ```
227
+
228
+ You might also want to change ` comment-add ` to 0 in that way, so that Emacs comment
229
+ functions (e.g. ` comment-region ` ) would use ` ; ` by default instead of ` ;; ` .
230
+
218
231
### Vertical alignment
219
232
220
233
You can vertically align sexps with ` C-c SPC ` . For instance, typing
@@ -238,19 +251,6 @@ This can also be done automatically (as part of indentation) by
238
251
turning on ` clojure-align-forms-automatically ` . This way it will
239
252
happen whenever you select some code and hit ` TAB ` .
240
253
241
- ### Comments
242
-
243
- ` clojure-mode ` differentiates between comments like ` ; ` , ` ;; ` , etc.
244
- By default ` clojure-mode ` treats ` ; ` as inline comments and * always* indents those.
245
- You can change this behaviour like this:
246
-
247
- ``` emacs-lisp
248
- (add-hook 'clojure-mode-hook (lambda () (setq-local comment-column 0)))
249
- ```
250
-
251
- You might also want to change ` comment-add ` to 0 in that way, so that Emacs comment
252
- functions (e.g. ` comment-region ` ) would use ` ; ` by default instead of ` ;; ` .
253
-
254
254
## Refactoring support
255
255
256
256
The available refactorings were originally created and maintained by the
0 commit comments