File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1491,6 +1491,11 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
1491
1491
(interactive )
1492
1492
(setq-local rust-format-on-save nil ))
1493
1493
1494
+ (defun rust-compile ()
1495
+ " Compile using `cargo build`"
1496
+ (interactive )
1497
+ (compile " cargo build" ))
1498
+
1494
1499
(defvar rust-mode-map
1495
1500
(let ((map (make-sparse-keymap )))
1496
1501
(define-key map (kbd " C-c C-f" ) 'rust-format-buffer )
@@ -1547,8 +1552,6 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
1547
1552
(setq-local parse-sexp-lookup-properties t )
1548
1553
(setq-local electric-pair-inhibit-predicate 'rust-electric-pair-inhibit-predicate-wrap )
1549
1554
1550
- (setq-local compile-command " cargo build" )
1551
-
1552
1555
(add-hook 'before-save-hook 'rust--before-save-hook nil t )
1553
1556
1554
1557
(setq-local rust-buffer-project nil )
You can’t perform that action at this time.
0 commit comments