[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to delete item from menu bar
From: |
Tim Johnson |
Subject: |
Re: How to delete item from menu bar |
Date: |
Fri, 26 May 2006 18:01:38 -0000 |
User-agent: |
slrn/0.9.8.0 (Linux) |
On 2006-05-26, Kevin Rodgers <ihs_4664@yahoo.com> wrote:
> Tim Johnson wrote:
>> I'd like to delete an item from the menu bar.
>> It may or it may not be created by an easy-menu function.
>>
>> Specifically, the item "Scheme" in scheme-mode.
>>
>> How may I do that?
>
> (define-key scheme-mode-map [menu-bar scheme] nil)
Yes. That did it.
I did find that 'easy-menu-remove-item *does* work for menu
items created with 'easy-menu-define
Example: Menu "Foos", items "Foo1", "Foo2", ....
(easy-menu-remove-item nil '("Foo") "Foo1") ;; remove item
(easy-menu-remove-item nil '() "Foo") ;; remove menu
Thanks Kevin
tj
--
Tim Johnson <tim@johnsons-web.com>
http://www.alaska-internet-solutions.com