Add pyimport
This commit is contained in:
parent
6a336c2232
commit
270cc34454
@ -2108,12 +2108,20 @@ I use helm for almost all emacs completion
|
|||||||
(subword-mode t)
|
(subword-mode t)
|
||||||
(imalison:make-imenu-index-flat)
|
(imalison:make-imenu-index-flat)
|
||||||
(jedi:setup)
|
(jedi:setup)
|
||||||
|
(add-hook 'before-save-hook 'pyimport-remove-unused t t)
|
||||||
(add-virtual-envs-to-jedi-server)
|
(add-virtual-envs-to-jedi-server)
|
||||||
(remove-hook 'completion-at-point-functions
|
(remove-hook 'completion-at-point-functions
|
||||||
'python-completion-complete-at-point 'local)
|
'python-completion-complete-at-point 'local)
|
||||||
(set (make-local-variable 'company-backends) '(company-jedi)))
|
(set (make-local-variable 'company-backends) '(company-jedi)))
|
||||||
(add-hook 'python-mode-hook #'imalison:python-mode))))
|
(add-hook 'python-mode-hook #'imalison:python-mode))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package pyimport
|
||||||
|
:bind (:map python-mode-map
|
||||||
|
("C-c C-i" . pyimport-insert-missing))
|
||||||
|
:commands pyimport-remove-unused)
|
||||||
|
#+END_SRC
|
||||||
**** go
|
**** go
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package go-mode
|
(use-package go-mode
|
||||||
|
Loading…
Reference in New Issue
Block a user