From: Per Abrahamsen <abraham@dina.kvl.dk>
Subject: Quote emphasis
Date: 29 Nov 1996 23:45:04 +0100 [thread overview]
Message-ID: <rjralco70v.fsf@babbage.dina.kvl.dk> (raw)
I have been experimenting with gnus-emphasis-alist in order to make
the fruit salad in the article buffer even more angry. Using emphasis
for "quote" and `stuff', 'like this' seems to work.
Should this be done by default?
Probably with some other faces than what font-lock uses.
You can try this
(setq gnus-emphasis-alist
(append gnus-emphasis-alist
'(("\\W'\\(\\w[^']*\\w\\)'\\W" 1 1 font-lock-reference-face)
("\\W\"\\(\\<[^\"]*\\>\\)\"\\W" 1 1 font-lock-string-face)
("\\W`\\(\\<[^`']*\\w\\)'\\W" 1 1 font-lock-keyword-face))))
to test it (I haven't).
Or add customize entries (like I did):
** gnus-emphasis-alist:
[ ... ]
[INS] [DEL] List:
Regexp: \W'\(\w[^']*\w\)'\W
Match group: 1
Emphasize group: 1
Face: font-lock-reference-face (show)
[-]
[INS] [DEL] List:
Regexp: \W"\(\<[^"]*\>\)"\W
Match group: 1
Emphasize group: 1
Face: font-lock-string-face (show)
[-]
[INS] [DEL] List:
Regexp: \W`\(\<[^`']*\w\)'\W
Match group: 1
Emphasize group: 1
Face: font-lock-keyword-face (show)
[-]
[INS]
[!] [?] Alist that says how to fontify certain phrases.
next reply other threads:[~1996-11-29 22:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-29 22:45 Per Abrahamsen [this message]
1996-11-30 13:12 ` Lars Magne Ingebrigtsen
1996-11-30 16:27 ` Per Abrahamsen
1996-11-30 16:51 ` Lars Magne Ingebrigtsen
1996-11-30 20:22 ` Steven L Baur
1996-11-30 23:14 ` Sudish Joseph
1996-12-01 0:16 ` Per Abrahamsen
1996-12-01 1:15 ` Sudish Joseph
1996-12-01 6:27 ` Lars Magne Ingebrigtsen
1996-12-02 20:21 ` Edward J. Sabol
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=rjralco70v.fsf@babbage.dina.kvl.dk \
--to=abraham@dina.kvl.dk \
/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).