From: Decebal <CLDWesterhof@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: auto-mode-alist and regular expression
Date: Wed, 14 Jan 2009 02:27:59 -0800 (PST) [thread overview]
Message-ID: <185efdc3-05ae-45c4-af14-9706cd99f275@p2g2000prf.googlegroups.com> (raw)
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?
next reply other threads:[~2009-01-14 10:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-14 10:27 Decebal [this message]
2009-01-14 11:06 ` auto-mode-alist and regular expression Juanma Barranquero
2009-01-14 11:29 ` Cecil Westerhof
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=185efdc3-05ae-45c4-af14-9706cd99f275@p2g2000prf.googlegroups.com \
--to=cldwesterhof@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.