lang/python: refactor python mode-line indication
This commit is contained in:
parent
9b180fda97
commit
c0c4b897ea
2 changed files with 24 additions and 30 deletions
|
@ -29,7 +29,17 @@ made to be added to `doom-big-font-mode-hook'."
|
|||
|
||||
;;;###autoload
|
||||
(defun +modeline|update-env-in-all-windows (&rest _)
|
||||
"TODO"
|
||||
"Update version strings in all buffers."
|
||||
(dolist (window (window-list))
|
||||
(with-selected-window window
|
||||
(doom-modeline-update-env))))
|
||||
(doom-modeline-update-env)
|
||||
(force-mode-line-update))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +modeline|clear-env-in-all-windows (&rest _)
|
||||
"Blank out version strings in all buffers."
|
||||
(dolist (buffer (buffer-list))
|
||||
(with-current-buffer buffer
|
||||
(setq doom-modeline-env--version
|
||||
(bound-and-true-p doom-modeline-load-string))))
|
||||
(force-mode-line-update t))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue