summaryrefslogtreecommitdiff
path: root/jakob.org
diff options
context:
space:
mode:
authorJakob L. Kreuze2019-02-24 18:26:56 -0500
committerJakob L. Kreuze2019-02-24 18:26:56 -0500
commit592af2be1c7d21e490086fc414ac02c224a45704 (patch)
tree685dbbfe6df7663d7cd47e558fb0e274b8752470 /jakob.org
parentd974bc42efd2dabd131910b3e829b4dc46c9b249 (diff)
Run rustfmt automatically when saving .rs files
Diffstat (limited to 'jakob.org')
-rw-r--r--jakob.org9
1 files changed, 8 insertions, 1 deletions
diff --git a/jakob.org b/jakob.org
index 71f5890..3179eee 100644
--- a/jakob.org
+++ b/jakob.org
@@ -1749,7 +1749,14 @@ Enable [[company]], ElDoc, and racer.
(use-package rust-mode
:hook
- (rust-mode . racer-mode))
+ (rust-mode . racer-mode)
+#+END_SRC
+
+Run =rustfmt= automatically.
+
+#+BEGIN_SRC elisp
+ :init
+ (setq rust-format-on-save t))
#+END_SRC
Enable flycheck.

© 2015 - 2026 Jakob L. Kreuze