#paredit — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #paredit, aggregated by home.social.
-
I don't know if the paredit project is frozen but, for what it's worth:
-
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
win vim style binds often mean to go to the next sibling node. but i'm having to spam that and some amount ofhorlto get to where i want to go. when writing code i don't think in words or characters. when i hitji often mean to go to the next statement or expression. -
thoughts on #paredit upon first look: Nice. i especially like the bindings of C-M-p and C-M-n. don't like how it rebinds C-left and C-right because i actually use those sometimes to move around, but the new functionality they have is useful and i can just rebind that to M-left and M-right. might actually add this to my #emacs config. for now i will go to bed
-
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!
-
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)
``` -
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_
-
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 🙁
-
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.
-
You can have some of #paredit powers in other languages with #puni : https://github.com/AmaiKinono/puni #emacs
-
@bjc yeah, I disabled #paredit and the problem's gone. Thanks again for the hint 🙂
I see that there have been recent updates to paredit upstream. They even have a new website: http://paredit.org/
And there's a version 27 beta. I think I'll check if I can reproduce the problem in that version when I get some time.
-
-
New #paredit release… after 8 years 🤯
-
Scheme Refactoring Catalog https://idiomdrottning.org/scheme-refactoring #texts #programs #aesthetics #scheme #paredit