[OS X Emacs] ECB context menu in Aquamacs
David Reitter
david.reitter at gmail.com
Wed Sep 28 16:16:48 EDT 2011
On Sep 28, 2011, at 3:30 PM, Ngoc Dao wrote:
>
> How to open ECB context menu in Aquamacs? Is there a way to disable
> Aquamacs default context menu? Or is there a way to tell ECB to use
> other way to open its context menu?
Pretty much all key bindings in Aquamacs are bound in osx-key-mode-map (see Aquamacs FAQ).
The mouse button bindings aren't any different.
Press C-h k, then the right mouse button (over an Aquamacs window).
This should bring up a help screen that explains that this key is called `down-mouse-3', and that it is bound to a function described as this:
> (osx-key-mode-down-mouse-3 EVENT &optional PREFIX)
>
> Activate context menu, when `osx-key-mode-mouse-3-behavior' is
> set to `aquamacs-popup-context-menu' or nil
Looking up the documentation for this customization variable doesn't bring up anything useful, but we can undo the key binding (see Aquamacs FAQ, probably) using define-key:
(define-key osx-key-mode-map [down-mouse-3] nil)
Try it - I couldn't start ECB to try it myself.
--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!
More information about the MacOSX-Emacs
mailing list