Fix anaconda-mode loading late in python-mode #638

This would mean anaconda-mode's config wouldn't work until the second
opened python buffer (or invokation of python-mode).
This commit is contained in:
Henrik Lissner 2018-06-01 12:19:11 +02:00
parent 82f240ffc9
commit 83db654058
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -72,11 +72,12 @@ environment variables."
(def-package! anaconda-mode
:hook python-mode
:after python
:init
(setq anaconda-mode-installation-directory (concat doom-etc-dir "anaconda/")
anaconda-mode-eldoc-as-single-line t)
:config
(add-hook 'python-mode-hook #'anaconda-mode)
(add-hook 'anaconda-mode-hook #'anaconda-eldoc-mode)
(set! :company-backend 'python-mode '(company-anaconda))
(set! :popup "^\\*anaconda-mode" nil '((select)))