summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/init.el b/init.el
index 26720d9..934b452 100644
--- a/init.el
+++ b/init.el
@@ -144,6 +144,12 @@ This functions should be added to the hooks of major modes for programming."
;; company-mode
(add-hook 'after-init-hook 'global-company-mode)
+(require 'company-racer)
+
+(with-eval-after-load 'company
+ (add-to-list 'company-backends 'company-racer))
+(unless (getenv "RUST_SRC_PATH")
+ (setenv "RUST_SRC_PATH" (expand-file-name "~/Downloads/rustc-nightly/src")))
;; typescript: tide
@@ -173,6 +179,7 @@ This functions should be added to the hooks of major modes for programming."
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
+ '(company-racer-executable "~/.cargo/bin/racer")
'(custom-enabled-themes (quote (cyberpunk)))
'(custom-safe-themes
(quote