Fine tune Rust and Cargo related packages
This commit is contained in:
parent
3130097949
commit
f9b50a7af7
@ -3032,13 +3032,30 @@ Because that’s still my favourite language.
|
|||||||
:mode "\\.csv\\'")
|
:mode "\\.csv\\'")
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** ~rust-mode~
|
** Rust
|
||||||
|
|
||||||
|
*** ~rust-mode~
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package rust-mode
|
(use-package rust-mode
|
||||||
:mode "\\.rs\\'")
|
:mode "\\.rs\\'")
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
*** ~cargo~ and ~cargo-mode~ for Cargo usage
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
(use-package cargo)
|
(use-package cargo)
|
||||||
(use-package flycheck-rust)
|
|
||||||
|
(use-package cargo-mode
|
||||||
|
:mode "Cargo\\.toml\\'")
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
*** ~flycheck-rust~
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package flycheck-rust
|
||||||
|
:hook
|
||||||
|
(flycheck-mode . #'flycheck-rust-setup))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** ~arduino-mode~
|
** ~arduino-mode~
|
||||||
|
Loading…
Reference in New Issue
Block a user