Skip to content

Instantly share code, notes, and snippets.

@pbostrom
Created September 7, 2013 00:51
Show Gist options
  • Save pbostrom/6471839 to your computer and use it in GitHub Desktop.
Save pbostrom/6471839 to your computer and use it in GitHub Desktop.
Paredit for JSON
(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