]> git.earman.xyz Git - emacsinit.git/commitdiff
Cleanup electric pairs
authorrush <rearman@r717.net>
Thu, 9 Jul 2026 14:50:31 +0000 (10:50 -0400)
committerrush <rearman@r717.net>
Thu, 9 Jul 2026 15:25:32 +0000 (11:25 -0400)
init.el

diff --git a/init.el b/init.el
index d17f5942ab79bfa865ab6a5b6956944b6d54ef9d..3fec5b3c92f4a3fc25744055a2b758312957014a 100644 (file)
--- a/init.el
+++ b/init.el
@@ -922,15 +922,13 @@ If in org-mode, call `org-end-of-line' first."
 (global-prettify-symbols-mode t)\r
 \f\r
 ;;; Parens\r
-(setq electric-pair-pairs '((?\" . ?\")\r
-                           (?\‘ . ?\’)\r
-                           (?\“ . ?\”)\r
-                           (?\{ . ?\})\r
-                           (?\< . ?\>)))\r
+\r
 (customize-set-variable 'show-paren-delay 0) ; Has to be set with customize, or the mode has to be toggled\r
 \r
 (setq show-paren-style 'expression)\r
 \r
+(with-eval-after-load electric-pair-mode\r
+  (add-to-list 'electric-pair-pairs '(?\{ . ?\}) t)) ; Usually don't want the mode, but want curlies when I do\r
 \f\r
 ;;; Help\r
 \r