Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

is there a way to interchange ( to [ ? I have RSI.

P.S. Not keyboard mapping please.



    (defun square-bracket-reader (stream char)
      (declare (ignore char))
      (read-delimited-list #\] stream t))
    (defun use-square-bracket-readtable ()
      (set-macro-character #\[ #'square-bracket-reader)
      (set-macro-character #\] (get-macro-character #\) nil)))


thanks!


DrScheme (PLT scheme's IDE) automatically translates [ and ] to ( and ) where appropriate. It's very handy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: