From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Remove Org and Tbl from menubar for derived mode Date: Fri, 13 Sep 2013 14:44:31 +0200 Message-ID: <764BD900-0C97-4180-824B-3CF58D6B21CC@gmail.com> References: <523304D4.90604@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/signed; boundary="Apple-Mail=_84026E79-D29D-409C-835A-B2C37051B97B"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKSju-0007bi-VP for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 08:44:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKSji-0001RM-4d for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 08:44:46 -0400 Received: from mail-ee0-x229.google.com ([2a00:1450:4013:c00::229]:41456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKSjh-0001RA-TM for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 08:44:34 -0400 Received: by mail-ee0-f41.google.com with SMTP id d17so559848eek.28 for ; Fri, 13 Sep 2013 05:44:32 -0700 (PDT) In-Reply-To: <523304D4.90604@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: Christian Wittern Cc: Org Mode Mailing List --Apple-Mail=_84026E79-D29D-409C-835A-B2C37051B97B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Sep 13, 2013, at 2:28 PM, Christian Wittern = wrote: > Hi there, >=20 > 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 >=20 > (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. >=20 > 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. - Carsten >=20 > All the best and thanks in advance, >=20 > Christian >=20 > --=20 > Christian Wittern, Kyoto >=20 >=20 --Apple-Mail=_84026E79-D29D-409C-835A-B2C37051B97B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJSMwivAAoJEO+gg/nAZuwM7UIH/0WMS8XyuMLZGCQWCt9nj+Vq KMrruhhjXJotb111IIJ+3iC7Ih3Akbs0CCU6QSflkj3k4JYu1I7DEdkSe9T4GdqT Ce79PpPfAty7k6ZWIW0a6wPVKKGSuEcA96t2HrwDTYAmRkJWWtP6IIZdz6gHT+H5 qkwVNQ7/AOQHq4pq+XFxlu6g7r+6OCTHwGSyU6EIo9gvqbhONKiPnucL+gComb2s /w66gmp3Qfnu5JS4Xr1ACvKvdVUPrMNxArL44xl1ULbBzYmEAGqpc83ikWAx1HOP jNcstdLqBuJg1vnhGf4DYHEXp1X3gWWHhrCqHRJeohPoLAIV9s+c2w/lGn4VS+8= =lT1m -----END PGP SIGNATURE----- --Apple-Mail=_84026E79-D29D-409C-835A-B2C37051B97B--