Set WORKON_HOME environment variable for pyvenv usability

Again inspired by https://ddavis.io/posts/emacs-python-lsp/.
This commit is contained in:
Daniel - 2021-04-24 09:40:11 +02:00
parent 0d2897dff7
commit 32cb502915
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 2 additions and 1 deletions

View File

@ -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