Reference:
Http://zeekat.nl/articles/making-emacs-work-for-me.html#sec-1
First step: Install the GNU Emacs or higher
Step two: Install Cask from Https://github.com/cask/cask
1) Execute the following command
$ curl-fsskl https:///raw.github.com/cask/cask/master/go | python
The following tips are available after compilation is complete
Successfully installed Cask! now, add the cask binary to your $PATH:
export PATH="/home/xxx/.cask/bin: $PATH"
2) Execute according to its requirements (please replace the user name with your own system configuration XXX)
$ export path="/home/xxx/.cask/bin: $PATH"
Step three: Clone the repository $HOME/.emacs.d
as
If a ~/.EMACS.D directory exists, delete it first
$ git clone https://github.com/joodie/emacs-literal-config.gitmv emacs-literal-config. Emacs.d
Fourth step: Run in cask install
$HOME/.emacs.d
$ cd ~/Install
遇到的问题1:
$ cask install
Traceback (most recent call last):
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
raise child_exception
UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0xe2 in position 0: ordinal not in range(128)
解决方法:
修改 .cask/bin/cask,在其中加入编码设定
default_encoding = ' Utf-8' if sys.getdefaultencoding ()! = default_encoding: reload (SYS) sys.setdefaultencoding (default_encoding)
详细如:
第五步:运行emacs
Making Emacs work for Me