diff --git a/emacs/init.org b/emacs/init.org index 03239cd..c8c8416 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -968,7 +968,18 @@ Configure Java project sources: Elpy is a python IDE package: #+BEGIN_SRC emacs-lisp (use-package elpy - :config (elpy-enable)) + :config + (elpy-enable) + (pyvenv-mode)) + + (defun eshell/workon (name) + (pyvenv-workon name)) + + (defun eshell/activate (dir) + (pyvenv-activate dir)) + + (defun eshell/deactivate () + (pyvenv-deactivate)) #+END_SRC Pipenv is the Python standard dependency management/virtual environment tool. pipenv.el teaches Emacs its ways: