Activate pyvenv after init

This commit is contained in:
Jeremy Dormitzer 2020-02-07 17:22:00 -05:00
parent 82f1b0464c
commit 94567d89fa

View File

@ -2407,7 +2407,7 @@ Support pyvenv within Emacs:
(use-package pyvenv (use-package pyvenv
:commands (pyvenv-mode pyvenv-workon pyvenv-activate) :commands (pyvenv-mode pyvenv-workon pyvenv-activate)
:init :init
(add-hook 'python-mode-hook #'pyvenv-mode)) (add-hook 'after-init-hook #'pyvenv-mode))
(defun eshell/workon (name) (defun eshell/workon (name)
(pyvenv-workon name)) (pyvenv-workon name))