about summary refs log tree commit diff
path: root/init
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-11-06T21·26+0100
committerVincent Ambo <tazjin@gmail.com>2017-11-06T21·26+0100
commit5f5abc05ba1b86689477669290b61a39ad35f5c0 (patch)
tree7a1651d5a506c4ed09df8c232fea73db3d73db39 /init
parent8996bceea1ed99cc13a7dd3f030395487a0d6ac9 (diff)
fix(rust): Include automatically & set racer path
Diffstat (limited to 'init')
-rw-r--r--init/rust-setup.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/init/rust-setup.el b/init/rust-setup.el
index a4cf3c5a5116..8eab1d9bdc9f 100644
--- a/init/rust-setup.el
+++ b/init/rust-setup.el
@@ -12,3 +12,9 @@
 
 ;; Ensure long compiler errors don't flow out of the screen (very annoying!)
 (add-hook 'cargo-process-mode-hook #'visual-line-mode)
+
+;; I don't use rustup and I'm not sure which derivation would normally place
+;; Rust sources in the nix-store, so I'll continue using my local Rust checkout.
+(setq racer-rust-src-path "~/source/rust")
+
+(provide 'rust-setup)