Date: Sun, 15 Feb 1998 23:40:10 GMT From: Scott Mitchell <rsm@acm.org> To: "Sean J. Schluntz" <schluntz@clicknet.com> Cc: questions@FreeBSD.ORG Subject: Re: Question about GNU emacs. Message-ID: <199802152340.XAA10173@valis.goatsucker.org> In-Reply-To: <40376417@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
Sean J. Schluntz said: >I'm looking for someone who has the setup files needed to get emacs >(when running under X) to colorize code as you are typing. I know v19 >comes with the capability but unforatunatly I don't have a priner handy >to look through the docs. > >I'm looking for the setup files that will colorize C, sh, and HTML code. > >Thanks for your help! > >- -Sean I think someone already mentioned the hilit19 mode in Emacs. However, I would suggest moving to XEmacs -- I personally find it much easier to use than GNU Emacs -- and using font-lock mode. This will colorise just about anything. It might even work under recent versions of GNU Emacs, you'll have to try it and see. My .emacs has the following: (setq font-lock-auto-fontify t) (setq font-lock-use-colors t) (setq font-lock-use-fonts nil) (setq font-lock-use-maximal-decoration t) (require 'font-lock) Which loads font-lock mode and has it automatically colorise any buffer it knows how to deal with. HTH, Scott -- =========================================================================== Scott Mitchell | PGP Key ID |"If I can't have my coffee, I'm just <scott@dcs.qmw.ac.uk> | 0xE8A64271 | like a dried up piece of roast goat" QMW College, London, UK | | -- J. S. Bach. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802152340.XAA10173>