diff --git a/emacs/init.org b/emacs/init.org index ae6286e..f851040 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2390,9 +2390,9 @@ Alternatively, use the LSP python client: Support pyvenv within Emacs: #+BEGIN_SRC emacs-lisp (use-package pyvenv - :commands (pyvenv-workon pyvenv-activate) - :config - (pyvenv-mode)) + :commands (pyvenv-mode pyvenv-workon pyvenv-activate) + :init + (add-hook 'python-mode-hook #'pyvenv-mode)) (defun eshell/workon (name) (pyvenv-workon name))