lang/python: improve pipenv support

This commit is contained in:
Henrik Lissner 2018-08-11 21:18:21 +02:00
parent 18925b51db
commit 69eb2cd40d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -130,7 +130,11 @@
(def-package! pipenv (def-package! pipenv
:commands pipenv-project-p :commands pipenv-project-p
:hook (python-mode . pipenv-mode)) :hook (python-mode . pipenv-mode)
:init (setq pipenv-with-projectile nil)
:config
(advice-add #'pipenv-activate :after-while #'+python|update-version)
(advice-add #'pipenv-deactivate :after-while #'+python|update-version))
(def-package! pyenv-mode (def-package! pyenv-mode