From 592af2be1c7d21e490086fc414ac02c224a45704 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sun, 24 Feb 2019 18:26:56 -0500 Subject: Run rustfmt automatically when saving .rs files --- jakob.org | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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. -- cgit v1.3