GNU Info

Info Node: (efaq)Deleting menus and menu options

(efaq)Deleting menus and menu options


Next: Turning on syntax highlighting Prev: Modifying pull-down menus Up: Common requests
Enter node , (file) or (file)node

How do I delete menus and menu options?
=======================================

   The simplest way to remove a menu is to set its keymap to `nil'.
For example, to delete the `Words' menu (Note: Modifying pull-down
menus), use:

     (define-key global-map [menu-bar words] nil)

   Similarly, removing a menu option requires redefining a keymap entry
to `nil'.  For example, to delete the `Forward word' menu option from
the `Edit' menu (we added it in Note: Modifying pull-down menus), use:

     (define-key global-map [menu-bar edit forward] nil)


automatically generated by info2www version 1.2.2.9