From owner-freebsd-questions Thu Feb 19 11:24:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA07469 for freebsd-questions-outgoing; Thu, 19 Feb 1998 11:24:07 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from valis.goatsucker.org (dialup-port3.dcs.qmw.ac.uk [138.37.88.233]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA07434 for ; Thu, 19 Feb 1998 11:23:57 -0800 (PST) (envelope-from rsm@acm.org) Received: (from scott@localhost) by valis.goatsucker.org (8.8.7/8.8.7) id XAA10173; Sun, 15 Feb 1998 23:40:10 GMT (envelope-from scott) Date: Sun, 15 Feb 1998 23:40:10 GMT Message-Id: <199802152340.XAA10173@valis.goatsucker.org> From: Scott Mitchell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Sean J. Schluntz" CC: questions@FreeBSD.ORG Subject: Re: Question about GNU emacs. In-Reply-To: <40376417@toto.iv> X-Mailer: VM 6.31 under 20.2 XEmacs Lucid Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 | 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