summaryrefslogtreecommitdiff
path: root/.emacs.d/init-notmuch.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/init-notmuch.el')
-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