help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Derived Mode 102 Keybindings and Menu


From: Stefan Monnier
Subject: Re: Derived Mode 102 Keybindings and Menu
Date: Tue, 21 Mar 2006 17:13:33 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> (easy-menu-define foo-menu foo-mode-map "Foo mode menu."
>> '("Foo"
>> [...]
>> [...]
>> ...))
>> 
>> and then in foo-mode you do

>>   (easy-menu-add foo-menu)

>  For cross-compatibility XEmacs needs a more verbose approach, including
>  passing the keymap as an argument.

I've used the above code in sml-mode and AFAIK it worked both in Emacs and
XEmacs.  So, I don't think you need "a more verbose approach" for XEmacs.


        Stefan


reply via email to

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