guixsd-config

GuixSD configs for my systems
Log | Files | Refs

commit c670e5208a9e417fb32b6b29aefec02735cb75cc
parent cd11d7966b87bbf91df273abbb31713ed8598df5
Author: Vineet Kumar <git@vineetk.net>
Date:   Fri, 20 Nov 2026 18:48:31 +0100

files/emacs: add notmuch history clearing keybind

does the same as the notmuch-hello "clear" widget button

Diffstat:
Mepistemia/files/emacs/.config/emacs/init.el | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/epistemia/files/emacs/.config/emacs/init.el b/epistemia/files/emacs/.config/emacs/init.el @@ -719,7 +719,6 @@ ;;;;;;;;;;; (defun vin/notmuch-poll-async () "Asynchronously sync mail via mbsync, then run notmuch new." - (interactive) (message "Starting mail sync...") (let ((proc (start-process "mbsync" nil "mbsync" "-a"))) (set-process-sentinel @@ -752,13 +751,20 @@ (notmuch-search-tag '("-unread")) (notmuch-search-next-thread)) +(defun vin/notmuch-history-clear () + "Clear notmuch search history." + (interactive) + (setq notmuch-search-history nil) + (notmuch-hello-update)) + (use-package notmuch :bind (("C-c m" . 'notmuch) :map notmuch-common-keymap ("G" . 'vin/notmuch-poll-async) ("d" . 'vin/notmuch-tag-delete) - ("u" . 'vin/notmuch-tag-read)) + ("u" . 'vin/notmuch-tag-read) + ("c" . 'vin/notmuch-history-clear)) :config (run-at-time "5 min" (* 5 60) #'vin/notmuch-poll-async) :custom