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, 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);

-- 
Juho Snellman

--------------------------
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]