[OS X Emacs] Aquamacs 2.1 and mouse classic emacs mapping

David Reitter david.reitter at gmail.com
Tue Sep 14 14:47:57 EDT 2010


On Sep 14, 2010, at 1:28 PM, Arnaud Sevin wrote:
> 
> I don't know exactly how explain that... Maybe "binding" is the good one (I'm sorry, I'm French)

OK!

> Since I switch to 2.1, for example, there is a pop-up menu then I make a right-click (mouse-3) instead of mouse-save-then-kill.
> (like when you install Emacs for the first time without editing the .emacs)

I think you'll want to customize `osx-key-mode-mouse-3-behavior' and leave the direct bindings alone.
You can just set that to `mouse-save-then-kill'.

> 
> Ok, but I need to know if I can have the simple mouse clicks binding but I want to keep cmd-C, cmd-V, cmd-T, cmd-N...

Yes, the above change will give you that.
> 
> I want to keep crtl-click for right-click, it's more something like that:
> (define-key osx-key-mode-map [down-mouse-2] 'mouse-yank-at-click)
> (define-key osx-key-mode-map [down-mouse-3] 'mouse-save-then-kill)
> (define-key osx-key-mode-map [double-down-mouse-3] 'kill-region)
> 
> But I don't manage double left-click or mouse selection and I don't know how to do it.

Yes, because of selection and drag behavior, you don't want to change down-mouse-1 etc.

mouse-2 is already bound to mouse-yank-at-click.  

Double-clicking is included in the mouse-save-then-kill functionality, I think.


--
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