Skip to content

Commit

Permalink
tweak(rust-mode): enable deriving from treesit when available
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Feb 27, 2024
1 parent ae387fc commit 34a0cae
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,9 @@ Fall back to the default `citre--project-root'."

(use-package rust-mode
:straight t
:commands
rust-compile rust-compile-release
rust-check rust-test
rust-run rust-run-release rust-run-clippy
rust-format-buffer rust-goto-format-problem
rust-enable-format-on-save
:init
:custom
(rust-mode-treesitter-derive (+emacs-features-p 'tree-sitter))
:config
(+map-local! :keymaps '(rust-mode-map rust-ts-mode-map)
"c" #'rust-compile
"C" #'rust-compile-release
Expand Down

0 comments on commit 34a0cae

Please sign in to comment.