diff --git a/emacs/init.org b/emacs/init.org index 20893ff..4e3a4b3 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2407,7 +2407,7 @@ Support pyvenv within Emacs: (use-package pyvenv :commands (pyvenv-mode pyvenv-workon pyvenv-activate) :init - (add-hook 'python-mode-hook #'pyvenv-mode)) + (add-hook 'after-init-hook #'pyvenv-mode)) (defun eshell/workon (name) (pyvenv-workon name))