summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-11-05 00:00:55 +0000
committerjao <jao@gnu.org>2025-11-05 00:00:55 +0000
commitbb3be288b98c9b5f256afbeb550f92af7de0f3e4 (patch)
tree51e3f6645b9cdb1f60f3065fdaddff6227488490
parent5f0c3dd71896a8d1be46b29b5bc2e60d3e86fb4b (diff)
downloadelibs-bb3be288b98c9b5f256afbeb550f92af7de0f3e4.tar.gz
elibs-bb3be288b98c9b5f256afbeb550f92af7de0f3e4.tar.bz2
afio: run hooks when switiching to oneself
-rw-r--r--custom/jao-custom-notmuch.el1
-rw-r--r--lib/eos/jao-afio.el4
2 files changed, 3 insertions, 2 deletions
diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el
index a5f91b0..ee8872c 100644
--- a/custom/jao-custom-notmuch.el
+++ b/custom/jao-custom-notmuch.el
@@ -335,6 +335,7 @@
:bind (:map notmuch-hello-mode-map
(("a" . jao-notmuch-refresh-agenda)
+ ("A" . jao-afio-open-mail)
("g" . jao-notmuch-refresh-hello)
("j" . jao-notmuch-jump-search)
("n" . jao-notmuch-hello-next)
diff --git a/lib/eos/jao-afio.el b/lib/eos/jao-afio.el
index 162a1b7..235aa54 100644
--- a/lib/eos/jao-afio.el
+++ b/lib/eos/jao-afio.el
@@ -202,8 +202,8 @@
(setq reset (or reset (not (get-register next)))))
(jao-afio--current-config next)
(unless (eq current next) (setq jao-afio--previous-config current))
- (when reset (jao-afio-reset))
- (run-hooks 'jao-afio-switch-hook)))))
+ (when reset (jao-afio-reset)))
+ (run-hooks 'jao-afio-switch-hook))))
(defun jao-afio-goto-main (&optional reset)
(interactive "P")