On Thu, Feb 24, 2005 at 11:14:01AM -0600, Hareesh Nagarajan wrote: > On Thu, 24 Feb 2005 11:27:59 +0100, Marcin Bielewicz > <[EMAIL PROTECTED]> wrote: > > > Yippie! Now how do I make 'font-lock-mode' set by default? At this > > > point in time, I open a Tex file and then type M-x-font-lock-mode for > > > syntax highlighting. > > > > Try: > > > > (global-font-lock-mode t) > > I've tried that, but it gives an error in XEmacs - ``Symbol's function > definition is void: global-font-lock-mode"
I believe the global-font-lock-mode function is only available in emacs, not Xemacs (can't check this for sure since I don't have or use Xemacs myself). > How must one turn on font lock globally in XEmacs?!! You have to enable it individually for each mode. In your case, (add-hook 'tex-mode-hook 'turn-on-font-lock) should work. Hope that helps, Toby -- PhD Student Quantum Information Theory group Max Planck Institute for Quantum Optics Garching, Germany email: [EMAIL PROTECTED] web: www.dr-qubit.org -- [email protected] mailing list
