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

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

[nongnu] elpa/rust-mode c2a0c13 269/486: Add info to enable rustfmt


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode c2a0c13 269/486: Add info to enable rustfmt
Date: Sat, 7 Aug 2021 09:25:33 -0400 (EDT)

branch: elpa/rust-mode
commit c2a0c1327758ed00d87f2536e4c6bbbeab7b395f
Author: nokaa <nokaa@cock.li>
Commit: nokaa <nokaa@cock.li>

    Add info to enable rustfmt
---
 README.md | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/README.md b/README.md
index 57635d3..6067dfd 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,8 @@
 `rust-mode` makes editing [Rust](http://rust-lang.org) code with Emacs
 enjoyable.  `rust-mode` requires Emacs 24 or later.
 
+## Installation
+
 ### Manual Installation
 
 To install manually, check out this repository and add this to your
@@ -64,6 +66,18 @@ The file `rust-mode-tests.el` contains tests that can be run 
via
 You can use `run_rust_emacs_tests.sh` to run them in batch mode, if
 you set the environment variable EMACS to a program that runs emacs.
 
+## Features
+
+### Formatting with [rustfmt][rfmt]
+
+The `rust-format-buffer` function will format your code with
+[rustfmt][rfmt] if installed.
+
+Placing `(setq rust-format-on-save t)` in your `~/.emacs` will enable automatic
+running of `rust-format-buffer` when you save a buffer.
+
+[rfmt]: https://crates.io/crates/rustfmt/
+
 ## License
 
 `rust-mode` is distributed under the terms of both the MIT license and the



reply via email to

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