summaryrefslogtreecommitdiffhomepage
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/jao-custom-notmuch.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el
index 3f714b3..dd0d4bd 100644
--- a/custom/jao-custom-notmuch.el
+++ b/custom/jao-custom-notmuch.el
@@ -541,7 +541,14 @@ ch--search-keys i)
(advice-add 'notmuch-tree :before #'jao-notmuch-before-tree)
(advice-add 'notmuch-tree-quit :after #'jao-notmuch-after-tree-quit))
- (when jao-notmuch-enabled (jao-notmuch-use-two-panes))
+ (defun jao-notmuch-use-one-pane ()
+ (interactive)
+ (add-to-list 'jao-afio-frame-parameters '("mail" ((width . 120))))
+ (advice-remove 'notmuch-tree #'jao-notmuch-before-tree)
+ (advice-remove 'notmuch-tree-quit #'jao-notmuch-after-tree-quit))
+
+ (when jao-notmuch-enabled
+ (jao-d-l (jao-notmuch-use-one-pane) (jao-notmuch-use-two-panes)))
:bind (:map notmuch-tree-mode-map
(("b" . jao-notmuch-browse-urls)