Replace feature/eval build system with def-menu!
This commit is contained in:
parent
63d5fec4aa
commit
d0fcb23314
15 changed files with 51 additions and 160 deletions
|
@ -2,4 +2,7 @@
|
|||
|
||||
;; TODO (defun +rust/run-cargo () (interactive))
|
||||
|
||||
;; TODO (defun +rust-cargo-project-p ())
|
||||
;;;###autoload
|
||||
(defun +rust-cargo-project-p ()
|
||||
"Return t if this is a cargo project."
|
||||
(doom-project-has! "Cargo.toml"))
|
||||
|
|
|
@ -11,8 +11,11 @@
|
|||
(def-package! rust-mode
|
||||
:mode "\\.rs$"
|
||||
:config
|
||||
(set! :build 'run-cargo '(rust-mode toml-mode) #'+rust/run-cargo
|
||||
:when #'+rust-cargo-project-p))
|
||||
(def-menu! +rust/build-menu
|
||||
"TODO"
|
||||
'(("run" :exec "cargo run" :cwd t :when (+rust-cargo-project-p))
|
||||
("build" :exec "cargo build" :cwd t :when (+rust-cargo-project-p)))
|
||||
:prompt "Cargo: "))
|
||||
|
||||
|
||||
(def-package! racer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue