emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: Christian Wittern <cwittern@gmail.com>,
	Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Remove Org and Tbl from menubar for derived mode
Date: Sat, 14 Sep 2013 02:43:15 +0200	[thread overview]
Message-ID: <20130914004315.GD28088@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <764BD900-0C97-4180-824B-3CF58D6B21CC@gmail.com>

Hi,

On Fri, Sep 13, 2013 at 02:44:31PM +0200, Carsten Dominik wrote:
> On Sep 13, 2013, at 2:28 PM, Christian Wittern <cwittern@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	other threads:[~2013-09-14  0:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-13 12:28 Remove Org and Tbl from menubar for derived mode Christian Wittern
2013-09-13 12:44 ` Carsten Dominik
2013-09-14  0:43   ` Suvayu Ali [this message]
2013-09-14  0:44   ` Suvayu Ali
2013-09-13 13:09 ` Thorsten Jolitz
2013-09-13 23:36   ` Christian Wittern
2013-09-14  4:42 ` Nick Dokos
2013-09-14  4:42 ` Jambunathan K
2013-09-16  1:24   ` Christian Wittern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130914004315.GD28088@kuru.dyndns-at-home.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=cwittern@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).