From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64626 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Formatting summary line of '#' marked messages Date: Fri, 11 May 2007 16:25:07 +0900 Organization: Emacsen advocacy group Message-ID: References: <87wszg7vfg.fsf@nwalsh.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1178868381 20853 80.91.229.12 (11 May 2007 07:26:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 May 2007 07:26:21 +0000 (UTC) Cc: ding@gnus.org To: Norman Walsh Original-X-From: ding-owner+M13137@lists.math.uh.edu Fri May 11 09:26:20 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1HmPW7-0008JZ-0t for ding-account@gmane.org; Fri, 11 May 2007 09:26:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1HmPV9-0007jC-WA; Fri, 11 May 2007 02:25:20 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HmPV6-0007it-Hn for ding@lists.math.uh.edu; Fri, 11 May 2007 02:25:16 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1HmPV5-00059A-H7 for ding@lists.math.uh.edu; Fri, 11 May 2007 02:25:16 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HmPV4-000314-00 for ; Fri, 11 May 2007 09:25:14 +0200 Original-Received: from [66.225.201.151] (port=49799 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.63) (envelope-from ) id 1HmPV3-0006AU-IP; Fri, 11 May 2007 02:25:13 -0500 X-Hashcash: 1:20:070511:ndw@nwalsh.com::VcHC90+cTqI6tkaW:0000e01 X-Hashcash: 1:20:070511:ding@gnus.org::+YT5rgDhKEUK1wqB:000004p9 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:ZxjrB+gYecpET+FYUFdG81UIHq0= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64626 Archived-At: >>>>> In Katsumi Yamaoka wrote: >>>>>> In <87wszg7vfg.fsf@nwalsh.com> Norman Walsh wrote: >> As long as I'm asking for clues, I've been wanting to change the >> formatting of lines marked with '#' for a while now. I'd like to give >> them a more distinctive face since I most often use them for marking a >> bunch of spam to kill. >> Alas, I got hopelessly lost attempting to decipher the various summary >> mode line variables. >> Clue, please? > Currently there seems to be no option for that. I failed to notice Gnus offers the means just for that purpose. ,---- | `gnus-summary-highlight' | Summary lines are highlighted according to this variable, which is | a list where the elements are of the format `(FORM . FACE)'. If | you would, for instance, like ticked articles to be italic and | high-scored articles to be bold, you could set this variable to | something like | (((eq mark gnus-ticked-mark) . italic) | ((> score default) . bold)) | As you may have guessed, if FORM returns a non-`nil' value, FACE | will be applied to the line. `---- The following snippet makes Gnus highlight # marked summary lines. --8<---------------cut here---------------start------------->8--- (eval-after-load "gnus-sum" '(add-to-list 'gnus-summary-highlight '((memq article gnus-newsgroup-processable) . gnus-summary-high-read))) --8<---------------cut here---------------end--------------->8--- You can use any other faces other than `gnus-summary-high-read' as you like. Or should we provide the `gnus-summary-processable' face and make `gnus-summary-high-read' have it by default? Regards,