[plt-scheme] mzscheme readline paren matching.

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Jan 21 13:43:28 EST 2010

On Jan 21, David Brown wrote:
> Speaking of terminal windows, does anyone have any idea how difficult
> it would be to enhance the readline support to be able to match
> parens.  I fired up Gambit the other day and discovered how helpful it
> is to have paren matching at the REPL.

This is an option that you should set in your .inputrc file -- just
adding

  set blink-matching-paren   on

You can even add things like this, which is very useful:

  # insert parens
  "\e(": "()\C-b"

And you can put the whole thing in a mzscheme-specific block:

  $if mzscheme
  ...stuff...
  $endif

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the users mailing list.