From 4071dc3ea23be98cd6a01488715ad0a8a4e8daf9 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 15 Dec 2022 20:57:33 +0100 Subject: [PATCH] Setup Rust --- emacs/emacs.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/emacs/emacs.el b/emacs/emacs.el index 641cc34..ac06674 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -43,3 +43,10 @@ (straight-use-package 'lsp-mode) (straight-use-package 'company-mode) + +(straight-use-package 'rust-mode) +(add-hook 'rust-mode-hook #'lsp) +(add-hook 'rust-mode-hook + (lambda () (setq indent-tabs-mode nil))) +(setq rust-format-on-save t) + -- 2.47.3