logoalt Hacker News

mekenyesterday at 10:05 PM3 repliesview on HN

> I do wish there were an easier way to move in the ]}]})))}-ness of block ends though.

I’m not quite sure what this means. How is it different/worse than all parens..?

fyi I use paredit and just hit ) and it moves me past any kind of paren/bracket. But even without that you can just hit left and right..?


Replies

everforwardtoday at 3:32 AM

They are a pain if they get unbalanced if you aren’t using paredit. Like if I vi delete the last line of a function out of habit it’s a pain to get them back in the right order.

It’s easier if everything is parens, just hit paren til the errors are gone.

show 1 reply
acdwtoday at 3:25 AM

I use Emacs's built-in structural editing bindings, which doesn't have the auto-move-past any kind of paren/bracket thing. Maybe I could add that in.

But I was talking about like, when refactoring, I'll maybe change something from a list to a vector, and I have to change the delimiters at front and back. Or, where electric-pair does do the move-past-all-parens thing when I just spam ), it doesn't do that with ]}]}]]}}]})).

show 2 replies
drob518today at 1:28 AM

Exactly. Paredit for the win.