Just like humans, AI agents really struggle to get the parentheses in #Clojure properly balanced. Only #Paredit is always right in this regard.

i've only ever seen proper structural editing with lisps. in emacs you have things like paredit. and i get it, parsing lisp is trivial, text wrapped in pairs of parantheses are your parse nodes. but we have treesitter. we can do so much more.

i could just write code and not care about syntax at all. i shouldn't ever have to fight it. and my editor should be a parse tree editor, not a text editor. text just isn't my interface most of the time. if i'm writing prose, maybe. but usually, i'm not.

when i hit w in vim style binds often mean to go to the next sibling node. but i'm having to spam that and some amount of h or l to get to where i want to go. when writing code i don't think in words or characters. when i hit j i often mean to go to the next statement or expression.

#lisp #paredit #emacs #vim #treesitter

what a relief #nix telling me about unmatched parens and not #paredit
Hey #Emacs #Gnome #Paredit people, what binding do you use for the paredit-backward-* commands since `C-M-<left>` and `C-M-<right>` are used by Gnome to switch workspaces?

If manipulating syntax trees counts as a form of structural editing then all editors that support lisp are technically structural editors.

/hj

With paredit (or smartparens, etc) this becomes less of a half-joke -- the "tree" always remains valid!

#lisp #paredit #structureeditor

For a while now my `eval-expression` in Emacs was broken and I never bothered to investigate.. Hitting RET in the minibuffer didn't evaluate the expression and instead inserted a newline.

Turns out paredit binds RET in it's keymap to `paredit-RET`.

This fix worked for me:
```
(define-key paredit-mode-map (kbd "RET") nil)
```

Source: https://old.reddit.com/r/emacs/comments/17k6pu4/m_aka_mx_evalexpression_does_nothing_upon_hitting/kg4q52f/

#emacs #paredit

What other reason do you need to use #emacs ?

#paredit could be the just enough reason. It is too powerful.

Don't edit text, that is too 21 century. Edit Abstract Syntax Trees 😘

https://www.youtube.com/watch?v=D6h5dFyyUX0&lc=UgxpTA3yt-xea2L3XFl4AaABAg.A2nIxXNhy9pA3GBwFeBS6_

Emacs Rocks! Episode 14: Paredit

YouTube

How do you make paredit work when editing elisp in Org mode's code blocks?

It's like I don't have paredit at all in code blocks. Structural editing doesn't work at all. I'm back to editing characters 🙁

#emacs #orgmode #paredit #scheme #elisp #lisp

Spending a lot of time in Scheme. I think I'm finally at the point where retraining my fingers to use paredit makes sense. My first attempts spiraled into swearing sessions since it doesn't let you unbalance parens. I get why it does this but it was a bit much while trying to get used to sexps.

#programming #emacs #lisp #scheme #guile #paredit

Structural Editing, a Guide for the Perplexed - Paulus Esterhazy

https://diode.zone/videos/watch/4f2037b5-d734-4b95-ab45-eb546a6ff85c

Structural Editing, a Guide for the Perplexed - Paulus Esterhazy

A presentation about structural editing (like paredit), by Paulus Esterhazy, at the Emacs Berlin meetup, February 2017.

PeerTube