[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Remove Org and Tbl from menubar for derived mode

From: Nick Dokos
Subject: Re: [O] Remove Org and Tbl from menubar for derived mode
Date: Sat, 14 Sep 2013 00:42:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Christian Wittern <address@hidden> writes:

> Hi there,
> I am developing a mode derived from org for special editing and
> browsing purposes.  I will add my own menu to the menubar and would
> like to remove the menus added by org, "Org" and "Tbl", in order not
> to confuse my users, who will be Emacs newbies in most cases.
> I tried several things like
> (define-key org-mode-map [menu-bar Org] nil)
> or
> (define-key global-map [menu-bar Org] nil)
> and some other combinations of this line of thought, but nothing
> succeeded in removing the stuff.
> I wonder if anybody here has any advice?
> All the best and thanks in advance,

The elisp manual says (sec. 22.17.5, "The Menu Bar"):

|    A local keymap can cancel a menu bar item made by the global keymap
| by rebinding the same fake function key with `undefined' as the
| binding.  For example, this is how Dired suppresses the `Edit' menu bar
| item:
|      (define-key dired-mode-map [menu-bar edit] 'undefined)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]