emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Suvayu Ali
Subject: Re: [O] Remove Org and Tbl from menubar for derived mode
Date: Sat, 14 Sep 2013 02:43:15 +0200
User-agent: Mutt/1.5.21 (2012-12-30)

Hi,

On Fri, Sep 13, 2013 at 02:44:31PM +0200, Carsten Dominik wrote:
> On Sep 13, 2013, at 2:28 PM, Christian Wittern <address@hidden> 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

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