|
Font-lock in Aquamacs 1.1: msg#00065emacs.macintosh.osx
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> |
|---|---|---|
| Previous by Date: | Re: Proggy? Howto get Aquamacs in vanilla state?: 00065, David Reitter |
|---|---|
| Next by Date: | Re: Font-lock in Aquamacs 1.1: 00065, Jochem Huhmann |
| Previous by Thread: | Proggy? Howto get Aquamacs in vanilla state?i: 00065, cons spam |
| Next by Thread: | Re: Font-lock in Aquamacs 1.1: 00065, Jochem Huhmann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |