From 88d27fd007cd89f316c3db8c4e6e51dbb363afd4 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 6 Oct 2025 18:53:17 +0100 Subject: bbdb layout, gnus layouts --- custom/jao-custom-notmuch.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'custom/jao-custom-notmuch.el') 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) -- cgit v1.2.3