help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Competing RegExp in auto-mode-alist (was: winmgr and howm)


From: Sven Utcke
Subject: Competing RegExp in auto-mode-alist (was: winmgr and howm)
Date: Wed, 14 Jan 2009 10:28:41 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

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?

Thanks

Sven
-- 
  ___ _  _____ ___   Dr.-Ing. Sven Utcke                    ___  ___ _____   __
 / __| |/ / __| __|  phone: +49 40 899-8-5317              |   \| __/ __\ \ / /
| (_ | ' <\__ \__ \  fax  : +49 40 899-4-5317              | |) | _|\__ \\ V / 
 \___|_|\_\___|___/  http://www.desy.de/~utcke    (to come)|___/|___|___/ |_|


reply via email to

[Prev in Thread] Current Thread [Next in Thread]