From: Stinky Wizzleteet <wizzleteet@hotmail.com>
To: info-gnus-english@gnu.org
Subject: Re: "colorize" the gnus-summary buffer ?
Date: Sun, 08 Aug 2010 22:17:32 +0200 [thread overview]
Message-ID: <87lj8gdfkz.fsf@mauc.nl> (raw)
In-Reply-To: <m3y6clrwyv.fsf@gmail.com>
厚脸王 <houlianwang@gmail.com> 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
prev parent reply other threads:[~2010-08-08 20:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-03 12:33 Stinky Wizzleteet
2010-08-05 13:49 ` 厚脸王
2010-08-08 20:17 ` Stinky Wizzleteet [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lj8gdfkz.fsf@mauc.nl \
--to=wizzleteet@hotmail.com \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).