auto-virtualenv
Automatically activate python virtualenvs on emacs based on project name or .python-version
file.
Installation
MELPA
auto-virtualenv
is available on MELPA.
You can install auto-virtualenv
with the following command.
M-x package-install [RET] auto-virtualenv [RET]
manual
Clone this repository somewhere and add this directory to you
load-path
.
Configuration
(require 'auto-virtualenv)
(add-hook 'python-mode-hook 'auto-virtualenv-set-virtualenv)
Optionally:
;; Activate on changing buffers
(add-hook 'window-configuration-change-hook 'auto-virtualenv-set-virtualenv)
;; Activate on focus in
(add-hook 'focus-in-hook 'auto-virtualenv-set-virtualenv)
Alternatives
License
View official GNU site http://www.gnu.org/licenses/gpl.html.