Hacker News new | past | comments | ask | show | jobs | submit login

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.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: