[fix] using tree-sitter along with rustic
This commit is contained in:
parent
5805c3b7ec
commit
0147071568
2 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
6
init.el
6
init.el
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue