From 3afe5463be768760b071f5a55978ade7c4d40dca Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 8 Aug 2022 23:53:04 +0100 Subject: gnus: w3m-specific image toggling --- custom/jao-custom-gnus.el | 10 ++++++---- 1 file 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: -- cgit v1.2.3