Do the following:
M-x package-install RET jedi
M-x jedi:install-server
and then add the following lines to ~/.emacs
:
(add-hook 'python-mode-hook 'jedi:setup)
Do the following:
M-x package-install RET jedi-direx
and then add the following lines to ~/.emacs
:
(eval-after-load "python"
'(define-key python-mode-map "\C-cx" 'jedi-direx:pop-to-buffer))
(eval-after-load "python"
'(define-key python-mode-map "\C-c\C-x" 'jedi-direx:switch-to-buffer))
(add-hook 'jedi-mode-hook 'jedi-direx:setup)
Now, C-c x
will open a new buffer to browse, and C-c C-x
will change current buffer