nedit flavors confusion
AVKuznetsov
kuzn at htsc.mephi.ru
Tue Feb 19 09:25:49 CET 2008
Hi
>
> I use nedit in a number of contexts which are quite different, so I use
> the -import feature to get the various flavors I want. This works fine except
> for one thing: when I create a new macro , the macro is saved to nedit.rc,
> adding a flavor enhancement to nedit.rc, which the other flavors don't want.
> It seems to me that if you start nedit with '-import', it should save new
> macros to the import file. Is there a feature in nedit which does equivalent?
>
> thanks,
You can try following.
Remove macros for flavors from nedit.rc and put them to files
some-flavor.nm, other-flavor.nm, etc.
Add to autoload.nm a macro like
define get_flavor_macros {
list = "some-flavor\n"\
"other-flavor\n"
......
choice = list_dialog("Load macros", list, "Load", "Cancel")
if(list_dialog_button != 1)
return
if(choice == "")
get_flavor_macros()
else
load_macro_file("/path/to/flavor/macro/files/" choice ".nm")
}
Bind this macro to an entry of the Macro menu or the WindowBackground menu.
You can bind macros contained in flavors to some keys.
If these macros will have identical names,
the single set of keys will provide different "flavor-specified" actions.
Alexey Kuznetsov
More information about the Discuss
mailing list