8-bit b.us

 
« Back to blog

Insert Picture of Yak-Bunny Chimera

If the intersection of Emacs and Plan 9 fans includes more than just myself, know this: I have implemented Acme-style mouse chording in Emacs: acme-mouse.el. Use it like so:

(require 'acme-mouse) 

There’s no way to turn it off, unless you manually rebind all the mouse keys. Here’s the current behavior:

  • Left + mid = cut
  • Left + right = paste
  • Cut followed by paste = copy (keeping the modification state intact)
  • Right = find file or string under cursor or selected text
  • Middle = bring up major-mode menu (since exec’ing highlighted text doesn’t make sense in Emacs)

I’ve tried to make selections behave like Acme, and not like stock Emacs. So, pasting highlights the pasted text and delete-selection-mode and transient-mark-mode are both turned on. Selecting text does not copy it to the X11 clipboard. You’ve got to cut or copy for that.

There’s some known weirdness when clicking outside the Emacs window, and I have no idea if this works in console mode, and it’s probably doesn’t work on OS X. But Apple mice are useless anyway, so no big loss.

Enjoy.

Loading mentions Retweet

Comments (0)

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    Connect    twitter