Fix race condition

This commit is contained in:
Henrik Lissner 2016-05-25 00:10:26 -04:00
parent 86c9cecc4b
commit 3af24222b3
2 changed files with 5 additions and 6 deletions

View file

@ -11,11 +11,10 @@
(use-package flycheck-rust
:after rust-mode)
(defvar racer-cmd (concat doom-ext-dir "/racer"))
(defvar racer-rust-src-path (concat doom-ext-dir "/rust/src/"))
(use-package racer
:after rust-mode
:preface
(setq racer-cmd (concat doom-ext-dir "/racer")
racer-rust-src-path (concat doom-ext-dir "/rust/src/"))
:when (f-exists? racer-cmd)
:init (add-hook! rust-mode '(racer-mode eldoc-mode flycheck-rust-setup))
:config