From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Remove Org and Tbl from menubar for derived mode Date: Sat, 14 Sep 2013 02:43:15 +0200 Message-ID: <20130914004315.GD28088@kuru.dyndns-at-home.com> References: <523304D4.90604@gmail.com> <764BD900-0C97-4180-824B-3CF58D6B21CC@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKdxR-0006Xz-9H for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 20:43:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKdxI-0006GX-Sl for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 20:43:29 -0400 Received: from mail-ea0-x236.google.com ([2a00:1450:4013:c01::236]:62644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKdxI-0006GT-Lm for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 20:43:20 -0400 Received: by mail-ea0-f182.google.com with SMTP id o10so914538eaj.27 for ; Fri, 13 Sep 2013 17:43:19 -0700 (PDT) Content-Disposition: inline In-Reply-To: <764BD900-0C97-4180-824B-3CF58D6B21CC@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Christian Wittern , Org Mode Mailing List Hi, On Fri, Sep 13, 2013 at 02:44:31PM +0200, Carsten Dominik wrote: > On Sep 13, 2013, at 2:28 PM, Christian Wittern 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.