大概是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>
這可根本不行啊。因而我決定升級他,後來我在網上找了許多方法也不行,仍是本身編譯安裝吧。
在網上下載原碼進行三步驟安裝好了
<blockquote>./configure && make && 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>