emacs lisp mode, mailing list?

Pascal Bourguignon pjb at informatimago.com
Fri Jun 22 07:51:31 UTC 2018



> On 22 Jun 2018, at 02:24, Ken Tilton <kentilton at 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__




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/pro/attachments/20180622/f048ba4f/attachment.html>


More information about the pro mailing list