rust-lang / rust-mode

Emacs configuration for Rust
Apache License 2.0
1.1k stars 176 forks source link

fix(treesit): auto mode precedence of rust-mode #539

Closed Dev380 closed 2 months ago

Dev380 commented 2 months ago

Currently, rust-ts-mode will add itself to the auto-mode-alist when it is loaded, which is after the autoload for adding rust-mode. We need to re-add rust-mode after loading the treesitter package to make sure this mode has higher priority.