lang/python: fix missing +modeline-update-env-in-all-windows-h
...when :ui modeline is disabled.
This commit is contained in:
parent
11a6c03d69
commit
2a943437a2
1 changed files with 3 additions and 2 deletions
|
@ -77,8 +77,9 @@ called.")
|
||||||
sp-point-before-same-p))
|
sp-point-before-same-p))
|
||||||
|
|
||||||
;; Affects pyenv and conda
|
;; Affects pyenv and conda
|
||||||
(advice-add #'pythonic-activate :after-while #'+modeline-update-env-in-all-windows-h)
|
(when (featurep! :ui modeline)
|
||||||
(advice-add #'pythonic-deactivate :after #'+modeline-clear-env-in-all-windows-h)
|
(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))
|
(setq-hook! 'python-mode-hook tab-width python-indent-offset))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue