A Brief First Taste of Atom

Configure Proxy

My requirement was to insert LaTeX formulas into Markdown documents. Atom’s default markdown-preview package could not satisfy this requirement. After searching, I found that the community package markdown-preview-plus could satisfy it.

Atom Package Management

Following the official tutorial, the installation failed:

Installing “markdown-preview-plus@2.4.9” failed.

In the log, I found this request:

GET https://atom.io/download/electron/v1.3.13/iojs-v1.3.13.tar.gz

I then tested this URL in the browser. It did not respond, so I guessed it was blocked. Fortunately, the Atom documentation considered the need to use a proxy and provided a guide.

Configure a proxy for apm

Finally, basic proxy setup skills. No explanation needed.

Concrete Commands

1
2
3
4
5
sean@sean-OptiPlex-790:~$ apm config set https-proxy http://localhost:8123
sean@sean-OptiPlex-790:~$ apm config get https-proxy
http://localhost:8123/
sean@sean-OptiPlex-790:~$ apm install markdown-preview-plus
Installing markdown-preview-plus to /home/sean/.atom/packages ✓