From 58f9c4bea5a398ef6a99c9abe8754ef489fc3530 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 7 Feb 2020 10:30:00 -0500 Subject: [PATCH] Activate pyvenv-mode in a hook --- emacs/init.org | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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))