我已经按照本教程设置了一个python emacs环境。
http://www.saltycrane.com/blog/2010/05/my-emacs-python-environment/
我能够获得emacs和语法高亮的python模式,但是当我尝试使用时 rope和ropemacs例如命令C-c d用于文档化我得到命令未定义
使用简易安装和我的.emacs文件安装的绳索和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)
答案 0 :(得分:0)
您需要将您的ropeemacs目录添加到加载路径中,以便EMACS可以找到该包并为您加载这些命令
(setq load-path (cons "/PATH-OF-ROPEEMACS" load-path))
老实说,我不认为有关电子邮件对我有用,它会大大减慢emacs的启动速度,但好处并不那么明显。当我想查找问题时,我只是去了。