John A. Zinky writes:
> From: "John A. Zinky" <jzinky_at_bbn.com>
> To: "Albert L. Ting" <alt_at_vlibs.com>
> Subject: Re: Highlit19 for STk (for emacs19 not xemacs)
> Date: Wed, 15 Jan 1997 10:56:38 -0500
>
>
> > Perhaps I missing something but basic scheme-mode with font-lock enabled
> > works well for me. Even highlights class definitions, thanks to David Fox.
> >
> > Albert
>
> How do you enable font-lock under scheme-mode with David Fox's
> additions? ... maybe my highlit19 stuff is getting in the way.
>
> thanks
> zinky
Font-lock is now the "standard" for emacs. It has more features than
hilit19 and it's easier to use, IMHO. Most font-lock stuff are defined
directly in the associated emacs library file, thereby making the author of
the mode support his/her own highlight regex's. For scheme-mode, it's
defined in font-lock since multiple modes uses the same highlight regex's.
David Fox added one more highlight regex to support <class> names, common
in STKlos.
Put something like below in your .emacs file.
Albert
----------------------------------------
(setq auto-mode-alist (cons '("\\.stklos$" . scheme-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.stk$" . scheme-mode) auto-mode-alist))
(require 'font-lock)
(global-font-lock-mode t) ;; enable font lock for all modes
;; remove comments below to enable lazy-lock, delays highlight for large files.
;(require 'lazy-lock)
;(add-hook 'font-lock-mode-hook 'turn-on-lazy-lock)
--
Albert L. M. Ting * mail:alt_at_vlibs.com * phone:408-487-5327 * fax:408-453-3500
VLSI Libraries Incorporated, 2077 Gateway Place, Suite 300, San Jose, CA 95110
Received on Wed Jan 15 1997 - 21:37:52 CET