-----BEGIN PGP SIGNED MESSAGE----- On Thu, 12 Nov 1998, Vincent Murphy wrote:
> i want emacs to do font locking on my java code, but i don't want to use > cc-mode. how do i do this? > > The following > > M-x fundamental-mode > M-x font-lock-mode > > does not work. Have you tried M-x java-mode? font-lock-mode is a minor mode, which depends on a major mode. Java mode is a major mode which has an associated font-lock mode that will do the Java syntax highlighting that you want. It doesn't work in fundamental mode because Emacs has no way of knowing that you want the Java font-lock rules. noah PGP public key available at http://lynx.dac.neu.edu/home/httpd/n/nmeyerha/mail.html or by 'finger -l [EMAIL PROTECTED]' -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBNksXoYdCcpBjGWoFAQE+0AP/UzJpsHmQxv0/v2bBMtVVB4aJra5HZaWz KuTtEZqvLgLbbcF/OUPJ4yNdPkAXpTiVVb30e52ApLMIZLaJ4nlQ5PJ1wgOw3ysC Z6GJUhHtoXcutvDqKVmRb6Y4olz5lvRpsRZK7a28vgvqLVOt6YYdAQ5VMyVJiaEB XwZcWF6d6m4= =eMEn -----END PGP SIGNATURE-----