virtualenv env
pip install -e git+https://github.com/pinard/Pymacs.git@v0.24-beta2#egg=Pymacs-dev
pip install -e hg+https://bitbucket.org/agr/rope#egg=rope-dev
pip install -e hg+https://bitbucket.org/agr/ropemacs#egg=ropemacs-trunk
pip install -e hg+https://bitbucket.org/agr/ropemode#egg=ropemode-trunk
cd env/src/pymacs
make install将以下内容添加到.emacs (setq虚拟-env (getenv "VIRTUAL_ENV")) (setq path(追加(列表)虚拟-env "/src/pymacs“)加载路径)
(if (not (equal virtual-env 'nil))
(let ((foo 'bar))
(require 'pymacs)
(pymacs-load "ropemacs" "rope-")
(setq ropemacs-enable-autoimport 't)
(setq ropemacs-autoimport-modules '("os" "shutil"))
))在那之后,我可以完成代码,文档,定义。
然而,,在输入rmtree之后,执行了rope,"from shutil import rmtree“就没有出现了。
相反,我收到了一条消息“全局名称rmtree未找到!”
帮帮我!
我尝试过config.py,并添加了extension_modules和python_path。
发布于 2012-11-29 11:49:32
M-x rope-generate-autoimport-cachehttps://stackoverflow.com/questions/13622687
复制相似问题