From 6d9db1481189363769ccaf206377378f3d8aaaa3 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 15 Aug 2022 12:30:53 +0100 Subject: gnus: cleaning From HTML also in summary buffer --- custom/jao-custom-gnus.el | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/custom/jao-custom-gnus.el b/custom/jao-custom-gnus.el index 47883c3..2256603 100644 --- a/custom/jao-custom-gnus.el +++ b/custom/jao-custom-gnus.el @@ -1,6 +1,5 @@ ;; gnus configuration -*- lexical-binding: t -*- - ;;; Feature switching vars (defvar jao-gnus-use-local-imap nil) (defvar jao-gnus-use-leafnode nil) @@ -489,12 +488,18 @@ "The Guardian: " "Aeon | a world of ideas: " ": ")) - "\\|unofficial mirror of [^:]+: ")) + "\\|[gq].+ updates on arXiv.org: ")) (defun gnus-user-format-function-f (headers) (let* ((from (gnus-header-from headers)) - (from (gnus-summary-extract-address-component from))) - (replace-regexp-in-string jao-gnus--news-rx "" from))) + (from (gnus-summary-extract-address-component from)) + (from (replace-regexp-in-string jao-gnus--news-rx "" from))) + (if (string-prefix-p "