When editing lisp code, I often end up with trailing parentheses scattered around (assuming
| is point):
(defun example-function () (let ((x (+ 1 1))) (when x (message x)| ) ))
Are there any convenience commands for fixing this? Either in core Emacs, paredit/smartparens, or other packages?
I know I can press
paredit-close-round will fix the next parenthesis, but I want to fix all of them in one command.