lang/python: fix missing +modeline-update-env-in-all-windows-h

...when :ui modeline is disabled.
This commit is contained in:
Henrik Lissner
2019-10-07 15:34:12 -04:00
parent 11a6c03d69
commit 2a943437a2

View File

@ -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))