From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14178 Path: news.gmane.org!not-for-mail From: Stinky Wizzleteet Newsgroups: gmane.emacs.gnus.user Subject: Re: "colorize" the gnus-summary buffer ? Date: Sun, 08 Aug 2010 22:17:32 +0200 Message-ID: <87lj8gdfkz.fsf@mauc.nl> References: <871vafj2oy.fsf@mauc.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291956053 10258 80.91.229.12 (10 Dec 2010 04:40:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 04:40:53 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Dec 10 05:40:49 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQumm-0001h3-EN for gegu-info-gnus-english@m.gmane.org; Fri, 10 Dec 2010 05:40:49 +0100 Original-Received: from localhost ([127.0.0.1]:57931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQufF-0008Sz-5M for gegu-info-gnus-english@m.gmane.org; Thu, 09 Dec 2010 23:33:01 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:2b1/f62B4UTlxTOzidaArbRTUzU= Original-Lines: 61 Original-NNTP-Posting-Host: 83.160.190.30 Original-X-Trace: 1281298650 news.xs4all.nl 22939 [::ffff:83.160.190.30]:35546 Original-X-Complaints-To: abuse@xs4all.nl Original-Xref: usenet.stanford.edu gnu.emacs.gnus:84615 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:27:48 -0500 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:14178 Archived-At: 厚脸王 writes: Hey thanks, that worked like a charm ! thx wzzl. > 8.4.5 Formatting Fonts > ---------------------- > > There are specs for highlighting, and these are shared by all the format > variables. Text inside the `%(' and `%)' specifiers will get the > special `mouse-face' property set, which means that it will be > highlighted (with `gnus-mouse-face') when you put the mouse pointer > over it. > > Text inside the `%{' and `%}' specifiers will have their normal > faces set using `gnus-face-0', which is `bold' by default. If you say > `%1{', you'll get `gnus-face-1' instead, and so on. Create as many > faces as you wish. The same goes for the `mouse-face' specs--you can > say `%3(hello%)' to have `hello' mouse-highlighted with > `gnus-mouse-face-3'. > > Text inside the `%<<' and `%>>' specifiers will get the special > `balloon-help' property set to `gnus-balloon-face-0'. If you say > `%1<<', you'll get `gnus-balloon-face-1' and so on. The > `gnus-balloon-face-*' variables should be either strings or symbols > naming functions that return a string. When the mouse passes over text > with this property set, a balloon window will appear and display the > string. Please refer to *Note Tooltips: (emacs)Tooltips, (in GNU > Emacs) or the doc string of `balloon-help-mode' (in XEmacs) for more > information on this. (For technical reasons, the guillemets have been > approximated as `<<' and `>>' in this paragraph.) > > Here's an alternative recipe for the group buffer: > > ;; Create three face types. > (setq gnus-face-1 'bold) > (setq gnus-face-3 'italic) > > ;; We want the article count to be in > ;; a bold and green face. So we create > ;; a new face called `my-green-bold'. > (copy-face 'bold 'my-green-bold) > ;; Set the color. > (set-face-foreground 'my-green-bold "ForestGreen") > (setq gnus-face-2 'my-green-bold) > > ;; Set the new & fancy format. > (setq gnus-group-line-format > "%M%S%3{%5y%}%2[:%] %(%1{%g%}%)\n") > > I'm sure you'll be able to use this scheme to create totally > unreadable and extremely vulgar displays. Have fun! > > Note that the `%(' specs (and friends) do not make any sense on the > mode-line variables. > -- --------------------- no gnus is bad news