Update lang modules' :build settings

This commit is contained in:
Henrik Lissner 2017-04-07 01:45:57 -04:00
parent 8f04e0355f
commit 648c4c1d3b
9 changed files with 27 additions and 10 deletions

View file

@ -1,2 +1,7 @@
;;; lang/rust/autoload.el
;;;###autoload
;; TODO (defun +rust/run-cargo () (interactive))
;;;###autoload
;; TODO (defun +rust-cargo-project-p ())

View file

@ -8,8 +8,8 @@
:init
(add-hook 'rust-mode-hook 'flycheck-mode)
:config
(set! :build 'cargo-run '(rust-mode toml-mode)
'+rust-is-cargo-project-p '+rust/cargo-run))
(set! :build 'run-cargo '(rust-mode toml-mode) '+rust/run-cargo
:when '+rust-cargo-project-p))
(def-package! racer