   :after python
   :config
   (defun +python-current-pyvenv () pyvenv-virtual-env-name)
-  (add-to-list '+python-mode-name-functions #'+python-current-pyvenv nil #'eq))
+  (add-hook 'pyvenv-post-activate-hooks #'+python|update-version)
+  (add-hook 'pyvenv-post-deactivate-hooks #'+python|update-version)
+  (add-to-list '+python-version-functions #'+python-current-pyvenv nil #'eq))
 
 
 (def-package! conda
   :when (featurep! +conda)
   :after python
   :config
-  ;; Adds conda support to Doom Emacs. `conda-anaconda-home' should be the path
-  ;; to your anaconda installation, and will be guessed from the following:
+  ;; The location of your anaconda home will be guessed from the following:
   ;;
+  ;; + ANACONDA_HOME
   ;; + ~/.anaconda3
   ;; + ~/.anaconda
   ;; + ~/.miniconda
   ;; + ~/usr/bin/anaconda3
   ;;
-  ;; If none of these work, you'll need to set `conda-anaconda-home' yourself.
-  ;;
-  ;; Once set, run M-x `conda-env-activate' to switch between environments OR
-  ;; turn on `conda-env-autoactivate-mode' if you want it done automatically.
+  ;; If none of these work for you, you must set `conda-anaconda-home'
+  ;; explicitly. Once set, run M-x `conda-env-activate' to switch between
+  ;; environments
   (unless (cl-loop for dir in (list conda-anaconda-home
                                     "~/.anaconda"
                                     "~/.miniconda"

;;; lang/python/config.el -*- lexical-binding: t; -*-

(defvar +python-mode-name-functions '(+python-version)
  "A list of functions to retrieve a version or environment string from. The
first to return non-nil will have its result appended to the python-mode
`mode-name' and displayed in the mode-line.")

  :after python
  :config
  (pyenv-mode +1)
  (advice-add #'pyenv-mode-set :after #'+python*update-version)
  (advice-add #'pyenv-mode-unset :after #'+python*update-version)
  (add-to-list '+python-version-functions #'pyenv-mode-version nil #'eq))


(def-package! pyvenv
