virtualenv activation hooks?
When I set up my virtual environment in emacs, I also configure flycheck's pylint to point to the executable that's in the virtual environment. The way I'm doing this right now is:
"Change flycheck pylint executable to virtualenv executable"
(if (and (boundp 'virtualenv-name)
(add-hook 'python-mode-hook 'my-set-
but this means if I open a Python file, then go "oh yeah, I need to set the virtual environment" and set it with (virtualenv-
The way I'd rather do this is make it a hook to (virtualenv-
Is there a way to automate this that actually supports the workflow I've described?
Can you help with this problem?
Provide an answer of your own, or ask Nathan Typanski for more information if necessary.