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
@@ -74,6 +76,18 @@ The file `rust-mode-tests.el` contains tests that can be run via
74
76
You can use ` run_rust_emacs_tests.sh ` to run them in batch mode, if
75
77
you set the environment variable EMACS to a program that runs emacs.
76
78
79
+ ## Features
80
+
81
+ ### Formatting with [ rustfmt] [ rfmt ]
82
+
83
+ The ` rust-format-buffer ` function will format your code with
84
+ [ rustfmt] [ rfmt ] if installed. By default, this is bound to ` C-c C-f ` .
85
+
86
+ Placing ` (setq rust-format-on-save t) ` in your ` ~/.emacs ` will enable automatic
87
+ running of ` rust-format-buffer ` when you save a buffer.
88
+
89
+ [ rfmt ] : https://crates.io/crates/rustfmt/
90
+
77
91
## License
78
92
79
93
` 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