- Subject: Re: Insert template depending on file extension.
- From: "John E. Davis" <davis>
- Date: Sat, 30 Mar 2002 15:10:51 -0500
Morten Bo Johansen <mojo@xxxxxxxx> wrote:
> foo.mm -> load nroff_mode
> foo.ms -> load nroff_mode
> foo.lt -> load nroff_mode + template
>
>As it is now the template just loads with the mode and
>therefore is loaded with all three file extensions.
Try something like this:
define nroff_mode_hook ()
{
if (bobp () and eobp () and
(path_extname (buffer_filename ()) == ".lt"))
{
insert-your-template-here
}
}
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2002 date index]
[2002 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]