我遵循了本教程来设置pythonemacs环境。在
http://www.saltycrane.com/blog/2010/05/my-emacs-python-environment/
我可以为emacs和语法高亮显示获取python模式,但是当我尝试使用 rope和ropemacs例如,对于文档的命令C-C d,我得到命令没有被定义
使用easy install和my.emacs文件安装的rope和ropemacs如下所示 我是不是错过了什么??在
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-enabled-themes (quote (tango-dark))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(add-hook 'find-file-hook 'flymake-find-file-hook)
(provide 'init_python)
(autoload 'pymacs-apply "pymacs")
(autoload 'pymacs-call "pymacs")
(autoload 'pymacs-eval "pymacs" nil t)
(autoload 'pymacs-exec "pymacs" nil t)
(autoload 'pymacs-load "pymacs" nil t)
(eval-after-load "pymacs"
'(add-to-list 'pymacs-load-path ~/.emacs.d/vendor/pymacs-0.24-beta2"))
(pymacs-load "ropemacs" "rope-")
(setq ropemacs-enable-autoimport t)
(add-to-list 'load-path "~/.emacs.d/vendor/auto-complete-1.2")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/vendor/auto-complete-1.2/dict")
(ac-config-default)
您需要将ropemacs dir添加到加载路径中,以便EMACS可以找到包并为您加载这些命令
老实说,我不认为rope emacs对我有那么大的用处,它大大减慢了emacs的启动速度,但好处并不是那么明显。当我想查找问题时,我就这么做。在
相关问题 更多 >
编程相关推荐