X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-tree.el;h=895c05f48c9c9dccf36db58c0378daa15f9494f4;hb=c36e91d9d4774666064a840b19ccf7880f658ad1;hp=760eaaec6bdc24ffd0788a34660246c74231e48c;hpb=a82fb6e67042d402166104e803376f6f68613ba9;p=notmuch diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 760eaaec..895c05f4 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -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)))