Gnus development mailing list
 help / color / mirror / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: ding@gnus.org
Subject: Summary line format and gnus-face-X
Date: Thu, 02 Aug 2012 08:31:54 +0200	[thread overview]
Message-ID: <87d3393iud.fsf@thinkpad.tsdh.de> (raw)

Hi all,

as documented in (info "(gnus)Formatting Fonts"), you can make your
summary or group buffers an angry fruit salat by using %i{...%} specs
for i being some number and creating vars gnus-face-i bound to crazy
faces.  And so I did.

Now my problem is that I used that approach to print subjects in summary
buffers using a proportional font.  Works great, except that this format
spec overrides the usual gnus summary fontification that would fontify
according to readness and score.  That only seems to apply to summary
elements not enclosed by %{...%} specs.

Can I have the best of all worlds somehow?  I mean, for the subjects I
just want to have a proportional font but the coloring should be as if
it wasn't enclosed in %5{...%}.

That's the relevant part of my config:

--8<---------------cut here---------------start------------->8---
(defface th-gnus-face-5
  '((default (:family "DeJaVu Sans")))
  "A proportional face.")

(setq gnus-face-5 'th-gnus-face-5
      gnus-summary-line-format
      "%U%R%4{┃%}%2us%4{┃%}%(%-23,23f%)%4{┃ %*%B%} %5{%s%} %3{<%&user-date;>%}\n")
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo



             reply	other threads:[~2012-08-02  6:31 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-02  6:31 Tassilo Horn [this message]
2012-09-04 22:30 ` Lars Ingebrigtsen
2012-09-05  6:38   ` Tassilo Horn
2012-09-05 13:09     ` Lars Ingebrigtsen
2012-09-05 13:27       ` Tassilo Horn
2012-09-05 16:22         ` Lars Ingebrigtsen
2012-09-05 17:10           ` Tassilo Horn
2012-09-06 13:31           ` Wolfgang Jenkner
2012-09-06 13:53             ` Lars Ingebrigtsen
2012-09-06 14:23               ` Wolfgang Jenkner
2012-09-06 14:34                 ` Lars Ingebrigtsen
2012-09-06 14:58                   ` Wolfgang Jenkner
2012-09-06 18:14                   ` Tassilo Horn
2012-09-06 18:30                     ` Lars Ingebrigtsen
2012-09-07 15:59                       ` Wolfgang Jenkner
2012-09-08  9:41                         ` Wolfgang Jenkner
2012-09-08 11:45                           ` Wolfgang Jenkner
2012-09-08 12:37                             ` Tassilo Horn
2012-09-09 13:13                               ` Wolfgang Jenkner
2012-09-09 18:54                                 ` Lars Ingebrigtsen
2012-09-15 15:24                                   ` Wolfgang Jenkner
2012-09-06 14:36                 ` Lars Ingebrigtsen
2012-09-06 14:51                   ` Wolfgang Jenkner
2012-09-06 18:29                     ` Lars Ingebrigtsen

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=87d3393iud.fsf@thinkpad.tsdh.de \
    --to=tsdh@gnu.org \
    --cc=ding@gnus.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).