summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2016-03-21 21:15:18 -0400
committerDavid Li <li.davidm96@gmail.com>2016-03-21 21:15:18 -0400
commitfc457909cb9c52e346c0f706737603cc1e9142a8 (patch)
treed8137da1db5de12d2ab3e2281d6663b5a0072f81
parent54012945a4367ac8e3638e39bf41f40e645b35ab (diff)
Enable company-racer
-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