Re: Commits completed
On Fri, Sep 02, 2005 at 01:26:31PM +0200, Jérôme Marant wrote:
> Quoting Remi Vanicat <remi.vanicat@gmail.com>:
>
> > By the way, the simpler solution for this is to add
> > (load-file "/etc/emacs/site-start.d/50ocaml-mode.el")
> > in the .emacs
>
> I'd vote for this.
>
> > [...]
> >
> > > In the current version in svn the README of tuareg-mode reads:
> > >
> > > tuareg-mode is now automatically loaded on all files with filename
> > > extension .ml\w?. If the debian package "ocaml-mode", which provides
> > > an alternative emacs mode for (O)Caml files, is installed together
> > > with the tuareg-mode package then tuareg takes precedence. Users who
> > > wish to overwrite this behaviour should consult the instuctions given
> > > in the file /usr/share/doc/ocaml-mode/README.Debian.
> > >
> >
> > By the way the emacsen-startup file don't do that yet (is this the
> > file I sould look to? never bother to learn how to make an debian
> > emacs package). Note also that the ocaml-mode is configured to run on
> > the extension "\\.ml[iylp]?$" may be we could uniformized those
> > extansion.
>
> What is not uniform?
Remi is right. tuareg-mode has the startup code (steming from the
upstream recommandations):
(setq auto-mode-alist (cons '("\\.ml\\w?" . tuareg-mode) auto-mode-alist))
This should be \\.ml[iylp]?$ as for ocaml-mode. Or is there some filename
pattern missing?
-Ralf.
--
Reply to: