在mac os x 下升级emacs

大概是09年的时候接触到emacs这个编辑器,当时咱们c语言老师用的,他自信满满,而那时我是个vimer,因此每次看他按那么多组合键我就替他感受手指头累啊。redis

再后来我用了几年vim写代码,再后来用了许多脚本语言,还有遇到一些问题vim没法解决的。vim

后来我在12年的时候开始尝试着用emacs。 刚开始确实很很差用,可是后来愈来愈喜欢emacs.编辑器

固然vim我仍是在用。如今从新拾起他们两个。个人最爱。哈哈哈哈。orm

回到正题,emacs在mac os x 下版本过低了。
<blockquote>liweilijiedeMacBook-Pro:~ liweilijie$ emacs --version博客

GNU Emacs 22.1.1emacs

Copyright (C) 2007 Free Software Foundation, Inc.it

GNU Emacs comes with ABSOLUTELY NO WARRANTY.io

You may redistribute copies of Emacs编译

under the terms of the GNU General Public License.form

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

这可根本不行啊。因而我决定升级他,后来我在网上找了许多方法也不行,仍是本身编译安装吧。

在网上下载原码进行三步骤安装好了
<blockquote>./configure &amp;&amp; make &amp;&amp; make install</blockquote>
可是问题来了,我编译的根本没有在系统的/usr/bin/目录下面。因而本身手动替换了系统的,不知道会不会出什么问题,若是有什么问题后续我会更新博客告诉你们的。
<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) 2015 Free Software Foundation, Inc.

GNU Emacs comes with ABSOLUTELY NO WARRANTY.

You may redistribute copies of Emacs

under the terms of the GNU General Public License.

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

liweilijiedeMacBook-Pro:bin liweilijie$</blockquote>

相关文章
相关标签/搜索