From 9af5239971df315d1403733eb1e38039375ffdc9 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 30 Jun 2022 15:30:17 +0100 Subject: notmuch nits --- init.el | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 9b8fed3..c558d7f 100644 --- a/init.el +++ b/init.el @@ -941,18 +941,6 @@ (interactive) (jao-recoll (format "dir:%s " jao-org-notes-dir))) -(defun jao-recoll-open-with-notmuch (fname) - (let ((id (with-temp-buffer - (insert-file fname) - (goto-char (point-min)) - (when (re-search-forward "[Mm]essage-[Ii][Dd]: <]+\\)>?" - nil t) - (match-string 1))))) - (when id (notmuch-show (concat "id:" id))))) - -(with-eval-after-load "org" - (org-link-set-parameters "message" :follow #'jao-recoll-open-with-notmuch)) - ;;;; consult-recoll (jao-load-path "consult-recoll") @@ -985,7 +973,6 @@ (use-package consult-recoll :init (setq consult-recoll-open-fns '(("application/pdf" . jao-open-doc) - ("message/rfc822" . jao-recoll-open-with-notmuch) ("text/html" . jao-recoll-open-html)) consult-recoll-search-flags nil consult-recoll-format-candidate #'jao-recoll-format) @@ -1847,9 +1834,9 @@ ;; (transient-get-suffix 'jao-transient-pdf-view '(0 -1)) ;;; Email -(setq jao-afio-mail-function 'notmuch) +(setq jao-afio-mail-function 'gnus) (require 'jao-custom-email) -(require 'jao-custom-notmuch) +;; (require 'jao-custom-notmuch) ;;; Shells and terms ;;;; shell modes -- cgit v1.2.3