summaryrefslogtreecommitdiffhomepage
path: root/notmuch.org
diff options
context:
space:
mode:
Diffstat (limited to 'notmuch.org')
-rw-r--r--notmuch.org23
1 files changed, 19 insertions, 4 deletions
diff --git a/notmuch.org b/notmuch.org
index fee756c..4d255ff 100644
--- a/notmuch.org
+++ b/notmuch.org
@@ -204,8 +204,8 @@
notmuch-address-internal-completion '(received nil)
notmuch-fcc-dirs
'(("\\(support\\|education\\)@bigml.com" . nil)
- (".*@bigml.com" . "bigml +bigml +sent -new -unread")
- (".*" . "jao +jao +sent +trove -new -unread"))
+ (".*@bigml.com" . "bigml.trove +bigml +sent -new -unread")
+ (".*" . "jao.trove +jao +sent +trove -new -unread"))
notmuch-maildir-use-notmuch-insert t)
:config
@@ -434,9 +434,9 @@
:init
(setq notmuch-tree-result-format
`(("date" . "%12s ")
- ("authors" . "%-35s")
+ ("authors" . "%-25s")
(jao-notmuch-msg-ticks . ,jao-mails-regexp)
- (jao-notmuch-tree-and-subject . "%>-102s")
+ (jao-notmuch-tree-and-subject . "%>-80s")
(jao-notmuch-format-tags . " (%s)"))
notmuch-unthreaded-result-format notmuch-search-result-format
consult-notmuch-result-format
@@ -459,6 +459,21 @@
(jao-notmuch-tree-setup "T")
+ (defun jao-notmuch-before-tree (&rest args)
+ (when (string= (buffer-name) "*notmuch-hello*")
+ (split-window-right 40)
+ (other-window 1)))
+
+ (defun jao-notmuch-after-tree-quit (&optional both)
+ (when (and (not (derived-mode-p 'notmuch-tree-mode 'notmuch-hello-mode))
+ (save-window-excursion (other-window -1)
+ (derived-mode-p 'notmuch-hello-mode)))
+ (delete-window)
+ (jao-notmuch-refresh-hello)))
+
+ (advice-add 'notmuch-tree :before #'jao-notmuch-before-tree)
+ (advice-add 'notmuch-tree-quit :after #'jao-notmuch-after-tree-quit)
+
:bind (:map notmuch-tree-mode-map
(("b" . jao-notmuch-browse-urls)
("d" . jao-notmuch-tree-toggle-delete)