summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-08-08 23:53:04 +0100
committerjao <jao@gnu.org>2022-08-08 23:53:04 +0100
commit3afe5463be768760b071f5a55978ade7c4d40dca (patch)
tree032b7172f66c023dfd407c734bb4dcd5edb54e19
parentfcd0ce123467343e5f7ec49011f0528af2c2298a (diff)
downloadelibs-3afe5463be768760b071f5a55978ade7c4d40dca.tar.gz
elibs-3afe5463be768760b071f5a55978ade7c4d40dca.tar.bz2
gnus: w3m-specific image toggling
-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: