Created
September 7, 2013 00:51
-
-
Save pbostrom/6471839 to your computer and use it in GitHub Desktop.
Paredit for JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-hook 'js-mode-hook | |
(lambda () | |
(paredit-mode 1) | |
(local-set-key "{" 'paredit-open-curly) | |
(local-set-key "}" 'paredit-close-curly) | |
(local-set-key "\M-{" 'paredit-wrap-curly) | |
(local-set-key "\M-}" 'paredit-close-curly-and-newline) | |
(local-set-key "\M-[" 'paredit-wrap-square) | |
(local-set-key "\M-]" 'paredit-close-square-and-newline))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment