[M3devel] emacs config for modula 3

Dragiša Durić dragisha at m3w.org
Sat Dec 15 09:13:11 CET 2012

In my .emacs:

(load-file "~/.emacs.d/modula3.el")

(setq auto-mode-alist
    (append '(("\\.[im][3g]$" . modula-3-mode))
(setq completion-ignored-extensions
    (append '(".mo" ".mx" ".mc" ".io" ".ix") completion-ignored-extensions))

And I just copied modula3.el from cm3 distribution. No m3font needed for syntax highlighting,  at least in my Aquamacs. I don't see m3font anywhere, it's some old version, maybe… Anyway - it just works.


Divided by a common language

Dragiša Durić
dragisha at m3w.org

On Dec 14, 2012, at 5:50 PM, I.M. Ikram wrote:

> 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