News for hackers. Stuff that matters.
Re:Paredit 25 released (after 8 years) by ahmedalsudani on Saturday November 26, 2022 @01:14PM (#33755099)
Paredit made a massive difference when I was writing Lisp. It does take some getting used to, but pretty sure it was a net positive after a week of use.

I actually started enabling it when writing other languages (Python/C++) to see if it could do its magic there.

Re:Paredit 25 released (after 8 years) by the-lazy-guy on Saturday November 26, 2022 @04:59PM (#33757228)
You probably know that, but there is smartparens mode which does similar magic to non-lisp languages: https://github.com/Fuco1/smartparens
Re:Paredit 25 released (after 8 years) by qorrect on Monday November 28, 2022 @08:58AM (#33773694)
I did not know that!
Re:Paredit 25 released (after 8 years) by ahmedalsudani on Monday November 28, 2022 @10:43AM (#33774964)
In recent years, I have been spoiled by doom-emacs (and previously spacemacs). They have made everything work out of the box for me to such an extent that I mostly don't know what's active--I've just learned the right leader combination to get what I need done.

It turns out I've been using smartparens without realizing--just opened a file and checked the active modes to find out.

The keys I've learned are (using evil):

- [Visual mode] S -> surround by a pair

- [Visual mode] d <char> -> delete pair of <char>

- [Visual mode] c <c1> <c2> -> replace pair of <c1> with pair of <c2>

Those along with C-M-k to kill a sexp and % to go to the other end of a pair have been all I need for my work (the vast majority C/C++ and Python).

One thing I keep putting off is figuring out a way to jump to the opening/closing quotes. For those I still have to go medieval if there's any nesting.