Skip to content

Commit

Permalink
rust-mode: Derive from rust-ts-mode only when treesit is available
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason0210 committed Dec 22, 2024
1 parent 94e7884 commit 5204efd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init.el
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,8 @@ typical word processor."

(use-package rust-mode
:defer t
:custom (rust-mode-treesitter-derive t))
:custom (rust-mode-treesitter-derive (and (fboundp 'treesit-available-p)
(treesit-available-p))))

(use-package envrc
:bind-keymap ("C-c e" . envrc-command-map)
Expand Down

0 comments on commit 5204efd

Please sign in to comment.