[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Font attributes with font-lock-add-keywords()
From: |
Johan Bockgård |
Subject: |
Re: Font attributes with font-lock-add-keywords() |
Date: |
Tue, 08 Jul 2008 20:24:37 +0200 |
User-agent: |
Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) |
Nordlöw <per.nordlow@gmail.com> writes:
> How do I extend the following call to font-lock-add-keywords() with
> face/font attributes such as bold, italic etc?:
>
> (font-lock-add-keywords
> nil `(("(\\(lambda\\>\\)"
> (0 (progn (compose-region (match-beginning 1) (match-end
> 1)
> ,(make-char 'greek-iso8859-7
> 107))
> nil)))))
>
> Do I have to first define a face or can I do this inline?
(font-lock-add-keywords
nil `(("(\\(lambda\\>\\)"
(1 (progn (compose-region
(match-beginning 1) (match-end 1)
,(make-char 'greek-iso8859-7 107)
'decompose-region)
'(:weight bold))))))
--
Johan Bockgård