From: David Abrahams <dave@boostpro.com>
To: ding@gnus.org
Subject: Re: variable-width font in summary buffer?
Date: Mon, 16 Mar 2009 17:37:56 -0400 [thread overview]
Message-ID: <m2ocw1rvwr.fsf@boostpro.com> (raw)
In-Reply-To: <yoij63rj41q5.fsf@remote5.student.chalmers.se>
on Sun Jul 06 2008, bojohan+news-AT-dd.chalmers.se (Johan Bockgård) wrote:
> 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,
Looks like I forgot to thank you for this. It works; thanks!
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
prev parent reply other threads:[~2009-03-16 21:37 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
2009-03-16 21:37 ` David Abrahams [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=m2ocw1rvwr.fsf@boostpro.com \
--to=dave@boostpro.com \
--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).