From 7ae2bf962e1c05da150a4ae1e778a7fb90471a27 Mon Sep 17 00:00:00 2001 From: daanturo Date: Sat, 27 Mar 2021 16:24:40 +0700 Subject: [PATCH] Active pyenv-mode only when pyenv exe is found. --- modules/lang/python/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index a091c7c0c..96c26b84e 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -243,8 +243,8 @@ :when (featurep! +pyenv) :after python :config - (pyenv-mode +1) (when (executable-find "pyenv") + (pyenv-mode +1) (add-to-list 'exec-path (expand-file-name "shims" (or (getenv "PYENV_ROOT") "~/.pyenv")))) (add-hook 'python-mode-local-vars-hook #'+python-pyenv-mode-set-auto-h) (add-hook 'doom-switch-buffer-hook #'+python-pyenv-mode-set-auto-h))