[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
auto-mode-alist and regular expression
From: |
Decebal |
Subject: |
auto-mode-alist and regular expression |
Date: |
Wed, 14 Jan 2009 02:27:59 -0800 (PST) |
User-agent: |
G2/1.0 |
Because files with names like 'adm[a-z]{3}' (admapp, admenv,
admchk, ...) really are shell-scripts, I have in my auto-mode-alist:
("/adm[a-z]*\\'" . shell-script-mode)
But I would like something like:
("/adm[a-z]{3}\\'" . shell-script-mode)
The problem is that this not work.
Offcourse I could do something like:
("/adm[a-z][a-z][a-z]\\'" . shell-script-mode)
But I would prefer a neater solution. Is this possible?
- auto-mode-alist and regular expression,
Decebal <=