From 2a943437a2fbf2910050820d5e476f7a06d90e3a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 7 Oct 2019 15:34:12 -0400 Subject: [PATCH] lang/python: fix missing +modeline-update-env-in-all-windows-h ...when :ui modeline is disabled. --- modules/lang/python/config.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index 303a5b724..c80598b67 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -77,8 +77,9 @@ called.") sp-point-before-same-p)) ;; Affects pyenv and conda - (advice-add #'pythonic-activate :after-while #'+modeline-update-env-in-all-windows-h) - (advice-add #'pythonic-deactivate :after #'+modeline-clear-env-in-all-windows-h) + (when (featurep! :ui modeline) + (advice-add #'pythonic-activate :after-while #'+modeline-update-env-in-all-windows-h) + (advice-add #'pythonic-deactivate :after #'+modeline-clear-env-in-all-windows-h)) (setq-hook! 'python-mode-hook tab-width python-indent-offset))