From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14179 Path: news.gmane.org!not-for-mail From: =?utf-8?B?5Y6a6IS4546L?= Newsgroups: gmane.emacs.gnus.user Subject: Re: "colorize" the gnus-summary buffer ? Date: Thu, 05 Aug 2010 21:49:12 +0800 Organization: A poorly-installed InterNetNews site Message-ID: References: <871vafj2oy.fsf@mauc.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291956059 10273 80.91.229.12 (10 Dec 2010 04:40:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 04:40:59 +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:55 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 1PQums-0001cR-9s for gegu-info-gnus-english@m.gmane.org; Fri, 10 Dec 2010 05:40:54 +0100 Original-Received: from localhost ([127.0.0.1]:57829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQuf6-0008Nv-K2 for gegu-info-gnus-english@m.gmane.org; Thu, 09 Dec 2010 23:32:52 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!news.netfront.net!newsgate.cuhk.edu.hk!www.shinco.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 52 Original-NNTP-Posting-Host: 220.181.106.250 Original-X-Trace: www.shinco.com 1281016200 13130 220.181.106.250 (5 Aug 2010 13:50:00 GMT) Original-X-Complaints-To: news@www.shinco.com Original-NNTP-Posting-Date: Thu, 5 Aug 2010 13:50:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:/upql9Fhw0vesU36N5KS4rkXb6Q= Original-Xref: usenet.stanford.edu gnu.emacs.gnus:84608 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:27:59 -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:14179 Archived-At: 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.