diff --git a/init.el b/init.el index 27a0bec35..e7357bb4c 100644 --- a/init.el +++ b/init.el @@ -76,6 +76,7 @@ bindings eshell-setup haskell-setup + rust-setup )) (add-to-list 'load-path (concat user-emacs-directory "scripts")) diff --git a/init/rust-setup.el b/init/rust-setup.el index a4cf3c5a5..8eab1d9bd 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)