用emacs 建立開發環境,安裝ecb和cedet的全過程

來源:互聯網
上載者:User

原文地址:http://blog.csdn.net/hide1713/article/details/1647209

更多圖片請看http://ecb.sourceforge.net/

先下載這兩個軟體的安裝包
ecb      http://ecb.sourceforge.net/
cedet   http://cedet.sourceforge.net/

然後
tar zxvf ecb-2.32.tar.gz
cd cedet-1.0pre4
make    (ecb需要設定Makefile  中的 CEDET=~/.emacs.d/cedet-1.0pre7)

等cedet產生完畢
在你的使用者目錄下面應該有一個.emacs檔案(前面有個點).這個檔案是emacs的設定檔.現在我們要改這個檔案(如果沒有就自己建立一個).添加下面一段.注意,load-file那一行的目錄要自己改一下

;;;;cedet
(load-file "/home/m/cedet-1.0pre7/common/cedet.el") ;你的安裝目錄
(global-ede-mode 1)
(semantic-load-enable-gaudy-code-helpers)
(global-srecode-minor-mode 1)

  

接下來安裝ecb

tar zxvf cedet-1.0pre4.tar.gz
在.emacs裡面加入

;;;;ecb
(add-to-list 'load-path
"/home/m/ecb-2.40") ;你的ecb解壓目錄
(require 'ecb)
(require 'ecb-autoloads)

  

建議設定如下快速鍵

(global-set-key (kbd "<f7>") 'ecb-minor-mode)   ; 開啟ejb
;;;;ejb 快速鍵
(global-set-key (kbd "C-<left>") 'windmove-left) ;左邊視窗
(global-set-key (kbd "C-<right>") 'windmove-right) ;右邊視窗
(global-set-key (kbd "C-<up>") 'windmove-up) ; 上邊視窗
(global-set-key (kbd "C-<down>") 'windmove-down) ; 下邊視窗

  

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.