diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2018-05-10 08:41:05 -0700 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2018-05-10 08:41:05 -0700 |
commit | b82a6dc144d0bdb16382388013938310a9b84b71 (patch) | |
tree | 174a8dc702d2c0cff0331de0507ec8fd3adf5fc3 /emacs.d/modules | |
parent | [vim] some clean up (diff) | |
download | emacs.d-b82a6dc144d0bdb16382388013938310a9b84b71.tar.gz |
[emacs] add racer for rust
Diffstat (limited to 'emacs.d/modules')
-rw-r--r-- | emacs.d/modules/module-rust.el | 4 |
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") |