Skip to content
eflanigan00 edited this page Nov 22, 2016 · 7 revisions

Welcome to the emacs-company-jedi wiki!

Python requirements

I started with Anaconda3-4.2.0 and had to install the following:

pip install sexpdata-0.0.3.tar.gz
pip install epc-0.0.5.tar.gz
pip install virtualenv-15.1.0.tar.gz

Starting

Run jedi:start-server then add this to your Emacs configuration file and restart emacs:

(setq jedi:environment-virtualenv (list (expand-file-name "~/.emacs.d/.python-environments/")))

jedi:show-setup provides jedi setup information

use-package

(use-package company-jedi             ;;; company-mode completion back-end for Python JEDI
  :config
  (setq jedi:environment-virtualenv (list (expand-file-name "~/.emacs.d/.python-environments/")))
  (add-hook 'python-mode-hook 'jedi:setup)
  (setq jedi:complete-on-dot t)
  (setq jedi:use-shortcuts t)
  (defun config/enable-company-jedi ()
    (add-to-list 'company-backends 'company-jedi))
  (add-hook 'python-mode-hook 'config/enable-company-jedi))
Clone this wiki locally