summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-notmuch.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-10-06 18:53:17 +0100
committerjao <jao@gnu.org>2025-10-06 18:53:17 +0100
commit88d27fd007cd89f316c3db8c4e6e51dbb363afd4 (patch)
tree7a4796d65a6d76eb8c3ecf988cce14d46e5c7cfa /custom/jao-custom-notmuch.el
parentd5056c83de34fadd4ee8438240d6a115c5377877 (diff)
downloadelibs-88d27fd007cd89f316c3db8c4e6e51dbb363afd4.tar.gz
elibs-88d27fd007cd89f316c3db8c4e6e51dbb363afd4.tar.bz2
bbdb layout, gnus layouts
Diffstat (limited to 'custom/jao-custom-notmuch.el')
-rw-r--r--custom/jao-custom-notmuch.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el
index a0dba56..6f44d51 100644
--- a/custom/jao-custom-notmuch.el
+++ b/custom/jao-custom-notmuch.el
@@ -496,8 +496,12 @@
(add-hook 'notmuch-tree-process-exit-functions #'jao-notmuch-tree--sentinel)
- (advice-add 'notmuch-tree :before #'jao-notmuch-before-tree)
- (advice-add 'notmuch-tree-quit :after #'jao-notmuch-after-tree-quit)
+ (defun jao-notmuch-use-two-panes ()
+ (interactive)
+ (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))
:bind (:map notmuch-tree-mode-map
(("b" . jao-notmuch-browse-urls)