]> git.lizzy.rs Git - rust.git/commitdiff
Merge pull request #620 from sidred10/atom-instructions
authorNick Cameron <nrc@ncameron.org>
Tue, 17 Nov 2015 05:28:57 +0000 (18:28 +1300)
committerNick Cameron <nrc@ncameron.org>
Tue, 17 Nov 2015 05:28:57 +0000 (18:28 +1300)
Atom instructions

README.md
atom.md

index b1a8217a9837f0da793eaa6930d24030ec41a6e0..597f3b3a3ab5130cc3a1a0c0b9e0ccd6d8495a81 100644 (file)
--- a/README.md
+++ b/README.md
@@ -26,7 +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).
+* [Atom](atom.md)
 
 
 ## How to build and test
diff --git a/atom.md b/atom.md
index a74a53233011c7ea943268b616d04712d7909a8c..d267a9b4ef83a1ba6894077c9f13e5abdbd0baac 100644 (file)
--- a/atom.md
+++ b/atom.md
@@ -3,14 +3,19 @@
 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
+There are 2 setting that need to be configured in the atom beautifier configuration.
 
-Install rustfmt as per the [readme](README.md). In atom beautifier, make sure
-rustfmt is the formatter:
+-  Install rustfmt as per the [readme](README.md).
+-  Open the atom beautifier settings
 
-![image](https://cloud.githubusercontent.com/assets/6623285/11109392/e4bd9542-8915-11e5-805b-a02664b1f502.png)
+   Go to Edit->Preferences. Click the packages on the left side and click on setting for atom-beautifier
 
-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):
+-  Set rustfmt as the beautifier
 
-![image](https://cloud.githubusercontent.com/assets/6623285/11109320/54a0117e-8915-11e5-94be-80b5e91072eb.png)
+   Find the setting labeled *Language Config - Rust - Default Beautifier* and make sure it is set to rustfmt as shown below. You can also set the beautifier to auto format on save here.
+![image](https://cloud.githubusercontent.com/assets/6623285/11147685/c8ade16c-8a3d-11e5-9da5-bd3d998d97f9.png)
+
+-  Set the path to your rustfmt location
+
+   Find the setting labeled *Rust - Rustfmt Path*. This setting is towards the bottom and you will need to scroll a bit. Set it to the path for your rustfmt executable.
+![image](https://cloud.githubusercontent.com/assets/6623285/11147718/f4d10224-8a3d-11e5-9f69-9e900cbe0278.png)