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.


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, privacy policy and cookie policy

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