Skip to content

Commit

Permalink
Update docs and fix treesiter mode
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Feb 17, 2024
1 parent f74dd1c commit 08cea61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions rust-mode-treesitter.el
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 08cea61

Please sign in to comment.