[fix] using tree-sitter along with rustic

This commit is contained in:
Chris Cochrun 2026-05-18 11:02:22 -05:00
parent 5805c3b7ec
commit 0147071568
2 changed files with 14 additions and 0 deletions

View file

@ -3838,9 +3838,17 @@ In c++ I just want to make sure lsp is called when enter c++-mode
:PROPERTIES:
:ID: 20231120T054703.266056
:END:
#+begin_src emacs-lisp
(use-package rust-mode
:ensure t
:init
(setq rust-mode-treesitter-derive t))
#+end_src
I'd like to start learning and using rust if I can.
#+begin_src emacs-lisp
(use-package rustic
:after (rust-mode)
:config
;; comment to disable rustfmt on save
(setq rustic-format-on-save t

View file

@ -2827,7 +2827,13 @@ current buffer's, reload dir-locals."
(add-hook 'c-mode-common-hook (lambda () (add-hook 'before-save-hook 'astyle-before-save)))
(use-package rust-mode
:ensure t
:init
(setq rust-mode-treesitter-derive t))
(use-package rustic
:after (rust-mode)
:config
;; comment to disable rustfmt on save
(setq rustic-format-on-save t