Add info on update status in modeline

This commit is contained in:
galaunay
2017-07-19 12:46:26 +02:00
parent 4014e3d210
commit 513eb65388
2 changed files with 12 additions and 1 deletions

View File

@ -1107,7 +1107,13 @@ the query history stack."
(mu4e~quote-for-modeline mu4e~headers-last-query)
'face 'mu4e-modeline-face)
" "
(mu4e-context-label)))))
(mu4e-context-label)
(if (and mu4e-display-update-status-in-modeline
(buffer-live-p mu4e~update-buffer)
(process-live-p (get-buffer-process mu4e~update-buffer)))
(propertize " (updating)" 'face 'mu4e-modeline-face)
"")))))
;; when the buffer is already visible, select it; otherwise,
;; switch to it.
(unless (get-buffer-window buf 0)