From b5527e20515643e07eec2d291ebd451ef2096066 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 20 Jan 2022 20:24:15 +0000 Subject: jao-notmuch clean-ups --- attic/misc.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'attic/misc.org') diff --git a/attic/misc.org b/attic/misc.org index 39b1cc8..3aac8c7 100644 --- a/attic/misc.org +++ b/attic/misc.org @@ -891,3 +891,15 @@ ("C-c B" . bookmark-set))) #+end_src +* notmuch + #+begin_src emacs-lisp + (defun jao-notmuch--show-hidden-html () + (when (save-excursion + (goto-char (point-min)) + (re-search-forward "^\\[ text/html (hidden) \\]" nil t)) + (jao-notmuch--toggle-mime))) + + (defun jao-notmuch-show-prefer-html () + (add-hook 'notmuch-show-hook #'jao-notmuch--show-hidden-html)) + + #+end_src -- cgit v1.2.3