How do I set up auto-complete to use ropemacs with python.el
in Emacs 24?
I have the following in my .emacs
file
; Auto-complete:
; --------------------------
(add-to-list 'load-path "~/.emacs.d/auto-complete/auto-complete-1.3.1")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/auto-complete/auto-complete-1.3.1/dict")
(ac-config-default)
; Auto-complete rope integration:
; --------------------------
(ac-ropemacs-initialize)
(add-hook 'python-mode-hook
(lambda ()
(add-to-list 'ac-sources 'ac-source-ropemacs)))
but this does not seem to be enough to get autocompletions of Python methods, class members, etc. (on the auto-complete tooltip).
e.g.
my_text = "hello world"
my_text.
does not show any possible autocompletions for the String class.
With the above config, auto-complete itself works well for generic auto-completions (and for directories).