Fork me on GitHub
#emacs
<
2016-12-21
>
norman17:12:47

I’m looking for a function that reformats the current expression (or current top level expression) and collapses dangling parenthesis. indent-sexp (which is called from paredit-reindent-defun) does not do this. It preserves

norman17:12:37

paredit-close-round un-dangles, but it’s somewhat context-sensitive and has to be run multiple time

jfntn18:12:22

norman: lispy has something like that: special-lispy-tab

norman18:12:39

I’ll take a look - thanks

ag18:12:44

@norman maybe cider-format-edn-region and buffer?

norman19:12:39

Ah.. Dug around from there and found cider-format-defun. That seems to do the trick. I think I’ll replace M-q (paredit-reindent-defun) with that