diff options
author | jao <jao@gnu.org> | 2022-01-20 20:24:15 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-01-20 20:24:15 +0000 |
commit | b5527e20515643e07eec2d291ebd451ef2096066 (patch) | |
tree | 8a1332fe08ea8e9a4fd28bef77a852d478a11fc4 /attic/misc.org | |
parent | 46c6ce58fc6983e7f4a67a70916ce77adf9f0be6 (diff) | |
download | elibs-b5527e20515643e07eec2d291ebd451ef2096066.tar.gz elibs-b5527e20515643e07eec2d291ebd451ef2096066.tar.bz2 |
jao-notmuch clean-ups
Diffstat (limited to 'attic/misc.org')
-rw-r--r-- | attic/misc.org | 12 |
1 files changed, 12 insertions, 0 deletions
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 |