/auto-virtualenv

Automatically activate python virtualenv on Emacs

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

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

GNU GPL v3.0

View official GNU site http://www.gnu.org/licenses/gpl.html.