jed-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Insert template depending on file extension.


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]