summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-07-08 01:44:33 +0100
committerjao <jao@gnu.org>2021-07-08 01:44:33 +0100
commit55b2bafb0ee7f16acfb83d1f09cca524791824d0 (patch)
tree2bf24c11a6ebba4dea906685e970b699f6b27772
parent93c20635fb08e523b2df3033aebcbd13c7e4032e (diff)
downloadelibs-55b2bafb0ee7f16acfb83d1f09cca524791824d0.tar.gz
elibs-55b2bafb0ee7f16acfb83d1f09cca524791824d0.tar.bz2
better toggling of images in notmuch
-rw-r--r--lib/net/jao-notmuch.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/net/jao-notmuch.el b/lib/net/jao-notmuch.el
index 1adbe34..9aecd7d 100644
--- a/lib/net/jao-notmuch.el
+++ b/lib/net/jao-notmuch.el
@@ -128,11 +128,13 @@
(save-window-excursion
(jao-notmuch-goto-message-buffer)
(when (derived-mode-p 'notmuch-show-mode)
- (setq-local mm-w3m-safe-url-regexp nil
- notmuch-show-text/html-blocked-images nil
- shr-inhibit-images nil
- shr-blocked-images nil)
- (notmuch-refresh-this-buffer))))
+ (when (or mm-w3m-safe-url-regexp notmuch-show-text/html-blocked-images)
+ (setq-local mm-w3m-safe-url-regexp nil
+ notmuch-show-text/html-blocked-images nil
+ shr-inhibit-images nil
+ shr-blocked-images nil)
+ (notmuch-refresh-this-buffer))
+ (jao-notmuch--toggle-mime))))
;; Keeping track of unread messages in current tree view