|
Re: Font-lock in Aquamacs 1.1: msg#00069emacs.macintosh.osx
Am 24.08.2007 14:41 schrieb Jochem Huhmann: > Hi Christian! > > On 2007-08-24, at 13:59, Christian Kirsch wrote: > >> Am 24.08.2007 13:49 schrieb Jochem Huhmann: >>> If you try >>> >>> M-x customize-face RET italic RET >>> >>> and look at the sample text, is it italic? >>> >> When I look at the list of faces, italic is very much italic ;-) >> >> To answer your question: yes. > > Hmm, Ok. I thought you might have had a default font with no italics > available... > > I've now tried your approach with a plain CVS-Emacs: Same problem, it > doesn't work. Looks like there's something fishy with your approach > and not with Aquamacs... > > The newsgroup comp.emacs may be a good place to ask. It was. The correct syntax for this seems to be (font-lock-add-keywords 'text-mode '(("bla" 0 'italic))) i.e. you have to quote the face name. The documentation of font-lock-add-keywords uses unquoted face names (as does font-lock-keywords. So maybe somebody should fix either the documentation or the code :- -- 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: Font-lock in Aquamacs 1.1: 00069, Jochem Huhmann |
|---|---|
| Next by Date: | Updating tramp to version 2.1.10 in Aquamacs: 00069, Richard Morse |
| Previous by Thread: | Re: Font-lock in Aquamacs 1.1i: 00069, Jochem Huhmann |
| Next by Thread: | Updating tramp to version 2.1.10 in Aquamacs: 00069, Richard Morse |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |