Activate pyvenv after init
This commit is contained in:
parent
82f1b0464c
commit
94567d89fa
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user