summary refs log tree commit diff
path: root/emacs.d/lib/packages.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/lib/packages.el')
-rw-r--r--emacs.d/lib/packages.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/emacs.d/lib/packages.el b/emacs.d/lib/packages.el
index 1d42e09..9abfdb3 100644
--- a/emacs.d/lib/packages.el
+++ b/emacs.d/lib/packages.el
@@ -213,6 +213,7 @@
                  ("python" (mode . python-mode))
                  ("repl"   (name . "repl"))
                  ("ruby"   (mode . ruby-mode))
+                 ("rust"   (mode . rust-mode))
                  ("sh"     (mode . sh-mode))
                  ("text"   (mode . text-mode))))))
 
@@ -375,6 +376,18 @@
   :config
   (setq recentf-save-file (expand-file-name "var/recentf" user-emacs-directory)))
 
+(use-package rust-mode
+  :ensure t
+  :config
+  (use-package cargo
+    :hook (rust-mode . cargo-minor-mode)
+    :config
+    (setq compilation-ask-about-save nil)
+    ;; Automatically re-run compilation command on manual save inside a project.
+    ;; Will do nothing if a compilation hasn't been manually triggered
+    ;; in the past.
+    :diminish cargo-minor-mode))
+
 (use-package sh-script
   ;; configuration to interact with shell scripts
   :mode ("bashrc" . sh-mode)
@@ -390,6 +403,9 @@
   ;; install swiper
   :ensure t)
 
+(use-package toml-mode
+  :ensure t)
+
 (use-package tramp
   ;; configuration for tramp
   :config