Skip to content

Commit da9f1ec

Browse files
committed
Move the section on comments
1 parent 43a088e commit da9f1ec

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,19 @@ For instructions on how to write these specifications, see
215215
[this document](https://docs.cider.mx/cider/indent_spec.html).
216216
The only difference is that you're allowed to use lists instead of vectors.
217217

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+
218231
### Vertical alignment
219232

220233
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
238251
turning on `clojure-align-forms-automatically`. This way it will
239252
happen whenever you select some code and hit `TAB`.
240253

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-
254254
## Refactoring support
255255

256256
The available refactorings were originally created and maintained by the

0 commit comments

Comments
 (0)