[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wrong mode chosen
From: |
Daniel Pfeiffer |
Subject: |
Re: Wrong mode chosen |
Date: |
Mon, 18 Oct 2004 21:24:51 +0200 |
Saluton,
Richard Stallman <address@hidden> skribis:
> It seems that modes get chosen by auto-mode-alist rather than
> interpreter-mode-alist, even if the file is executable and has a
> magic number. I feel this to be wrong!
>
> Maybe you're right, but I'd like to think about it. Could you
> describe the case in which this caused trouble for you?
>
> Likewise I keep stumbling over XML files, with all kinds of misleading
> suffixes. It would be way cool if any file that starts with <?xml be
> automatically in xml-mode or html-mode.
>
> What suffixes do these XML files have, and why do they have them?
Right now I'm working on ini-mode.el which gives some basic handling, imenu,
outline and font-lock for conf files, like
var = value
var: value
var value
There are many subtle varieties of these syntaxes and also of file names. But
by far the most *.ini, *.cf, *cfg, *.conf and *.config files are like this.
But a
few however are also configuration shell scripts or xml files. I recall also
having stumbled over other XML files, not only well known suffixes like .xsd,
.xslt or .wsdl, but also app-specific ones.
Btw.: ini sounds very windows-ish, which is where this mode originated. Since
the focus is now much wider, I'm mulling a rename to conf-mode. Any thoughts
on this?
coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer
--
lerne / learn / apprends / lär dig / ucz się Esperanto:
http://lernu.net/