diff options
author | David Li <li.davidm96@gmail.com> | 2016-03-21 21:15:18 -0400 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2016-03-21 21:15:18 -0400 |
commit | fc457909cb9c52e346c0f706737603cc1e9142a8 (patch) | |
tree | d8137da1db5de12d2ab3e2281d6663b5a0072f81 | |
parent | 54012945a4367ac8e3638e39bf41f40e645b35ab (diff) |
Enable company-racer
-rw-r--r-- | init.el | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |