summary refs log tree commit diff
path: root/emacs.d/modules
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/modules')
-rw-r--r--emacs.d/modules/module-rust.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs.d/modules/module-rust.el b/emacs.d/modules/module-rust.el
index f39aacf..a229cc4 100644
--- a/emacs.d/modules/module-rust.el
+++ b/emacs.d/modules/module-rust.el
@@ -2,9 +2,13 @@
 
 (use-package rust-mode)
 
+(use-package racer)
+
 (use-package cargo
   :hook (rust-mode . cargo-minor-mode)
   :config
+  (add-hook 'rust-mode-hook 'racer-mode)
+  (add-hook 'rust-mode-hook 'eldoc-mode)
   (setq compilation-ask-about-save nil
         rust-format-on-save t
         rust-rustfmt-bin "/Users/fcuny/.cargo/bin/rustfmt")