emacs使用http代理打开

环境:ubuntu 15.10 64bit,emacs 24 ,git 

http代理搭建方法:http://www.cnblogs.com/liuxuzzz/p/5324749.html

原因:

因为要使用Steve Purcell(https://github.com/purcell/emacs.d)的emacs配置,但是他的配置在下载时会发现网络连不通的情况,所以需要用代理打开emacs。

1.删除自己的配置。

$ rm ~/.emacs
$ rm -rf ~/.emacs.d/
$ mkdir ~/.eamcs.d

2.克隆Steve Purcell的配置。

$ git clone https://github.com/purcell/emacs.d.git ~/.emacs.d

3.使用http代理打开emacs自动下载其余配置文件。

http_proxy=http://127.0.0.1:8118/ emacs -nw

现在emacs就可以网络通畅的自动下载配置文件了。

原文地址:https://www.cnblogs.com/liuxuzzz/p/5324751.html