Automatically activate python virtualenv on Emacs
Clone or download
Latest commit 3826db6 Jan 26, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Feb 10, 2016
LICENSE Initial commit Feb 10, 2016
README.md Update README.md Jan 25, 2017
auto-virtualenv.el Fix project root not found error Jan 25, 2017

README.md

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.