"Nathaniel Talbott" <ntalbott / rolemodelsoft.com> writes:

> For starters, I'm running XEmacs 21.1 on Windows 2000. I'm more new to emacs
> than Ruby (which means I'm REALLY new to emacs :), and I can't get syntax
> highlighting to work with the ruby mode. I've modified my .emacs file to
> include the necessary lines, and, indeed, the mode line says Ruby when I
> load a .rb file.

The problem is that the ruby-mode.el file checks for the presence of
'font-lock', but it's loaded on demand, and so isn't present at the
time the test is made.

My naive work-around is to add the following line

  (load "font-lock")

in my .emacs file (it might be called _emacs under Windows: I'm not
sure). This ensures that the test for font-lock in ruby-mode.el
passes, and everything bursts forth into glorious Technicolor.

I think there is a more elegant solution using properties under
Xemacs, but I'll leave that investigation to someone who knows their
cars from their cdrs.


Dave