Fork me on GitHub
#spacemacs
<
2018-07-28
>
Chase16:07:17

sometimes when i'm browsing lisp stuff i see mention of parinfer and paredit. i'm having a hard time figuring out if spacemacs is using any of these for their clojure layer and/or lisp state. the doc rabbit hole led me to evil-lisp-state using smartparens. Is this the spacemacs equivalent of parinfer/paredit? Or do people still add those tools to their workflow on top of what default spacemacs provides?

Chase16:07:28

actually just remembered a helpful source that was given to me earlier: https://practicalli.github.io/spacemacs/structured-editing/ Seems smartparens is our version of those other tools. carry on, folks!

✔️ 4
practicalli-johnny07:07:57

@U9J50BY4C Glad you found this helpful, I will do some more work on it today. In summary, smartparens is the default package that supports all languages in Spacemacs. So as well as all lisp languages, it also support closing & matching for things like tags in HTML. Paredit was the original structural editing mode just for lisps, however, it is not actively maintained. The Clojure layer does actually include paredit, however no keybindings are defined, so you either have to use commands via SPC SPC or add your own keybindings to dotspacemacs/user-config, preferably using hooks on the Clojure mode. Parinfer is relatively new and self describes as a bit of an experiment. It does provide a bit more indentation automation which for some is great and for others quite confusing or annoying. https://shaunlebron.github.io/parinfer/