mu4e: implement mu4e-query-items
Implement function / datas structure to conveniently aggregate all query-related data, for reuse in various places in mu4e... ... to start with the main menu, which gets much simpler. And the modeline.
This commit is contained in:
@ -63,11 +63,6 @@ the buffer-local one."
|
||||
mu4e--modeline-global-items)
|
||||
" "))))
|
||||
|
||||
(defun mu4e--modeline-update ()
|
||||
"Recalculate and force-update the modeline."
|
||||
(setq mu4e--modeline-string-cached nil)
|
||||
(force-mode-line-update))
|
||||
|
||||
(define-minor-mode mu4e-modeline-mode
|
||||
"Minor mode for showing mu4e information on the modeline."
|
||||
;; This is a bit special 'global' mode, since it consists of both
|
||||
@ -87,6 +82,13 @@ the buffer-local one."
|
||||
global-mode-string)))
|
||||
(force-mode-line-update)))
|
||||
|
||||
(defun mu4e--modeline-update ()
|
||||
"Recalculate and force-update the modeline."
|
||||
(when mu4e-modeline-mode
|
||||
(setq mu4e--modeline-string-cached nil)
|
||||
(force-mode-line-update)))
|
||||
|
||||
|
||||
(provide 'mu4e-modeline)
|
||||
|
||||
;;; mu4e-modeline.el ends here
|
||||
|
||||
Reference in New Issue
Block a user