[M3devel] emacs config for modula 3

I.M. Ikram im_ikram at yahoo.com
Fri Dec 14 17:50:50 CET 2012


Hi. I'm another first-time poster here...

> right code to insert in .emacs to make emacs-mode work from modula3.el
> and m3font.el?  I don't seem to have it right. 

The following snippet is from my .emacs:

(add-to-list 'load-path "/path/to/modula3mode/directory")
(autoload 'modula-3-mode "modula3")
(load "m3font") ;; <--- enables syntax highlighting
(setq auto-mode-alist 
(append '(("\\.ig$" . modula-3-mode)
("\\.mg$" . modula-3-mode)
("\\.i3$" . modula-3-mode)
("\\.m3$" . modula-3-mode))
auto-mode-alist))

Copied from the docs at 
http://modula3.elegosoft.com/cm3/doc/help/cm3/gnuemacs.html
However, the indicated 'load' line is missing in those instructions.




More information about the M3devel mailing list