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

Arnaud Sevin Arnaud.Sevin at obspm.fr
Tue Sep 14 13:28:16 EDT 2010


Hi,

> What do you mean by "mapping" - it is not a standard Emacs (or Mac) term.

I don't know exactly how explain that... Maybe "binding" is the good one (I'm sorry, I'm French)

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)

>> (define-key osx-key-mode-map [S-down-mouse-1] 'mouse-buffer-menu)
>> (define-key osx-key-mode-map [down-mouse-1] 'mouse-buffer-menu)
>> (define-key osx-key-mode-map [down-mouse-2] 'mouse-yank-at-click)
>> (define-key osx-key-mode-map [down-mouse-3] 'mouse-set-region)
>> (define-key osx-key-mode-map [double-down-mouse-3] 'mouse-save-then-kill)

It's not the good binding that I want to use... I try a lot of things and I'm a little lost that this time.

> I wouldn't change the bindings for simple mouse clicks.

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

> The `ns-emulate-three-button-mouse' setting might be relevant.

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.

> Also, some of this might interest you:
> http://www.emacswiki.org/emacs/AquamacsEmacsCompatibilitySettings

I have already take a look on it but I don't see something useful for my problem.

I hope to be more clear...

Thanks,

Arnaud


More information about the MacOSX-Emacs mailing list