<div dir="ltr"><div>(it looks like my first attempt to sent this yesterday did not went throughs so I am re-sending this message).</div><div><br></div>Currently 'down-mouse-3' shows popup menu. In the mode I am frequently use I would like to re-define it to do something else. I looked at FAQ and other discussions and it looks like there is no easy way to do that. FAQ discusses how I can switch back to mouse-3 to its vanilla Emacs behavior:<div><br></div><div>(define-key osx-key-mode-map [down-mouse-3] nil)</div><div><br></div><div>But this is not what I want. I would like to stay with Aquamacs default OSX key/mouse binding and customize just this one. Some other solutions suggested elsewhere I tried, also does not work:</div><div><br></div><div>(setq osx-key-mode-mouse-3-behavior 'my-function) <br></div><div><p>(custom-set-variables</p><p> '(osx-key-mode-mouse-3-behavior 'company-coq-toggle-definition-overlay))</p></div><div><p style="font-size:12.8px">(define-key osx-key-mode-map [down-mouse-3] 'my-function)</p><p style="font-size:12.8px"><span style="font-size:12.8px">Any suggestions?</span><br></p></div><div><br></div></div>