logo       

Font-lock in Aquamacs 1.1: msg#00065

emacs.macintosh.osx

Subject: Font-lock in Aquamacs 1.1

Hi,

I try to get highlighting via font-lock-mode to work in Aquamacs like this:

(add-hook 'text-mode-hook
(lambda ()
(font-lock-add-keywords nil
'(("italic" 0 italic)))))

Now when I load a text file containing "italic" this string is not
displayed using the italic face. If I check the text properties via the
menu entry (edit/text properties/describe properties) it says "fontified".

font-lock-mode is on, I used font-lock-fontify-buffer to make sure that
the buffer *is* fontified. However, "italic" sits there quietly humming
and is displayed just as normal text is (helvetica something). The
font-lock-keywords look ok to me, albeit a bit over-specified:

font-lock-keywords is a variable defined in `font-lock.el'.
Its value is
(t
(("italic" 0 italic))
("italic"
(0 italic)))


Even selecting the word with the mouse and then using edit/text
properties/face/italic does not change its appearance.

Is there something basic I'm missing here?

Thanks for your help.

--
Christian
---------------------------- Info -----------------------------
List Post: <mailto:macosx-emacs@xxxxxxxxxxxxxxxxx>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise