mu4e: Update single-window mode
Update mu4e~headers-quit-buffer and mu4e~main-menu. mu4e~headers-quit-buffer in single-window mode now kills current buffer instead of quitting mu4e. mu4e~main-menu is updated to redisplay the main menu on context switch or unknown keybinding, display errors in commands better, and to handle C-g and ESC keys. Thanks to Joost Kremers for the suggestions.
This commit is contained in:
@ -1722,7 +1722,7 @@ other windows."
|
||||
(interactive)
|
||||
(if (eq mu4e-split-view 'single-window)
|
||||
(progn (mu4e-mark-handle-when-leaving)
|
||||
(mu4e-quit))
|
||||
(kill-buffer))
|
||||
(unless (eq major-mode 'mu4e-headers-mode)
|
||||
(mu4e-error "Must be in mu4e-headers-mode (%S)" major-mode))
|
||||
(mu4e-mark-handle-when-leaving)
|
||||
|
||||
Reference in New Issue
Block a user