[plt-scheme] Does anyone have non-standard keybindings for OS X that they would like to share?

From: Anthony Cowley (acowley at seas.upenn.edu)
Date: Mon Jun 1 09:47:13 EDT 2009

On Mon, Jun 1, 2009 at 8:14 AM, Grant Rettke<grettke at acm.org> wrote:
> Does anyone have non-standard keybindings for OS X that they would
> like to share?

Not intrinsically OS X-specific, but the only additions I always make
are chords for comment-out and uncomment (with semicolons) a block of
selected text. The one I wish I had (from emacs) is a "reformat"
command that I could hit comment text with to reformat a run of text
to 80 character width lines, but I've never gotten around to figuring
that out.

(keybinding "d:semicolon"
            (lambda (editor event)
              (send
               (send editor get-keymap)
               call-function
               "comment-out"
               editor event #t)))

(keybinding "c:d:semicolon"
            (lambda (editor event)
              (send
               (send editor get-keymap)
               call-function
               "uncomment"
               editor event #t)))


Posted on the users mailing list.