summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2017-07-12 15:14:19 -0400
committerGitHub <noreply@github.com>2017-07-12 15:14:19 -0400
commit60a1f36f4111e825d20d9c3aed561981c470806a (patch)
treee981340bc964daa734856353d38980dedd0673d7
parentac6a45e6091c0d542b696b6e13551be7e333264a (diff)
parentd38bfb8e9778a23b06c8298461c4d6816d99b480 (diff)
downloadrust-mode-60a1f36f4111e825d20d9c3aed561981c470806a.tar.gz
Merge pull request #216 from Aankhen/set-compile-command
Set `compile-command' in `rust-mode'
-rw-r--r--rust-mode.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/rust-mode.el b/rust-mode.el
index cdf4edb..f3f799c 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1408,6 +1408,9 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
(setq-local end-of-defun-function 'rust-end-of-defun)
(setq-local parse-sexp-lookup-properties t)
(setq-local electric-pair-inhibit-predicate 'rust-electric-pair-inhibit-predicate-wrap)
+
+ (setq-local compile-command "cargo build")
+
(add-hook 'before-save-hook 'rust--before-save-hook nil t))
;;;###autoload