summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-05-10 08:41:05 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-05-10 08:41:05 -0700
commitb82a6dc144d0bdb16382388013938310a9b84b71 (patch)
tree174a8dc702d2c0cff0331de0507ec8fd3adf5fc3
parent[vim] some clean up (diff)
downloademacs.d-b82a6dc144d0bdb16382388013938310a9b84b71.tar.gz
[emacs] add racer for rust
-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")