Gnus development mailing list
 help / color / mirror / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: ding@gnus.org
Subject: Re: variable-width font in summary buffer?
Date: Sun, 06 Jul 2008 14:49:06 +0200	[thread overview]
Message-ID: <yoij63rj41q5.fsf@remote5.student.chalmers.se> (raw)
In-Reply-To: <87mykv7kxz.fsf@mcbain.luannocracy.com>

David Abrahams <dave@boostpro.com> writes:

> on Sat Jul 05 2008, Miles Bader <miles-AT-gnu.org> wrote:
>
>> It shouldn't be that hard if gnus maintains lets you add
>> text-properties to the summary-buffer format string. If it does, you
>> could add display properties like (space :align-to COLUMN) instead of
>> using spaces for padding.
>
> That's an interesting idea. Do you have any pointers that might help
> me discover how to do that? I'm a longtime emacs user but this sounds
> like a bit of a stretch for me to figure out on my own.

There are several ways to do this, like

  (defvar my-align-foo (propertize " " 'display '(space :align-to 50)))

then

  (setq gnus-summary-line-format "[...] %~(form my-align-foo)@%s\n")

or

  (defun gnus-user-format-function-align-foo (dummy) my-align-foo)
  (setq gnus-summary-line-format "[...] %u&align-foo;%s\n")

-- 
Johan Bockgård




  reply	other threads:[~2008-07-06 12:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-05 12:48 David Abrahams
2008-07-06  3:09 ` Miles Bader
2008-07-06  3:25   ` David Abrahams
2008-07-06 12:49     ` Johan Bockgård [this message]
2009-03-16 21:37       ` David Abrahams

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=yoij63rj41q5.fsf@remote5.student.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    --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).