> I have just installed redhat linux v5 and am trying to get xemacs to display
> colour syntax for modes such as html, java and c. I was wondering if I need
> to install further packages or what configuration needs to be done for
> colour (color) syntax to work for these modes and others.
> 
> Thanks for any help
> 
> Alex
> 
> 
> -- 
> [snip]

Hello Alex,

I don't think you need to install other packages. To activate 
syntax-coloring for the current buffer, type M-x font-lock-mode
If you'd like syntax-coloring automatically enabled when you visit, say,
a .c file, you can put the following in your .emacs:

(setq c-mode-hook '(lambda () (font-lock-mode)))

You can substitute c-mode in the above with java or html.
I personally like to have:

(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)

in my .emacs to make color decoration default for all modes.

Hope these help.

Regards,
Stelios.


-- 
 "Men of lofty genius are most active
        when they are doing the least work".
                           -- Leonardo da Vinci


PGP signature

Reply via email to