Skip to content

Commit 5aff1bd

Browse files
committed
Require rust-ts-mode carefully
Fix rust-lang#524
1 parent 8b1ef9f commit 5aff1bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust-mode-treesitter.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
;;; Code:
77

88
;;;###autoload
9-
(when (version<= "29.1" emacs-version)
9+
(when (and (version<= "29.1" emacs-version)
10+
(treesit-language-available-p 'rust))
1011
;; We have the when macro because of
1112
;; https://github.com/rust-lang/rust-mode/issues/520
1213
(require 'treesit)

0 commit comments

Comments
 (0)