From fc457909cb9c52e346c0f706737603cc1e9142a8 Mon Sep 17 00:00:00 2001 From: David Li Date: Mon, 21 Mar 2016 21:15:18 -0400 Subject: Enable company-racer --- init.el | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3