From 32cb502915e053b5dc8b7dbd75c31d3c9957d25f Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 24 Apr 2021 09:40:11 +0200 Subject: [PATCH] Set WORKON_HOME environment variable for pyvenv usability Again inspired by https://ddavis.io/posts/emacs-python-lsp/. --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 62e0efd..04dcece 100644 --- a/init.el +++ b/init.el @@ -3004,7 +3004,8 @@ With given ARG, display files in `db/important-document-path’." ;; https://ddavis.io/posts/emacs-python-lsp/ (use-package pyvenv :ensure t - :commands (pyvenv-workon pyvenv-activate)) + :commands (pyvenv-workon pyvenv-activate) + :init (setenv "WORKON_HOME" (expand-file-name "~/.pyenv/versions"))) (use-package shr :init (setq shr-use-fonts nil