* 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
* Re: auto-mode-alist and regular expression
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
0 siblings, 1 reply; 3+ messages in thread
From: Juanma Barranquero @ 2009-01-14 11:06 UTC (permalink / raw)
To: Decebal; +Cc: help-gnu-emacs
> But I would like something like:
> ("/adm[a-z]{3}\\'" . shell-script-mode)
Does
("/adm[a-z]\\{3\\}\\'" . shell-script-mode)
work?
Juanma
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: auto-mode-alist and regular expression
2009-01-14 11:06 ` Juanma Barranquero
@ 2009-01-14 11:29 ` Cecil Westerhof
0 siblings, 0 replies; 3+ messages in thread
From: Cecil Westerhof @ 2009-01-14 11:29 UTC (permalink / raw)
To: help-gnu-emacs
2009/1/14 Juanma Barranquero <lekktu@gmail.com>:
>> But I would like something like:
>> ("/adm[a-z]{3}\\'" . shell-script-mode)
>
> Does
>
> ("/adm[a-z]\\{3\\}\\'" . shell-script-mode)
>
> work?
It does. I should have tought about it myself. :-{
Thanks.
--
Cecil Westerhof
^ 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).