From 65b617a4fa3fb5b8e35bc6cf5248d9b548d45ab8 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Fri, 17 Jul 2015 14:51:37 -0400 Subject: [PATCH] [emacs] Add jedi and company-jedi for python --- .emacs.d/emacs.org | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.emacs.d/emacs.org b/.emacs.d/emacs.org index 1b05311..91a7c3e 100644 --- a/.emacs.d/emacs.org +++ b/.emacs.d/emacs.org @@ -260,6 +260,30 @@ A strongly typed, pure functional language. :ensure t :mode "\.pyx$") #+END_SRC +**** Company-Jedi +Configure jedi and company-mode to provide auto-completion for python. +#+name: programming +#+begin_src emacs-lisp + (use-package jedi + :ensure t + :commands jedi:setup + :config (progn + (setq jedi:use-shortcuts t) + (jedi:install-server))) + + (use-package pungi + :ensure t + :commands pungi:setup-jedi + :init (add-hook #'python-mode-hook #'pungi:setup-jedi)) + + (use-package company-jedi + :ensure t + :config (progn + (defun my/enable-company-jedi () + (add-to-list 'company-backends 'company-jedi)) + (add-hook #'python-mode-hook #'my/enable-company-jedi))) +#+end_src + *** Ruby #+name: programming #+BEGIN_SRC emacs-lisp