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>
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 && Make && 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