about summary refs log tree commit diff
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
parent8996bceea1ed99cc13a7dd3f030395487a0d6ac9 (diff)
fix(rust): Include automatically & set racer path
-rw-r--r--init.el1
-rw-r--r--init/rust-setup.el6
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)