emacsclojurelispparedit

How to delete extra parens in Paredit mode?


I'm using Paredit in Emacs to edit Lisp code. How do I delete an extra pair of parens that I accidentally inserted? Paredit does not allow this without extra commands.

((square 5)) into (square 5)


Solution

  • This is called paredit-splice-sexp, keybinding is M-s. Take a look at the paredit cheat sheet here.