summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--custom/jao-custom-gnus.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/custom/jao-custom-gnus.el b/custom/jao-custom-gnus.el
index 732c358..47883c3 100644
--- a/custom/jao-custom-gnus.el
+++ b/custom/jao-custom-gnus.el
@@ -647,10 +647,12 @@
(save-window-excursion
(gnus-summary-select-article-buffer)
(save-excursion
- (setq jao-gnus--images (not jao-gnus--images))
- (if jao-gnus--images
- (gnus-article-show-images)
- (gnus-article-remove-images))))
+ (if (and jao-afio-use-w3m (fboundp 'w3m-toggle-inline-images))
+ (w3m-toggle-inline-images)
+ (setq jao-gnus--images (not jao-gnus--images))
+ (if jao-gnus--images
+ (gnus-article-show-images)
+ (gnus-article-remove-images)))))
(jao-gnus-browse-html)))
;;;; remove html in From: