From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/6297 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.gnus.general Subject: Re: highlight-problem Date: 21 May 1996 16:53:32 +0200 Sender: grossjoh@dusty.informatik.uni-dortmund.de Message-ID: References: <199605211158.NAA00562@burg.studfb.unibw-muenchen.de> Reply-To: Kai Grossjohann NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.52) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035146774 3238 80.91.224.250 (20 Oct 2002 20:46:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:46:14 +0000 (UTC) Cc: ding@ifi.uio.no Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id IAA19932 for ; Tue, 21 May 1996 08:58:47 -0700 Original-Received: from floyd.informatik.uni-dortmund.de (floyd.informatik.uni-dortmund.de [129.217.4.40]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Tue, 21 May 1996 16:53:45 +0200 Original-Received: from dusty.informatik.uni-dortmund.de by floyd.informatik.uni-dortmund.de with SMTP (Sendmail 8.7.5/UniDo 3.11) id QAA29916; Tue, 21 May 1996 16:53:34 +0200 (MES) Original-Received: by dusty.informatik.uni-dortmund.de id AA29420; Tue, 21 May 96 16:53:33 +0200 Original-To: Stefan Janke In-Reply-To: Stefan Janke's message of Tue, 21 May 1996 13:58:34 +0200 Original-Lines: 43 X-Mailer: September Gnus v0.89/Emacs 19.30 Xref: main.gmane.org gmane.emacs.gnus.general:6297 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:6297 >>>>> On Tue, 21 May 1996 13:58:34 +0200, Stefan Janke >>>>> said: Stefan> I do use the hl-319 for highlighting and it works very good Stefan> with most modes, but with the sgnus-packet I dont get such a Stefan> good result as with the Gnus-5.1 from emacs-19.30. [...] Gnus has built-in highlighting. The best approach to highlighting with Gnus would be to do away with font-lock or hilit and use the built-in way. It's not all that complicated, really, if you know about faces. The general idea is that you have a description of what groups should be printed with which faces, and you assign properties (like bold, underline, background color, foreground color) to these faces. Here's how you make a face and change its properties: (make-face 'my-small-group-face) (make-face-bold 'my-small-group-face) (set-face-foreground 'my-small-group-face "green") Here's how you create a description that sez groups with less than 20 unread articles should be printed with my-small-group-face: (setq gnus-group-highlight (list '( (< unread 20) . my-small-group-face ) ;; add more lines here at your leisure ) ) Type M-x apropos RET face RET to get a list of functions that deal with faces. Type C-h v gnus-group-highlight RET to get a description of what parameters you can use to define the faces for the groups. For a good description of what gnus-group-highlight can do, go to the node `Group Highlighting' in the SGnus manual. hth, kai -- Life is hard and then you die.