summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSibi Prabakaran <sibi@psibi.in>2024-02-17 10:44:38 +0530
committerSibi Prabakaran <sibi@psibi.in>2024-02-17 11:12:16 +0530
commit08cea61390971d26b982677bc0658a9ff79b34e0 (patch)
tree3ab3dedd879cedf775c31ae5a926548657b93987
parentf74dd1cd87987ea7faf0cfc6240c2284ef9133cb (diff)
downloadrust-mode-08cea61390971d26b982677bc0658a9ff79b34e0.tar.gz
Update docs and fix treesiter mode
-rw-r--r--README.md2
-rw-r--r--rust-mode-treesitter.el3
2 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 217b990..2b77636 100644
--- a/README.md
+++ b/README.md
@@ -201,7 +201,7 @@ You can try the new native treesitter mode `rust-ts-mode` with:
(setq rust-mode-treesitter-derive t))
```
-In case you want to use treesitter but can't use emacs master, you can
+In case you want to use treesitter but can't use Emacs 29.1, you can
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:
diff --git a/rust-mode-treesitter.el b/rust-mode-treesitter.el
index 1183e98..3c3bd57 100644
--- a/rust-mode-treesitter.el
+++ b/rust-mode-treesitter.el
@@ -6,6 +6,9 @@
;;; Code:
;;;###autoload
+(require 'treesit)
+(require 'rust-ts-mode)
+
(define-derived-mode rust-mode rust-ts-mode "Rust"
"Major mode for Rust code.