Fix #2971: void-function doom-modeline-update-env errors
This commit is contained in:
parent
a16b305c0f
commit
aff4a337ac
1 changed files with 7 additions and 5 deletions
|
@ -31,14 +31,16 @@ Meant for `doom-change-font-size-hook'."
|
||||||
"Update version strings in all buffers."
|
"Update version strings in all buffers."
|
||||||
(dolist (window (window-list))
|
(dolist (window (window-list))
|
||||||
(with-selected-window window
|
(with-selected-window window
|
||||||
(doom-modeline-update-env)
|
(when (fboundp 'doom-modeline-update-env)
|
||||||
|
(doom-modeline-update-env))
|
||||||
(force-mode-line-update))))
|
(force-mode-line-update))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +modeline-clear-env-in-all-windows-h (&rest _)
|
(defun +modeline-clear-env-in-all-windows-h (&rest _)
|
||||||
"Blank out version strings in all buffers."
|
"Blank out version strings in all buffers."
|
||||||
(dolist (buffer (buffer-list))
|
(unless (featurep! +light)
|
||||||
(with-current-buffer buffer
|
(dolist (buffer (buffer-list))
|
||||||
(setq doom-modeline-env--version
|
(with-current-buffer buffer
|
||||||
(bound-and-true-p doom-modeline-load-string))))
|
(setq doom-modeline-env--version
|
||||||
|
(bound-and-true-p doom-modeline-load-string)))))
|
||||||
(force-mode-line-update t))
|
(force-mode-line-update t))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue