about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-10-26 15:45:36 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-10-26 15:45:36 +0200
commitffe2ad89ae9de68ee2a0f18fcd14b16a4ffbf986 (patch)
tree8da6c710370f573ffec716c492be1734c8c8b812
parentUpdate (diff)
downloadnixos-config-ffe2ad89ae9de68ee2a0f18fcd14b16a4ffbf986.tar.gz
nixos-config-ffe2ad89ae9de68ee2a0f18fcd14b16a4ffbf986.tar.bz2
nixos-config-ffe2ad89ae9de68ee2a0f18fcd14b16a4ffbf986.zip
Emacs: Replace rust-mode with rustic rust support
-rw-r--r--dotfiles/.emacs14
-rw-r--r--hosts/home.nix1
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