about summary refs log tree commit diff
path: root/init
diff options
context:
space:
mode:
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)