emacs,objective-c mode 代码补全!

先安装auto-complete.

地址:https://github.com/m2ym/auto-complete 

 

安装方法:进入emacs,

m-x:eshell

在eshell中,再

 

m-x:load-file /yourdownloadpath/auto-compelte_{ver}/etc/install.el

就可以看到提示

success

 

copy this code into your .emacs file:

 

(add-to-list 'load-path "~/.emacs.d/")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")
(ac-config-default)
(add-to-list 'ac-modes 'objc-mode) ;;here load the objc-mode

(define-key ac-mode-map (kbd "M-TAB") 'auto-complete) 

 

video install demo :http://www.youtube.com/watch?v=rGVVnDxwJYE 

 

====setp 2 ======

安装好之后就可以有相应的language-mode来支持autocomplete.

然后我们要objc-mode来支持objective-c开发的autocomplete来支持。

 

文章:

http://d.hatena.ne.jp/Watson/20100315/1268632079 

 http://hippos-lab.com/blog/node/253

 

 代码:

cd ~/.emacs.d/ac-dict
curl -O http://hippos-lab.com/blog/system/files/objc_keyword

mv objc-keyword objc-mode 


 

 


posted @ 2012-06-12 14:13  snowlueng  阅读(606)  评论(0编辑  收藏  举报