Hi,

On Fri, Sep 13, 2013 at 02:44:31PM +0200, Carsten Dominik wrote:
> On Sep 13, 2013, at 2:28 PM, Christian Wittern <cwitt...@gmail.com> wrote:
> 
> > 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?
> 
> Interesting question, and I do not know the answer.  Only that you
> certainly should not change the org-mode-map, because such changes
> would have effects in all Org mode buffers.

I have never defined menus, but a quick look tells me you use
define-key.  If that is correct, then can't you just redefine the Org
and Tbl menu to nil?  I believe if you do that with regular key
sequences, any existing bindings get removed.

Just a thought.

-- 
Suvayu

Open source is the future. It sets us free.

Reply via email to