jed-users mailing list

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

Re: How do I add a mode?


On Wed, 2004-01-07 at 13:33, Juho Snellman wrote:
> On Wed, Jan 07, 2004 at 06:50:36AM -0500, Jeremy Cowgar wrote:
> > in my .jedrc, but I have not been able to make makemode.sl work, because
> > of the add_mode_for_extension ... Makefile does not have one. I have
> > searched the libfuncs.txt to see if I can find a different function to
> > use with no luck.
> 
> Try something like this:
> 
> static define turn_on_make_mode() {
>     variable name = buffer_filename();
>     if (strcmp(path_basename(name), "Makefile") == 0) {
>         make_mode();
>     }
> }
> 
> add_to_hook("_jed_find_file_after_hooks", &turn_on_make_mode);	

Thank you, that worked beautifully. I am new to using Jed and still have
to learn what can be done and what cannot.

Thanks again,

Jeremy



--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]