From 2c67a05f66dafc81d05cfdf53f6f214f447b0ef6 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sat, 28 Oct 2023 15:31:42 +0200 Subject: [PATCH] pinwheel: Add `rust-mode` to `emacs` --- hosts/pinwheel/modules/emacs/config.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/pinwheel/modules/emacs/config.org b/hosts/pinwheel/modules/emacs/config.org index a551a81..c8cee04 100644 --- a/hosts/pinwheel/modules/emacs/config.org +++ b/hosts/pinwheel/modules/emacs/config.org @@ -481,6 +481,7 @@ Setup prefix for keybindings. (javascript-mode . eglot-ensure) (js-mode . eglot-ensure) (js-jsx-mode . eglot-ensure) + (rust-mode . eglot-ensure) ) ) #+END_SRC @@ -530,3 +531,13 @@ Setup prefix for keybindings. #+BEGIN_SRC emacs-lisp (setq js-indent-level 2) #+END_SRC +** Rust +#+BEGIN_SRC emacs-lisp + (use-package flycheck-rust) + + (use-package rust-mode + :hook ( + (flycheck-mode . #'flycheck-rust-setup) + ) + ) +#+END_SRC