Here's what I've got...
The first line insures that where I put my rebol.el file is in the
load path, it loads the file, requires it (whatever that's worth I
don't know exactly), then adds the hook and associates .r files.

(setq load-path (cons "/usr/lib/xemacs/site-lisp" load-path))
(load "rebol")
(require 'rebol)
(add-hook 'rebol-mode-hook (lambda () (font-lock-mode 1)))
(setq auto-mode-alist
      (cons (cons "\\.r\\'" 'rebol-mode) auto-mode-alist))
))

Sterling

> Hello sterling,
> 
> Tuesday, May 16, 2000, 7:15:44 PM, you wrote:
> 
> 
> src> print emacs-mode: read http://www.rebol.org/rebol.el
> 
> Thank you.
> 
> Now I'm not this good at emacs, the program is very good, but i
> cannot figure out where to put the rebol.el file and how to
> include/start it in emacs.
> 
> I tried:
> ESC-x load-file <path>rebol.el
> (add-hook 'rebol-mode-hook 'turn-on-font-lock)
> 
> neither one works, may be because this isn't the right way?
> 
> Regards, Fredrik Bergstrom

Reply via email to