- Subject: Re: Insert template depending on file extension.
- From: Morten Bo Johansen <mojo@xxxxxxxx>
- Date: Sat, 30 Mar 2002 21:33:14 +0100
John E. Davis <davis@xxxxxxxxxxxxx> wrote:
JED> Try something like this:
JED> define nroff_mode_hook ()
JED> {
JED> if (bobp () and eobp () and
JED> (path_extname (buffer_filename ()) == ".lt"))
JED> {
JED> insert-your-template-here
JED> }
JED> }
Great, it works fine. Thanks.
Regards,
Morten
--
"More than any other time in history, mankind faces a crossroads. One
path leads to despair and utter hopelessness. The other, to total
extinction. Let us pray we have the wisdom to choose correctly."
(Woody Allen)
--------------------------
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]