From f9b50a7af7fc62f391d9231e0fedab745e2c79dd Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sun, 22 Oct 2023 08:30:39 +0200 Subject: [PATCH] Fine tune Rust and Cargo related packages --- configuration.org | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/configuration.org b/configuration.org index 34b3370..c5f5136 100644 --- a/configuration.org +++ b/configuration.org @@ -3032,13 +3032,30 @@ Because that’s still my favourite language. :mode "\\.csv\\'") #+end_src -** ~rust-mode~ +** Rust + +*** ~rust-mode~ #+begin_src emacs-lisp (use-package rust-mode :mode "\\.rs\\'") +#+end_src + +*** ~cargo~ and ~cargo-mode~ for Cargo usage + +#+begin_src emacs-lisp (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 ** ~arduino-mode~