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

2013-09-15 Thread Christian Wittern
On 2013-09-14 13:42 , Jambunathan K wrote: (add-hook 'org-mode-hook (lambda nil (local-unset-key [menu-bar Org]))) Thanks, if I do this for my derived mode, it does exactly what I need! Christian -- Christian Wittern, Kyoto

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

2013-09-14 Thread Jambunathan K
Christian Wittern cwitt...@gmail.com writes: 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 Try this (add-hook

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

2013-09-13 Thread Christian Wittern
Hi there, 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

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

2013-09-13 Thread Carsten Dominik
On Sep 13, 2013, at 2:28 PM, Christian Wittern cwitt...@gmail.com wrote: Hi there, 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

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

2013-09-13 Thread Thorsten Jolitz
Christian Wittern cwitt...@gmail.com writes: I wonder if anybody here has any advice? Not really an advice, just a hint: doesn't org-mode itself use easy-menu to remove outline from the menu bar? ,--- | 9 matches for easy-menu in

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

2013-09-13 Thread Christian Wittern
On 2013-09-13 22:09, Thorsten Jolitz wrote: 9 matches for easy-menu in buffer: org.el |5312:(easy-menu-remove outline-mode-menu-heading) |5313:(easy-menu-remove outline-mode-menu-show) |5314:(easy-menu-remove outline-mode-menu-hide)) Yeah, I have seen that.

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

2013-09-13 Thread Suvayu Ali
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

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

2013-09-13 Thread Suvayu Ali
On Sep 13, 2013, at 2:28 PM, Christian Wittern cwitt...@gmail.com wrote: (define-key org-mode-map [menu-bar Org] nil) Oops, Christian already tried that! I guess it's time for me to go to bed :-p. -- Suvayu Open source is the future. It sets us free.

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

2013-09-13 Thread Nick Dokos
Christian Wittern cwitt...@gmail.com writes: Hi there, 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