From 041a2b473fd38f492f8f93c91cf41c36ba2d24b4 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 17 Nov 2018 20:17:02 +0100 Subject: [PATCH] [Gnus] Remove hook to reload notmuch cache before searching We need another way to ensure the cache is always up to date. --- gnus.el | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/gnus.el b/gnus.el index dd58717..ed1a6fb 100644 --- a/gnus.el +++ b/gnus.el @@ -704,22 +704,8 @@ entry of the current mail." (nntp . gmane))) (use-package notmuch - :config (progn - ;; (bind-key "GG" 'notmuch-search gnus-group-mode-map) - - (defun db/notmuch-search-update-index (orig-fun &rest args) - "Update notmuch index before searching" - (message "Indexing new Mail...") - (shell-command "notmuch new --quiet 2>&1 | grep -v \"Note: Ignoring\"") - (message "Indexing new Mail... done.") - (apply orig-fun args)) - - (advice-add 'notmuch-search - :around #'db/notmuch-search-update-index) - (advice-add 'nnir-run-notmuch - :around #'db/notmuch-search-update-index) - - (setq notmuch-fcc-dirs nil))) + :init (progn + (setq notmuch-fcc-dirs nil))) ;;;