Created
February 27, 2013 10:15
-
-
Save sebastibe/5046871 to your computer and use it in GitHub Desktop.
auto-close any kind of brackets
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
;; setting for auto-close brackets for electric-pair-mode regardless of current | |
;; major mode syntax table | |
(setq electric-pair-pairs '( | |
(?\" . ?\") | |
(?\{ . ?\}) | |
) ) | |
;; auto-close any kind of brackets | |
(add-hook 'after-change-major-mode-hook 'electric-pair-mode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment