mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-16 11:09:29 +00:00
[emacs] Add jedi and company-jedi for python
This commit is contained in:
parent
a75017501b
commit
65b617a4fa
1 changed files with 24 additions and 0 deletions
|
@ -260,6 +260,30 @@ A strongly typed, pure functional language.
|
||||||
:ensure t
|
:ensure t
|
||||||
:mode "\.pyx$")
|
:mode "\.pyx$")
|
||||||
#+END_SRC
|
#+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
|
*** Ruby
|
||||||
#+name: programming
|
#+name: programming
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
Loading…
Reference in a new issue