emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode 0df2f22479: mention elisp-tree-sitter


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 0df2f22479: mention elisp-tree-sitter
Date: Thu, 19 May 2022 14:58:40 -0400 (EDT)

branch: elpa/rust-mode
commit 0df2f22479b98f76d97de90e1c390ff1b0902a46
Author: brotzeit <brotzeitmacher@gmail.com>
Commit: brotzeit <brotzeitmacher@gmail.com>

    mention elisp-tree-sitter
---
 README.md | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/README.md b/README.md
index f98f6ab85e..e96004809c 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,7 @@
         - [Clippy](#clippy)
         - [Easy insertion of dbg!](#easy-insertion-of-dbg)
         - [More commands](#more-commands)
+    - [highlighting with tree-sitter](#highlighting-with-tree-sitter)
     - [LSP](#lsp)
         - [eglot](#eglot)
         - [lsp-mode](#lsp-mode)
@@ -190,6 +191,18 @@ This is bound to <kbd>C-c C-d</kbd> by default.
 
 - `rustic-toggle-mutability` toggle mut for var defined at current line
 
+## highlighting with tree-sitter
+
+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:
+
+```elisp
+(use-package tree-sitter
+  :config
+  (require 'tree-sitter-langs)
+  (global-tree-sitter-mode)
+  (add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode))
+```
+
 ## LSP
 
 ### eglot



reply via email to

[Prev in Thread] Current Thread [Next in Thread]