Skip to content

Commit 43a088e

Browse files
committed
[Fix #516] Add some notes about configuring comments behaviour
1 parent a7ba83c commit 43a088e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,19 @@ This can also be done automatically (as part of indentation) by
238238
turning on `clojure-align-forms-automatically`. This way it will
239239
happen whenever you select some code and hit `TAB`.
240240

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+
241254
## Refactoring support
242255

243256
The available refactorings were originally created and maintained by the

0 commit comments

Comments
 (0)