Update auto-virtualenv config

It now activates automatically when switching to `python-mode`
This commit is contained in:
Gergely Polonkai 2016-11-15 22:05:58 +01:00
parent ab56d6f449
commit b48f918bdd

View File

@ -815,7 +815,11 @@
(global-anzu-mode 1)) (global-anzu-mode 1))
(use-package auto-virtualenv (use-package auto-virtualenv
:ensure t) :ensure t
:config
(add-hook 'python-mode-hook 'auto-virtualenv-set-virtualenv)
(add-hook 'projectile-after-switch-project-hook
'auto-virtualenv-set-virtualenv))
(use-package flymake-python-pyflakes (use-package flymake-python-pyflakes
:ensure t) :ensure t)