summaryrefslogtreecommitdiffhomepage
path: root/email.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-04-23 01:23:38 +0100
committerjao <jao@gnu.org>2021-04-23 01:23:38 +0100
commit149ad6fedf199dcb20fdd388d19fad5b3f848989 (patch)
tree9b448830883ff9dde2e630bf7473c194366b0756 /email.org
parentf46b70ad06e1575409a6bf18efcf8165e61cc2ba (diff)
downloadelibs-149ad6fedf199dcb20fdd388d19fad5b3f848989.tar.gz
elibs-149ad6fedf199dcb20fdd388d19fad5b3f848989.tar.bz2
notmuch: homogeneous scrolling over everything with SPC
Diffstat (limited to 'email.org')
-rw-r--r--email.org9
1 files changed, 6 insertions, 3 deletions
diff --git a/email.org b/email.org
index eaac4c2..57f360c 100644
--- a/email.org
+++ b/email.org
@@ -503,7 +503,8 @@
:bind (:map notmuch-hello-mode-map
(("g" . jao-notmuch-refresh-hello)
("S" . consut-notmuch)
- ("k" . nil))))
+ ("k" . nil)
+ ("SPC" . widget-button-press))))
#+end_src
*** show
@@ -571,8 +572,10 @@
(defun jao-notmuch-tree-scroll-or-next ()
"Scroll or next message in forest or exit if none."
(interactive)
- (when (notmuch-tree-scroll-message-window)
- (notmuch-tree-next-matching-message t)))
+ (if (notmuch-tree-scroll-message-window)
+ (notmuch-tree-next-matching-message t)
+ (when (not (window-live-p notmuch-tree-message-window))
+ (notmuch-tree-show-message nil))))
(defun jao-notmuch--format-field (fun field &rest args)
(let ((rs (apply fun field args)))