rope

How can I use meta-dot (M-.) in python with emacs?

做~自己de王妃 提交于 2019-12-04 16:35:55
问题 Is there an equivalent of slime for python? For example, if I position the cursor on foo() and do M-. (jump to definition) I would like to see the source definition of the function foo This should work regardless of whether foo is in 1) the local project directory 2) in some ~/.virtualenvs/bar/lib/site-packages 3) in some other python-path 4) virtual env is in use (ie, it should look in my current virtualenv) Does the pymacs/ropemacs combination do any of this? 回答1: To avoid the -e you can

How can I use meta-dot (M-.) in python with emacs?

落爺英雄遲暮 提交于 2019-12-03 09:45:39
Is there an equivalent of slime for python? For example, if I position the cursor on foo() and do M-. (jump to definition) I would like to see the source definition of the function foo This should work regardless of whether foo is in 1) the local project directory 2) in some ~/.virtualenvs/bar/lib/site-packages 3) in some other python-path 4) virtual env is in use (ie, it should look in my current virtualenv) Does the pymacs/ropemacs combination do any of this? To avoid the -e you can use etags and with a find you recursively add the py file: find . -type f -name '*.py' | xargs etags Most of

Clear steps to install pymacs with emacs 24?

ぐ巨炮叔叔 提交于 2019-11-27 21:42:00
I want autocompletion and refactoring in emacs with python. I gather that I need rope to do this. To do this with emacs, I need ropemacs. Ropmacs depends on pymacs. Pymacs is hard to install...or at least the instructions are not clear to me. Do I need to do two things? Install pymacs and then install a file that tells emacs to talk to pymacs? I've already installed rope and ropemacs super easily, with pip install rope ropemacs Here's what I did: pip install -e "git+https://github.com/pinard/Pymacs.git#egg=Pymacs" This installs ok on mac os x mountain lion according to PIP. But I have a

Clear steps to install pymacs with emacs 24?

白昼怎懂夜的黑 提交于 2019-11-26 20:46:49
问题 I want autocompletion and refactoring in emacs with python. I gather that I need rope to do this. To do this with emacs, I need ropemacs. Ropmacs depends on pymacs. Pymacs is hard to install...or at least the instructions are not clear to me. Do I need to do two things? Install pymacs and then install a file that tells emacs to talk to pymacs? I've already installed rope and ropemacs super easily, with pip install rope ropemacs Here's what I did: pip install -e "git+https://github.com/pinard