Gnus development mailing list
 help / color / mirror / Atom feed
From: Yagnesh Raghava Yakkala <yagnesh@live.com>
To: ding@gnus.org
Subject: Re: Customize citation character
Date: Thu, 19 Jan 2012 02:58:08 +0900	[thread overview]
Message-ID: <878vl4riz3.fsf@live.com> (raw)
In-Reply-To: <87ty3tqxf7.fsf@marauder.physik.uni-ulm.de>


Modified version of Yamaoka-san snippet with Reiners' pointer 

(add-hook 'gnus-article-prepare-hook
          (lambda nil
            (let ((style "  | ")
                  (inhibit-read-only t))
              (save-excursion
                (goto-char (point-min))
                (while (re-search-forward "^[\t >]+" nil t)
                  (put-text-property
                   (match-beginning 0) (match-end 0)
                                     'display style))))))

can be further improved by calculating number of ">" in there and
placing that many "|" with different colors.

--
YYR




  reply	other threads:[~2012-01-18 17:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-18  2:42 Philipp Haselwarter
2012-01-18  3:57 ` Katsumi Yamaoka
2012-01-18  7:31   ` Reiner Steib
2012-01-18 17:58     ` Yagnesh Raghava Yakkala [this message]
2012-01-18 18:15       ` Yagnesh Raghava Yakkala
2012-01-19 19:24         ` Philipp Haselwarter
2012-01-19 21:13           ` Yagnesh Raghava Yakkala
2012-01-18  6:17 ` Martin
2012-01-18  8:48 ` Eric S Fraga
2012-01-18 10:06   ` Eric S Fraga

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=878vl4riz3.fsf@live.com \
    --to=yagnesh@live.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).