jed-users mailing list

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

Re: [jed-users] modifying help menu?


On 26.09.16, Ulli Horlacher wrote:
> With jed 0.99.20 the help function has changed: 
> Esc h now calls select_menubar() instead of help_prefix()

> I would like to add my old help functions into the help menu shown by Esc h

> What is the best/supported way to do it?

> I do not want to modify popups.sl, because an upgrade would overwrite it.

In ~/.jed/jed.rc, I have:

% Menu Additions 
% --------------

autoload("fit_window", "bufutils");

define gm_load_popup_hook(menubar)
{
   menu_insert_item("Save &Buffers", "Global.&File", "Re&load", "reload_buffer");
   menu_insert_item("Save &Buffers", "Global.&File", "&New from Template", "find_template");
   menu_insert_item(6, "Global.&Edit", "Insert &Date", "insert_iso_date");
   menu_insert_item(7, "Global.&Edit", "Digraph", "digraph_cmd");
   menu_insert_item(1, "Global.&Edit.&Rectangles", "&Autoinsert", "autoinsert");
   menu_append_popup("Global.&Edit", "Con&vert Number");
   menu_insert_item(3, "Global.&Search", "Search &All (occur)", "occur");
   menu_insert_item(4, "Global.W&indows", "&Fit Window", "fit_window");
   menu_insert_item(2, "Global.S&ystem", "&Filter Region", "filter_region");
   menu_insert_item(3, "Global.S&ystem", "Shell Cmd on &Region/Buffer", "shell_cmd_on_region_or_buffer");
   menu_insert_item(4, "Global.S&ystem", "&Locate", "locate");
   menu_insert_item(5, "Global.S&ystem", "&MC", "terminal(\"mc\")");
   menu_insert_item(6, "Global.S&ystem", "&Terminal", "terminal");
   menu_insert_item(7, "Global.S&ystem", "&Process_list", "do_shell_cmd(\"ps -dl\")");
   menu_insert_item(8, "Global.S&ystem", "&Calculate", "calc");
   menu_insert_item(10, "Global.S&ystem", "Din&g", "ding");
   menu_insert_item("&Info Reader", "Global.&Help", "&SLang Html Doc", "system", "firefox /home/milde/.jed/doc/slang/slang.html &");
   menu_insert_item("&Info Reader", "Global.&Help", "D&ebian Doc", "find_debian_doc_file");
}
append_to_hook("load_popup_hooks", &gm_load_popup_hook);


Adapt to your requirements,

Günter
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


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