layers/+lang/python/packages.el: Fix the invalid 'args' in the condition

This commit is contained in:
Lin Sun 2022-12-28 00:00:17 +00:00 committed by Maxi Wolff
parent fd749704ff
commit 37cdd5069f
1 changed files with 3 additions and 3 deletions

View File

@ -320,9 +320,9 @@
;; setup shell correctly on environment switch
(dolist (func '(pyenv-mode-set pyenv-mode-unset))
(advice-add func :after
#'(lambda (&optional version)
(spacemacs/python-setup-everything
(when args (pyenv-mode-full-path version))))))
(lambda (&optional version)
(spacemacs/python-setup-everything
(when version (pyenv-mode-full-path version))))))
(spacemacs/set-leader-keys-for-major-mode 'python-mode
"vu" 'pyenv-mode-unset
"vs" 'pyenv-mode-set))))