From 33949570639fdadd67c3b23203e9627b4082f1d6 Mon Sep 17 00:00:00 2001 From: Jeremy Isaac Dormitzer Date: Wed, 20 Mar 2024 12:03:18 -0400 Subject: [PATCH] Suppress message when switching python versions with pyenv --- emacs/.emacs.d/config/init-python.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/emacs/.emacs.d/config/init-python.el b/emacs/.emacs.d/config/init-python.el index 93efbfc..0d193ee 100644 --- a/emacs/.emacs.d/config/init-python.el +++ b/emacs/.emacs.d/config/init-python.el @@ -65,15 +65,15 @@ (pyenv--call-process "version-alias-file"))) (global-pyenv-mode) (defun pyenv-switch-buffer-hook (prev curr) - (pyenv-use-corresponding)) - (defun pyenv-use-corresponding-vterm-hook () - (when (eq major-mode 'vterm-mode) - (vterm-send-C-e) - (vterm-send-C-u) - (vterm-send-string (format "export PYENV_VERSION=%s\n" (getenv "PYENV_VERSION"))))) + (shut-up (pyenv-use-corresponding))) + ;; (defun pyenv-use-corresponding-vterm-hook () + ;; (when (eq major-mode 'vterm-mode) + ;; (vterm-send-C-e) + ;; (vterm-send-C-u) + ;; (vterm-send-string (format "export PYENV_VERSION=%s\n" (getenv "PYENV_VERSION"))))) (add-hook 'switch-buffer-functions #'pyenv-switch-buffer-hook) (add-hook 'eshell-directory-change-hook #'pyenv-use-corresponding) - (add-hook 'pyenv-mode-hook #'pyenv-use-corresponding-vterm-hook) + ;; (add-hook 'pyenv-mode-hook #'pyenv-use-corresponding-vterm-hook) :custom (pyenv-show-active-python-in-modeline nil))