From ffe2ad89ae9de68ee2a0f18fcd14b16a4ffbf986 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Wed, 26 Oct 2022 15:45:36 +0200 Subject: Emacs: Replace rust-mode with rustic rust support --- dotfiles/.emacs | 14 ++------------ hosts/home.nix | 1 + 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/dotfiles/.emacs b/dotfiles/.emacs index 2c3db3c..6bbe510 100644 --- a/dotfiles/.emacs +++ b/dotfiles/.emacs @@ -110,15 +110,5 @@ (use-package lsp-haskell :ensure t ) -(use-package rust-mode - : ensure t) - -(add-hook 'rust-mode-hook - (lambda () (setq indent-tabs-mode nil))) - -(setq rust-format-on-save t) - -(add-hook 'rust-mode-hook - (lambda () (prettify-symbols-mode))) - -(add-hook 'rust-mode-hook #'lsp) +(use-package rustic + :ensure t) diff --git a/hosts/home.nix b/hosts/home.nix index cfe599f..049e6dc 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -152,6 +152,7 @@ lsp-mode company rust-mode + rustic flycheck lsp-haskell -- cgit 1.4.1