Making Emacs work for Me

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.