These are my set of configurations for the Atom text editor. It is geared for working in JavaScript, Golang, Rust, Markdown, HTML and CSS.
- Atom version
Needs atom v1.6+
.
-
Clone the repository
$ git clone [email protected]:kaustavdm/dotatom --recursive
-
Set-up symlink
$ ln -s <path-to>/dotatom ~/.atom
-
Copy config.cson.sample to config.cson and edit values
$ cp <path-to>/dotatom/config.cson.sample <path-to>/dotatom/config.cson
-
Set-up dependencies available on npm
$ sudo npm install -g aspell jslint tern
-
Set-up Go dependencies
- Install Golang
- Set
GOPATH
environment variable - Install Gocode:
$ go get -u github.com/nsf/gocode
. - Install Golint:
$ go get -u github.com/golang/lint
. - Install Gorename:
$ go get golang.org/x/tools/cmd/gorename
. - Make sure
gocode
,godef
,golint
andgorename
executibles are onPATH
.
-
Set-up Rust dependencies
- Install Rust
- Download Rust sources and set
RUST_SRC_PATH
environment variable to the./src
directory in the Rust source. - Install Racer:
$ cargo install racer
- Install Rustfmt:
$ cargo install rustfmt
- Make sure the
racer
andrustfmt
executibles are onPATH
.
-
Install Adobe Source Code Pro font
- Download and install the font from Source Code Pro releases.
-
Install atom package dependencies:
For Linux/OSX:
$ cd <path-to>/dotatom $ sh ./install.sh
For Windows:
$ cd <path-to>/dotatom $ install.bat
If you encounter an error, go through the error log and install necessary dependencies.
-
Run
atom
. In the directory that you want atom to begin, run$ atom .
.