From 4bfaa6b2f0349a415b57506d3b667c43040aaca9 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 22 Jul 2025 16:56:18 +0200 Subject: emacs: Bring back Rust support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .config/emacs/init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/emacs/init.el b/.config/emacs/init.el index cea1546..4018538 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -556,6 +556,13 @@ :hook ((go-mode . lsp-deferred) (go-mode . mssola/golang-before-save-hooks))) +;; Rust development environment with everything already cooked in. +(use-package rustic + :mode ("\\.rs\\'" . rust-mode) + :mode ("\\.rs\\'" . rustic-mode) + :custom + (rustic-analyzer-command '("rustup" "run" "stable" "rust-analyzer"))) + ;; Utils ;; Provide the `xref-find-definitions' interactive function which can be used to -- cgit v1.2.3