I am using paredit. It terminates ( and [ and " fine, but does not close the { in any modes. How can i configure it to do this too? I have emacs24.

1 Answer 1


The commands are defined, but not bound to a key by default. You can add them to the paredit map with this:

(eval-after-load 'paredit
     (define-key paredit-mode-map (kbd "{")
     (define-key paredit-mode-map (kbd "}")

You may prefer to add them to particular programming mode keymaps, rather than the paredit-mode-map; just modify accordingly.

Your Answer

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