Fork me on GitHub
#emacs
<
2020-12-31
>
vemv10:12:11

anyone has a command that duplicates a line, while doing an effort to not unbalance parentheses? a naive duplication would also duplicate closing parentheses: )))) easily breaking code so I'm looking for something that given a line like this a b c))) inserts <newline><indentation>a b c. and given a line like this: let [a 42 inserts <newline><indentation>a 42 (i.e. skip let [, because that would unbalance parentheses)

yuhan10:01:32

Lispy has a lispy-kill command which does this

vemv13:01:39

thanks! I'll check it out

motform13:01:24

I think the same is also found in smartparens/evil-smartparens, if you are still looking.

vemv19:01:23

I have it in my TODO list yeah. The smartparens hybrid functions look useful thanks!