Arc Forumnew | comments | leaders | submitlogin
2 points by akkartik 5367 days ago | link | parent

Just vim in one window, arc+rlwrap in another, browser+firebug in a third. With so little code there has been less reason to scale up the development environment.

I like not having to press shift to type parens[1], so I switched () with [] in lisp mode.

You may find this tip useful for emacs: http://akkartik.name/lisp.html#sexp-nav

[1] due to a history of RSI



1 point by evanrmurphy 5366 days ago | link

I like not having to press shift to type parens[1], so I switched () with [] in lisp mode.

Clever solution. The only problem in Arc would be the prevalence of [] for anonymous one-variable functions. Maybe switch ( and ) with 9 and 0, respectively, so that you shift to get the numbers instead of the parens?

-----

1 point by akkartik 5366 days ago | link

So far they haven't been that prevalent. I don't want to overoptimize this too much. It takes time to rewire one's muscle memory, and needing shift for some digits but not others smacks of over-cleverness. There isn't that much difference between the frequency of square brackets and digits. Parens on the other hand are easily an order of magnitude more common.

-----

1 point by evanrmurphy 5366 days ago | link

Yes, you're right. I had misread what you wrote earlier and thought that you simply overloaded the [] keys with (). That you actually swapped them is a fine solution indeed.

-----

1 point by evanrmurphy 5366 days ago | link

Thanks for the sexp-nav tip. Have you used paredit? It has something similar for traversing sexps, but I guess it's simpler because there's only forward and backward. (Makes up for this with all its other tools for manipulating sexps though.)

-----

1 point by akkartik 5366 days ago | link

No I haven't actually used emacs in a few years. I might go back to it at some point.

-----

1 point by evanrmurphy 5362 days ago | link

Thanks for prompting me to check out rlwrap! This substantially increases my quality of arc repling in bash.

-----