diff options
author | jao <jao@gnu.org> | 2021-06-06 04:18:16 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-06-06 04:18:16 +0100 |
commit | a285eec11e5b056a02ab5c11a268abed01d9131a (patch) | |
tree | e9c5ae7dc675145996a702bfb706ed0cd69633d3 /email.org | |
parent | 6a727170bfbf6174ffe27633090d903d18ea2428 (diff) | |
download | elibs-a285eec11e5b056a02ab5c11a268abed01d9131a.tar.gz elibs-a285eec11e5b056a02ab5c11a268abed01d9131a.tar.bz2 |
better notmuch-hello refresh (it was org agenda)
Diffstat (limited to 'email.org')
-rw-r--r-- | email.org | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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 () |