summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-notmuch.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2026-09-11 00:18:56 +0100
committerjao <jao@gnu.org>2026-09-11 00:18:56 +0100
commit61b3373acccd156c808789dc32538e1ff905928e (patch)
tree9d94f4c971b0723403d0df6b931d37794685855d /custom/jao-custom-notmuch.el
parente9fbf597d3f51c2f98aba3c512a19c7fb9ef0850 (diff)
downloadelibs-61b3373acccd156c808789dc32538e1ff905928e.tar.gz
elibs-61b3373acccd156c808789dc32538e1ff905928e.tar.bz2
better notmuch two panes
Diffstat (limited to 'custom/jao-custom-notmuch.el')
-rw-r--r--custom/jao-custom-notmuch.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el
index 7315e7c..8b8cd58 100644
--- a/custom/jao-custom-notmuch.el
+++ b/custom/jao-custom-notmuch.el
@@ -560,9 +560,10 @@
(defun jao-notmuch-before-tree (&rest _args)
(window-configuration-to-register ?G)
(when (string= (buffer-name) "*notmuch-hello*")
- (when (< (frame-width) 230) (delete-other-windows))
- (split-window-right 40)
- (other-window 1)))
+ (when (< (frame-width) 120)
+ (delete-other-windows)
+ (split-window-right 40)
+ (other-window 1))))
(defun jao-notmuch-after-tree-quit (&optional _both)
(when (not (derived-mode-p 'notmuch-tree-mode 'notmuch-hello-mode))