 ;;; lang/python/config.el -*- lexical-binding: t; -*-
 
-(defvar +python-mode-name-functions '(+python-version)
+(defvar +python-version-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)
  (add-to-list '+python-mode-name-functions #'pyenv-mode-version nil #'eq))


(def-package! pyvenv

  (conda-env-initialize-interactive-shells)
  (after! eshell (conda-env-initialize-eshell))

  (add-hook 'conda-postactivate-hook #'+python|update-version)
  (add-hook 'conda-postdeactivate-hook #'+python|update-version)
  (add-to-list '+python-version-functions #'+python-conda-env nil #'eq)

  (advice-add 'anaconda-mode-bootstrap :override #'+python*anaconda-mode-bootstrap-in-remote-environments))
