From: rush Date: Thu, 9 Jul 2026 14:50:31 +0000 (-0400) Subject: Cleanup electric pairs X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=b8a51b3c7ce6864d224ca4034527dfd82774b130;p=emacsinit.git Cleanup electric pairs --- diff --git a/init.el b/init.el index d17f594..3fec5b3 100644 --- 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) ;;; Parens -(setq electric-pair-pairs '((?\" . ?\") - (?\‘ . ?\’) - (?\“ . ?\”) - (?\{ . ?\}) - (?\< . ?\>))) + (customize-set-variable 'show-paren-delay 0) ; Has to be set with customize, or the mode has to be toggled (setq show-paren-style 'expression) +(with-eval-after-load electric-pair-mode + (add-to-list 'electric-pair-pairs '(?\{ . ?\}) t)) ; Usually don't want the mode, but want curlies when I do ;;; Help