Upgrade Emacs under Mac OS X

Source: Internet
Author: User

It was probably 09 when I contacted Emacs, the editor of our C language teacher, and he was full of confidence, and then I was a vimer, so every time I saw him press so many combination keys I felt the finger tired for him.

Then I used a few years of vim to write code, and then later with a lot of scripting language, there are some problems vim can not solve.

Then I started experimenting with Emacs in 12. It was really bad at first, but then more and more like Emacs.

Of course, Vim is still in use. Now re-pick them both. My favorite. haha haha.

Back to the point, Emacs is too low for Mac OS X.
<blockquote>liweilijiedemacbook-pro:~ liweilijie$ Emacs--version

GNU Emacs 22.1.1

Copyright (C) Free Software Foundation, Inc.

GNU Emacs comes with absolutely NO WARRANTY.

Redistribute copies of Emacs

Under the terms of the GNU general public License.

For more information about these matters, see the file named Copying.</blockquote>
&nbsp;

That's not going to work at all. So I decided to upgrade him, and then I found a lot of methods on the Internet is not good, or compile and install it myself.

Download the original code on the web for a three-step installation.
<blockquote>./configure &amp;&amp; Make &amp;&amp; Make install</blockquote>
But the problem comes, I compiled the root of the system is not in the/usr/bin/directory. So I manually replaced the system, do not know if there will be any problem, if there is any problem follow-up I will update the blog to tell you.
<blockquote>liweilijiedemacbook-pro:~ liweilijie$ cd/usr/bin/

Liweilijiedemacbook-pro:bin liweilijie$ sudo mv Emacs Original_emacs

Liweilijiedemacbook-pro:bin liweilijie$ sudo ln-s/usr/local/cellar/emacs/24.5/bin/emacs/usr/bin/emacs

Liweilijiedemacbook-pro:bin liweilijie$ which Emacs

/usr/bin/emacs

Liweilijiedemacbook-pro:bin liweilijie$ Emacs--version

GNU Emacs 24.5.1

Copyright (C) Free Software Foundation, Inc.

GNU Emacs comes with absolutely NO WARRANTY.

Redistribute copies of Emacs

Under the terms of the GNU general public License.

For more information on these matters, see the file named COPYING.

Liweilijiedemacbook-pro:bin liweilijie$</blockquote>

Upgrade Emacs under Mac OS X

Related Article

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.