I use Pymacs to load ropemacs and rope with the following lines in the .emacs file , as described here .
(autoload 'pymacs-load "pymacs" nil t)
(pymacs-load "ropemacs" "rope-")
However, it significantly slows down Emacs startup because it takes some time to load Ropemacs .
I tried the following line, but loaded Ropemacs every time I opened a Python file:
(add-hook 'python-mode-hook (lambda () (pymacs-load "ropemacs" "rope-")))
Is there a way to perform the operation pymacs-loadwhen opening a Python file, but only if ropemacs and rope are not already loaded?
source
share