mu4e-main: refresh after context-switch

Fixes: #2062.
This commit is contained in:
Dirk-Jan C. Binnema
2021-07-29 23:24:13 +03:00
parent c8a2151cb9
commit f69214b4df
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
;;; mu4e-context.el -- part of mu4e, the mu mail user agent -*- lexical-binding: t -*-
;; Copyright (C) 2015-2020 Dirk-Jan C. Binnema
;; Copyright (C) 2015-2021 Dirk-Jan C. Binnema
;; Author: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
;; Maintainer: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>

View File

@ -70,7 +70,8 @@ no unread messages.")
(define-key map "S" 'mu4e-kill-update-mail)
(define-key map (kbd "C-S-u") 'mu4e-update-mail-and-index)
(define-key map ";" 'mu4e-context-switch)
(define-key map ";"
(lambda()(interactive)(mu4e-context-switch)(revert-buffer)))
(define-key map "$" 'mu4e-show-log)
(define-key map "A" 'mu4e-about)
@ -256,7 +257,8 @@ When REFRESH is non nil refresh infos from server."
"\n"
(propertize " Misc\n\n" 'face 'mu4e-title-face)
(mu4e~main-action-str "\t* [;]Switch context\n" 'mu4e-context-switch)
(mu4e~main-action-str "\t* [;]Switch context\n"
(lambda()(interactive)(mu4e-context-switch)(revert-buffer)))
(mu4e~main-action-str "\t* [U]pdate email & database\n"
'mu4e-update-mail-and-index)