mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
Unthreaded mode: allow user to choose different `show out' than tree
Tree mode allows the user to choose whether to use the split screen displaying just the current message or a full screen displaying the entire thread. As unthreaded mode is quite different in use the user may want a different customisation for this mode.
This commit is contained in:
parent
a82fb6e670
commit
c36e91d9d4
1 changed files with 12 additions and 2 deletions
|
@ -56,6 +56,16 @@
|
|||
:type 'boolean
|
||||
:group 'notmuch-tree)
|
||||
|
||||
(defcustom notmuch-unthreaded-show-out t
|
||||
"View selected messages in new window rather than split-pane."
|
||||
:type 'boolean
|
||||
:group 'notmuch-tree)
|
||||
|
||||
(defun notmuch-tree-show-out ()
|
||||
(if notmuch-tree-unthreaded
|
||||
notmuch-unthreaded-show-out
|
||||
notmuch-tree-show-out))
|
||||
|
||||
(defcustom notmuch-tree-result-format
|
||||
`(("date" . "%12s ")
|
||||
("authors" . "%-20s")
|
||||
|
@ -531,8 +541,8 @@ NOT change the database."
|
|||
Shows in split pane or whole window according to value of
|
||||
`notmuch-tree-show-out'. A prefix argument reverses the choice."
|
||||
(interactive "P")
|
||||
(if (or (and notmuch-tree-show-out (not arg))
|
||||
(and (not notmuch-tree-show-out) arg))
|
||||
(if (or (and (notmuch-tree-show-out) (not arg))
|
||||
(and (not (notmuch-tree-show-out)) arg))
|
||||
(notmuch-tree-show-message-out)
|
||||
(notmuch-tree-show-message-in)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue