I had some commands that I use often, and I didn't want to add buttons for them because some of the outlines I work with have too many buttons already. It turns out that it's easy to add your own menus. Maybe this is already documented somewhere, but anyway here is the way.
1. Copy the entire *@menus* tree from LeoSettings.leo to myLeoSettings.leo. 2. After the last @menu node, add a new *@menu *node with the name you want. I call mine *Local*. 3. Add a new *@item* node under your *@menu* node with a command you want to invoke. You can insert a "&" if you want to designate an accelerator key. Use the other *@menu* and *@item* nodes as a guide. 4. Restart Leo. Your new menu will appear after the standard menus in the menu bar. You don't really have to put it at the end; the new menu can go anywhere in the tree you like. I just think it's better to keep the order of the main menus as close as possible to Leo's standard arrangement. The commands referred to in 3) are minibuffer commands. Example: *z-open-freewin*. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/1e74625a-a4a7-4ca0-812c-4da7f56a4801n%40googlegroups.com.
