[Python] Adding some completion

Not clear whether I will really like this, but it's always easier to turn it off
than finding out how to configure it in the first place :)
This commit is contained in:
Daniel - 2019-11-11 19:14:57 +01:00
parent 3de4a086c1
commit d98cd21c0f
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 7 additions and 0 deletions

View File

@ -2533,6 +2533,10 @@ With given ARG, display files in `db/important-document-path."
;; These are packages that are not essential, but still nice to have. They
;; provide optional functionality and may redefine builtin commands.
(use-package company-jedi
:ensure t
:defer t)
(use-package cperl-mode
:ensure t
:commands (cperl-mode)
@ -2695,6 +2699,9 @@ With given ARG, display files in `db/important-document-path."
:init (setq python-indent-offset 2)
:config (progn
(add-hook 'python-mode-hook 'highlight-indentation-mode)
(add-hook 'python-mode-hook #'(lambda () (eldoc-mode -1)))
(add-hook 'python-mode-hook #'(lambda ()
(add-to-list 'company-backends 'company-jedi)))
(elpy-enable)))
;; Interactive interface to sdcv, the StarDict concole version. To use sdcv,