查询帮助文档
重命名变量函数等东西
$ curl -L https://github.com/pinard/Pymacs/tarball/v0.24-beta2 | tar zx $mkdir -p ~/.emacs.d/vendor $ mv pinard-Pymacs-016b0bc ~/.emacs.d/vendor $ cd ~/.emacs.d/vendor $ cd pinard-Pymacs-016b0bc $ make $ sudo easy_install .
$ sudo apt-get install mercurial $ mkdir /tmp/rope && cd /tmp/rope $ hg clone http://bitbucket.org/agr/rope $ hg clone http://bitbucket.org/agr/ropemacs $ hg clone http://bitbucket.org/agr/ropemode $ sudo easy_install rope $ ln -s ../ropemode/ropemode ropemacs/ $ sudo easy_install ropemacs
(add-to-list 'load-path "~/.emacs.d/vendor/pinard-Pymacs-e3f67f9") (require 'pymacs) (pymacs-load "ropemacs" "rope-") (setq ropemacs-enable-autoimport t)
$ cd ~/.emacs.d/vendor $ curl http://cx4a.org/pub/auto-complete/auto-complete-1.3.1.tar.bz2 | tar jx $ cd auto-complete-1.3.1 $ make byte-compile
(add-to-list 'load-path "~/.emacs.d/vendor/auto-complete-1.3.1/") (require 'auto-complete-config) (add-to-list 'ac-dictionary-directories "~/.emacs.d/vendor/auto-complete-1.3.1//ac-dict") (ac-config-default)
(add-to-list 'load-path "~/.emacs.d/vendor/yasnippet-0.6.1c/") ;; Load the library (require 'yasnippet) (yas/initialize) ;; Load the snippet files themselves (yas/load-directory "~/.emacs.d/vendor/yasnippet-0.6.1c/snippets/text-mode") ;; Let's have snippets in the auto-complete dropdown (add-to-list 'ac-sources 'ac-source-yasnippet)
本文章的来源:
http://www.enigmacurry.com/2009/01/21/autocompleteel-python-code-completion-in-emacs/
http://www.saltycrane.com/blog/2010/05/my-emacs-python-environment/
http://blog.deadpansincerity.com/2011/05/setting-up-emacs-as-a-javascript-editing-environment-for-fun-and-profit/
ps:一开是安装的时候,因为下错了,安装的Pymacs-0.23版本,然后重新安装的Pymacs-0.24-beta,结果出现了问题,错误提示是Pymacs helper did not start in 30 seconds.后面弄了半天都木有弄好,最后是按照本文的安装方法安装Pymacs-0.24-beta,安装成功的