File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 4
4
` rust-mode ` makes editing [ Rust] ( http://rust-lang.org ) code with Emacs
5
5
enjoyable. ` rust-mode ` requires Emacs 24 or later.
6
6
7
+ ## Installation
8
+
7
9
### Manual Installation
8
10
9
11
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
64
66
You can use ` run_rust_emacs_tests.sh ` to run them in batch mode, if
65
67
you set the environment variable EMACS to a program that runs emacs.
66
68
69
+ ## Features
70
+
71
+ ### Formatting with [ rustfmt] [ rfmt ]
72
+
73
+ The ` rust-format-buffer ` function will format your code with
74
+ [ rustfmt] [ rfmt ] if installed.
75
+
76
+ Placing ` (setq rust-format-on-save t) ` in your ` ~/.emacs ` will enable automatic
77
+ running of ` rust-format-buffer ` when you save a buffer.
78
+
79
+ [ rfmt ] : https://crates.io/crates/rustfmt/
80
+
67
81
## License
68
82
69
83
` rust-mode ` is distributed under the terms of both the MIT license and the
You can’t perform that action at this time.
0 commit comments