summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-08-27 09:53:48 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-08-27 09:53:48 -0700
commit2e45a7672c693ef43cfba9b8cd8df92844215500 (patch)
tree0fd297878f05b058d7ec17be086061220f29e1d5
parent689ea43d19fd2bf672979521d93d7bddf08e7a19 (diff)
downloaddotfiles-2e45a7672c693ef43cfba9b8cd8df92844215500.tar.gz
add spw/notmuch-show-with-remote-images
-rw-r--r--.emacs.d/init-notmuch.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/.emacs.d/init-notmuch.el b/.emacs.d/init-notmuch.el
index c2e0465a..ef1590ee 100644
--- a/.emacs.d/init-notmuch.el
+++ b/.emacs.d/init-notmuch.el
@@ -146,6 +146,8 @@ Two ways to read:
(define-key notmuch-show-mode-map "\C-cgf"
#'spw/notmuch-show-filter-thread-patches)
+(define-key notmuch-show-mode-map "\C-cgi"
+ #'spw/notmuch-show-with-remote-images)
;;;; Commands
@@ -410,6 +412,12 @@ Two ways to read:
subject-filter
" and not subject:'Re:' and not subject:'Info received')"))))
+(defun spw/notmuch-show-with-remote-images ()
+ (interactive)
+ (setq-local notmuch-show-text/html-blocked-images nil
+ notmuch-multipart/alternative-discouraged '("text/plain"))
+ (notmuch-show-refresh-view))
+
;;;; Startup