From d2dc1d248f5798c78dad4c68e18e806ffe5683b6 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 9 Jun 2023 11:56:42 +0800 Subject: gnus: bind 'e' to expire articles in group mode * gnus-conf.el (durand-gnus-expire): Just call `gnus-agent-expire` with parameters t, nil, and t respectively. (gnus-group-mode-map): Bind `durand-gnus-expire` to 'e' to conveniently expire articles. --- gnus-conf.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gnus-conf.el') diff --git a/gnus-conf.el b/gnus-conf.el index 6d6a3ce..6f2f927 100644 --- a/gnus-conf.el +++ b/gnus-conf.el @@ -155,7 +155,13 @@ (add-hook 'durand-mail-update-hook #'notmuch-poll) +(defun durand-gnus-expire () + "Expire all articles." + (interactive) + (gnus-agent-expire t nil t)) + (define-key gnus-group-mode-map (vector 117) #'durand-mail-update) +(define-key gnus-group-mode-map (vector 101) #'durand-gnus-expire) (define-key global-map (vector ?\C-c ?g) 'gnus) ;;; Use notmuch to search mails -- cgit v1.2.3-18-g5258