mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
emacs/tree: add kill-both prefix argument to notmuch-tree-quit
This allows us to close both windows at the same time. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
d9888b301c
commit
c6f43306cc
1 changed files with 3 additions and 3 deletions
|
@ -584,10 +584,10 @@ Shows in split pane or whole window according to value of
|
|||
(when (notmuch-tree-scroll-message-window)
|
||||
(notmuch-tree-next-matching-message)))
|
||||
|
||||
(defun notmuch-tree-quit ()
|
||||
(defun notmuch-tree-quit (&optional kill-both)
|
||||
"Close the split view or exit tree."
|
||||
(interactive)
|
||||
(unless (notmuch-tree-close-message-window)
|
||||
(interactive "P")
|
||||
(when (or (not (notmuch-tree-close-message-window)) kill-both)
|
||||
(kill-buffer (current-buffer))))
|
||||
|
||||
(defun notmuch-tree-close-message-window ()
|
||||
|
|
Loading…
Reference in a new issue