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
1 changed files with 5 additions and 1 deletions

View File

@ -815,7 +815,11 @@
(global-anzu-mode 1))
(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
:ensure t)