![](https://secure.gravatar.com/avatar/9e2504e0b74e5384af09ce8a660afac4.jpg?s=120&d=mm&r=g)
22 Jun
2018
22 Jun
'18
7:51 a.m.
On 22 Jun 2018, at 02:24, Ken Tilton <kentilton@gmail.com> wrote:
I looked at coding up mouse commands myself but just out of curiosity and gave up without even trying. But I am sure it would be doable.
It is very easy to do. Just bind mouse events like any other key chord. down-mouse-1 mouse-1 -2 for middle and -3 for left button. You can of course combine it with modifiers: C-M-mouse-1 = Control Meta left button click. (local-set-key (kbd "C-M-<mouse-1>") (lambda () (interactive) (insert "Mice!"))) -- __Pascal J. Bourguignon__