next up previous index
Next: WEB mode: a hands-on Up: Annotating Codes with FWEB Previous: A larger FWEB example

Working with the Emacs WEB mode

The Emacs WEB mode has been concocted by Mark Motl and Bart Childs, both from the Department of Computer Science at TEXas A&M University. The documentation for the WEB-mode can be found on

/afs/ovpit.indiana.edu/common/teTeX/doc/web-mode/webm-man-600dpi.ps.gz
or
http://beige.ucs.indiana.edu/PostScript/web-mode/webm-man-600dpi.ps.gz

Unfortunately there appears to be no info document that describes the mode.

While installing the mode on the OVPIT AFS cell I have modified its ``Limbo'' section a little so as to make it work in the first place. Other than that it's very much a vanilla system that I have transferred from TEXas A&M. The mode itself is installed in

/afs/ovpit.indiana.edu/common/gnu/share/emacs/site-lisp/web-mode
where you will find both the Emacs Lisp file, web-modeX.el, and the byte-compiled file, web-modeX.elc. The original TEXas WEB mode file is there too: web-modeX.el.ORIG.

The mode is configured into the Emacs environment in the defaults.el file, which lives in

/afs/ovpit.indiana.edu/common/gnu/share/emacs/20.2/lisp.

This is what the configuration looks like:

(setq load-path
   (nconc load-path
      (list 
       "/afs/ovpit.indiana.edu/common/gnu/share/emacs/site-lisp/web-mode")))
(setq auto-mode-alist (cons '( "\\.web$" . web-mode) auto-mode-alist))
(autoload 'web-mode "web-modeX" "load a WEB mode")
As you can see from this, whenever you visit a file with extension .web, the WEB mode is loaded automatically.


next up previous index
Next: WEB mode: a hands-on Up: Annotating Codes with FWEB Previous: A larger FWEB example
Zdzislaw Meglicki
2001-02-26