[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Competing RegExp in auto-mode-alist (was: winmgr and howm)
From: |
Lennart Borgman |
Subject: |
Re: Competing RegExp in auto-mode-alist (was: winmgr and howm) |
Date: |
Wed, 14 Jan 2009 21:20:25 +0100 |
On Wed, Jan 14, 2009 at 10:28 AM, Sven Utcke
<utcke+news@informatik.uni-hamburg.de> wrote:
> Hi,
>
> I realised that my original subject was somewhat misleading, so I
> rephrased it. The question, however, remains:
>
> I use howm-mode <http://howm.sourceforge.jp/> to note down random
> snippets of information. By default, those files are named
> <year>-<month>-<day>-<number>.howm.
>
> So far, so well. But unfortunately this is matched by winmgr's
> default RegExp "\\.[A-Za-z]*wm$". And, even worse, winmgr-mode can
> only be switched on, but not off. Any clever idea how to handle that
> situation, short of using something like
> "\\.[A-Za-gi-z]*[A-Za-np-z]*wm$"?
>
> So what's the best way to set up auto-mode-alist? Complicated
> RegExps? Simply change the order of the RegExps? Any other ideas?
In nXhtml there is a general package majmodpri.el for this kind of
problems. It allows you to have auto-mode-alist and relatives sorted
to your taste.