Skip to content

Commit

Permalink
Enable tree sitter code only when it's enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Feb 28, 2024
1 parent a8f9469 commit c7b9b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust-mode-treesitter.el
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
;;; Code:

;;;###autoload
(when (version<= "29.1" emacs-version)
(when (and (version<= "29.1" emacs-version) rust-mode-treesitter-derive)
;; We have the when macro because of
;; https://github.com/rust-lang/rust-mode/issues/520
(require 'treesit)
Expand Down

0 comments on commit c7b9b21

Please sign in to comment.