lang/python: set :company-backend sooner #369

company-anaconda was added to company-backends too late, causing
code completion not to work in first-time python buffers.
This commit is contained in:
Henrik Lissner 2018-01-24 03:15:45 -05:00
parent 0e392372df
commit 12ac162276
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -24,8 +24,9 @@ is loaded.")
:config
(add-hook! 'python-mode-hook #'(flycheck-mode highlight-numbers-mode))
(set! :repl 'python-mode #'+python/repl)
(set! :company-backend 'python-mode '(company-anaconda))
(set! :electric 'python-mode :chars '(?:))
(set! :repl 'python-mode #'+python/repl)
(when (executable-find "ipython")
(setq python-shell-interpreter "ipython"
@ -87,7 +88,6 @@ environment variables."
:when (featurep! :completion company)
:after anaconda-mode
:config
(set! :company-backend 'python-mode '(company-anaconda))
(set! :lookup 'python-mode
:definition #'anaconda-mode-find-definitions
:references #'anaconda-mode-find-references