diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-21 09:13:36 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-21 09:13:36 -0800 |
| commit | 4659aeedcb009016c8fac135878b7d624446f257 (patch) | |
| tree | d1c5c2e98b1ad98d18f5a4f7b21efe754b5e275f /rust-mode-tests.el | |
| parent | 186583df52a4c9cece95ba6bb6afc73ed958323e (diff) | |
| parent | f292554261eeb6cd6134864c5f36e70a2b272f12 (diff) | |
| download | rust-mode-4659aeedcb009016c8fac135878b7d624446f257.tar.gz | |
rollup merge of #19913: KOMON/rust-mode-emacs-indentation
I added an option to auto-indent method chains to line up along their '.' operators. Like so:
```
let input = io::stdin().readline()
.ok()
.expect("Failed to read line");
```
The old default would indent like so:
```
let input = io::stdin().readme()
.ok()
.expect("Failed to read line");
```
The Rust guide explicitly condones the former, so I thought it would be nice for the emacs mode to support it. It's off by default, you have to set ```rust-indent-method-chain``` to ```t``` via your .emacs or the customize menu
Diffstat (limited to 'rust-mode-tests.el')
0 files changed, 0 insertions, 0 deletions
