[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] Recognizing '.t' files as perly
From: |
J. Chris Coppick |
Subject: |
Re: [vile] Recognizing '.t' files as perly |
Date: |
Tue, 22 Jan 2008 10:26:38 -0800 |
User-agent: |
Thunderbird 2.0.0.0 (Macintosh/20070326) |
Steven Lembark wrote:
> Odd thing: my #!.*perl and *.pm files show up with
> "perlmode"; *.t files don't.
>
> define-majormode perlmode
> remove-submode perl cindent
> ~with define-submode perlmode
> preamble "^#!.*perl"
> suffixes "\\.(pm|t)$"
> ~endwith
>
> Checking modes.doc, there aren't any examples of
> dealing with multiple suffixes for a given mode
> (examples show mixing a preamble with a single
> suffix "\\.pl$"). I've also tried
>
> suffixes "\\.\(pm|t\)$"
>
> without any luck: I keep ending up in "confmode"
> for my perl test code.
This works for me I think:
define-majormode html
~with define-submode html
suf '\.\(html\|HTML\|htm\|HTM\|dodo\)$'
~endwith
Chris