Skip to content

Commit 0df2f22

Browse files
committed
mention elisp-tree-sitter
1 parent d17be30 commit 0df2f22

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- [Clippy](#clippy)
2222
- [Easy insertion of dbg!](#easy-insertion-of-dbg)
2323
- [More commands](#more-commands)
24+
- [highlighting with tree-sitter](#highlighting-with-tree-sitter)
2425
- [LSP](#lsp)
2526
- [eglot](#eglot)
2627
- [lsp-mode](#lsp-mode)
@@ -190,6 +191,18 @@ This is bound to <kbd>C-c C-d</kbd> by default.
190191

191192
- `rustic-toggle-mutability` toggle mut for var defined at current line
192193

194+
## highlighting with tree-sitter
195+
196+
You should take a look at [tree-sitter](https://github.com/emacs-tree-sitter/elisp-tree-sitter). When the dependencies are installed you can activate the feature with:
197+
198+
```elisp
199+
(use-package tree-sitter
200+
:config
201+
(require 'tree-sitter-langs)
202+
(global-tree-sitter-mode)
203+
(add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode))
204+
```
205+
193206
## LSP
194207

195208
### eglot

0 commit comments

Comments
 (0)