summaryrefslogtreecommitdiffhomepage
path: root/email.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-06-06 04:18:16 +0100
committerjao <jao@gnu.org>2021-06-06 04:18:16 +0100
commita285eec11e5b056a02ab5c11a268abed01d9131a (patch)
treee9c5ae7dc675145996a702bfb706ed0cd69633d3 /email.org
parent6a727170bfbf6174ffe27633090d903d18ea2428 (diff)
downloadelibs-a285eec11e5b056a02ab5c11a268abed01d9131a.tar.gz
elibs-a285eec11e5b056a02ab5c11a268abed01d9131a.tar.bz2
better notmuch-hello refresh (it was org agenda)
Diffstat (limited to 'email.org')
-rw-r--r--email.org13
1 files changed, 8 insertions, 5 deletions
diff --git a/email.org b/email.org
index d4ccc45..2017105 100644
--- a/email.org
+++ b/email.org
@@ -384,13 +384,16 @@
(when (eq 'notmuch jao-afio-mail-function)
(setq mm-text-html-renderer 'shr))
+ (defun jao-notmuch-refresh-agenda ()
+ (interactive)
+ (save-window-excursion (org-agenda-list)))
+
(defun jao-notmuch-refresh-hello ()
(interactive)
(when (derived-mode-p 'notmuch-hello-mode)
(when (not (string-blank-p jao-notmuch-minibuffer-string))
- (notmuch-hello))
+ (let ((notmuch-hello-auto-refresh nil)) (notmuch-hello)))
(let ((inhibit-message t))
- (save-window-excursion (org-agenda-list))
(beginning-of-buffer)
(widget-forward 2))))
@@ -413,7 +416,8 @@
(jao-afio-switch . jao-notmuch-refresh-hello))
:bind (:map notmuch-hello-mode-map
- (("S" . consult-notmuch)
+ (("a" . jao-notmuch-refresh-agenda)
+ ("S" . consult-notmuch)
("g" . jao-notmuch-refresh-hello)
("SPC" . widget-button-press))
:map notmuch-common-keymap
@@ -429,8 +433,7 @@
(let ((b (current-buffer)))
(select-window notmuch-tree-message-window)
(setq-local jao-notmuch--tree-buffer b)
- (when (and and-click (button-at (point)))
- (push-button))
+ (when (and and-click (button-at (point))) (push-button))
t)))
(defun jao-notmuch-click-message-buffer ()