Merge pull request #591 from rust-lang-nursery/atom

Instructions for using Rustfmt from Atom.
This commit is contained in:
Nick Cameron 2015-11-17 16:14:06 +13:00
commit c9120e9645
2 changed files with 17 additions and 0 deletions

View File

@ -26,6 +26,7 @@ multirust run nightly cargo install --git https://github.com/rust-lang-nursery/r
* [Vim](http://johannh.me/blog/rustfmt-vim.html)
* [Emacs](https://github.com/fbergroth/emacs-rustfmt)
* [Atom](atom.md).
## How to build and test

16
atom.md Normal file
View File

@ -0,0 +1,16 @@
# Running Rustfmt from Atom
You'll need to install [Beautify](https://atom.io/packages/atom-beautify), you
can do this by running `apm install atom-beautify`.
There are 2 setting that need to be configured in the atom beautifier config.
Install rustfmt as per the [readme](README.md). In atom beautifier, make sure
rustfmt is the formatter:
![image](https://cloud.githubusercontent.com/assets/6623285/11109392/e4bd9542-8915-11e5-805b-a02664b1f502.png)
Also set the path to your rustfmt location in atom beautifier as shown below.
(This setting is towards the bottom of the screen. Need to scroll):
![image](https://cloud.githubusercontent.com/assets/6623285/11109320/54a0117e-8915-11e5-94be-80b5e91072eb.png)