diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/jao-notmuch.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/net/jao-notmuch.el b/lib/net/jao-notmuch.el index c470682..7fae647 100644 --- a/lib/net/jao-notmuch.el +++ b/lib/net/jao-notmuch.el @@ -153,6 +153,8 @@ (jao-notmuch-goto-tree-buffer t) (jao-notmuch--tree-update-buffer-name))) +(defvar-local jao-notmuch--showing-images nil) + (defun jao-notmuch-show-images () (interactive) (save-window-excursion @@ -163,7 +165,13 @@ (when (looking-at-p "(hidden)") (notmuch-show-toggle-part-invisibility)) (forward-line 1) - (w3m-toggle-inline-images))))) + (setq-local jao-notmuch--showing-images + (not jao-notmuch--showing-images) + w3m-ignored-image-url-regexp + (unless jao-notmuch--showing-images + notmuch-show-text/html-blocked-images)) + (w3m-toggle-inline-images + (if jao-notmuch--showing-images t 'turnoff)))))) (defun jao-notmuch-show-ret () (interactive) |