diff options
-rw-r--r-- | init.el | 1 | ||||
-rw-r--r-- | init/rust-setup.el | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/init.el b/init.el index 27a0bec35a39..e7357bb4cee0 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 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) |