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.