Skip to content

Commit 264ba7b

Browse files
committed
Add a note about semantic indentation
1 parent 5c52695 commit 264ba7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,19 @@ Most configuration changes will require reverting any active clojure-ts-mode buf
2020

2121
### Indentation
2222

23-
clojure-ts-mode currently supports 2 different indentation strategies
23+
clojure-ts-mode currently supports 2 different indentation strategies:
24+
2425
- `semantic`, the default, which tries to match the indentation of clojure-mode and cljfmt
2526
- `fixed`, [a simple indentation strategy outlined by Tonsky in a blog post](https://tonsky.me/blog/clojurefmt/)
2627

2728
Set the var `clojure-ts-indent-style` to change it.
29+
2830
``` emacs-lisp
2931
(setq clojure-ts-indent-style 'fixed)
3032
```
3133

34+
**Note:** You can find [this article](https://metaredux.com/posts/2020/12/06/semantic-clojure-formatting.html) comparing semantic and fixed indentation useful.
35+
3236
### Font Locking
3337

3438
Too highlight entire rich `comment` expression with the comment font face, set

0 commit comments

Comments
 (0)