When I open a python file I have to manually start ropemacs-mode to get the key bindings each time. I 开发者_如何学Pythontried adding something like this to automatically start ropemacs:
(add-hook 'python-mode-hook (lambda ()
(ropemacs-mode)
))
But it seems to break flymake. What am I doing wrong here?
Dont use ropemacs but the readme says like this
After installing pymacs, add these lines to your ~/.emacs
file::
(require 'pymacs)
(pymacs-load "ropemacs" "rope-")
My problem was with some code for using autocomplete.el along with ropemacs and yas which I found here:
http://hide1713.wordpress.com/2009/01/30/setup-perfect-python-environment-in-emacs/
Once I commented out the block relating to autocomplete everything else started working as expected.
精彩评论