Skip to content

Commit 60a1f36

Browse files
authored
Merge pull request #216 from Aankhen/set-compile-command
Set `compile-command' in `rust-mode'
2 parents ac6a45e + d38bfb8 commit 60a1f36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rust-mode.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,6 +1408,9 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
14081408
(setq-local end-of-defun-function 'rust-end-of-defun)
14091409
(setq-local parse-sexp-lookup-properties t)
14101410
(setq-local electric-pair-inhibit-predicate 'rust-electric-pair-inhibit-predicate-wrap)
1411+
1412+
(setq-local compile-command "cargo build")
1413+
14111414
(add-hook 'before-save-hook 'rust--before-save-hook nil t))
14121415

14131416
;;;###autoload

0 commit comments

Comments
 (0)