(defun ek/search-set-directory ()



Suppose I copy the first line which is not balanced, then smartparen won't allow me to add ).
I can add it by using C-q )

Wonder if there's a better alternative?

1 Answer 1


No, that’s exactly what C-q is designed for.

If you want a better way to insert defuns, then use yasnippet (or one of the many other similar packages) instead of copy and paste. This will let you avoid ever inserting unbalanced parens in the first place.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.