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.


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]