emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode 60a1f36 310/486: Merge pull request #216 from Aa


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 60a1f36 310/486: Merge pull request #216 from Aankhen/set-compile-command
Date: Sat, 7 Aug 2021 09:25:42 -0400 (EDT)

branch: elpa/rust-mode
commit 60a1f36f4111e825d20d9c3aed561981c470806a
Merge: ac6a45e d38bfb8
Author: Niko Matsakis <niko@alum.mit.edu>
Commit: GitHub <noreply@github.com>

    Merge pull request #216 from Aankhen/set-compile-command
    
    Set `compile-command' in `rust-mode'
---
 rust-mode.el | 3 +++
 1 file changed, 3 insertions(+)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]