码迷,mamicode.com
首页 > 系统相关 > 详细

在mac os x 下升级emacs

时间:2015-11-21 21:05:24      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:

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

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

后来我在12年的时候开始尝试着用emacs。 刚开始确实很不好用,但是后来越来越喜欢emacs.

当然vim我还是在用。现在重新拾起他们两个。我的最爱。哈哈哈哈。

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

GNU Emacs 22.1.1

Copyright (C) 2007 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.</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>

在mac os x 下升级emacs

标签:

原文地址:http://www.cnblogs.com/liweilijie/p/4984600.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!