all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* auto-mode-alist and regular expression
@ 2009-01-14 10:27 Decebal
  2009-01-14 11:06 ` Juanma Barranquero
  0 siblings, 1 reply; 3+ messages in thread
From: Decebal @ 2009-01-14 10:27 UTC (permalink / raw)
  To: help-gnu-emacs

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?


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-01-14 11:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-14 10:27 auto-mode-alist and regular expression Decebal
2009-01-14 11:06 ` Juanma Barranquero
2009-01-14 11:29   ` Cecil Westerhof

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.