From 038b642797c8e3d21ae34db1c6131e4ff336cba8 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 23 Sep 2016 15:21:53 +0200 Subject: [PATCH] Update insert-pair-alist Added a bunch of pairs. --- init.el | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/init.el b/init.el index c4ca281..7c0f70f 100644 --- a/init.el +++ b/init.el @@ -362,3 +362,118 @@ Version 2016-02-16" (if (display-graphic-p) (org-bullets-mode t)))) (global-set-key (kbd "M-(") 'æ-enclose-region) + +;; TODO: maybe add-to-list is a better way to do it +(setq insert-pair-alist + '( + (40 41) ; () + (91 93) ; [] + (123 125) ; {} + (60 62) ; <> + (34 34) ; "" + (39 39) ; '' + (96 39) ; `' + (8220 8221) ; “” + (8222 8221) ; „” + (8216 8217) ; ‘’ + (8249 8250) ; ‹› + (8250 8249) ; ›‹ + (171 187) ; «» + (187 171) ; »« + )) + +;; Other parens might be added later (in no particular order): +; ( ) +; [ ] +; { } +; ⦅ ⦆ +; +; ⦅ ⦆ +; 〚 〛 +; ⦃ ⦄ +;; 「 」 +; 〈 〉 +; 《 》 +; 【 】 +; 〔 〕 +; ⦗ ⦘ +; +; 『 』 +; 〖 〗 +; 〘 〙 +; +; +; 「 」 +; +; ⟦ ⟧ +; ⟨ ⟩ +; ⟪ ⟫ +; ⟮ ⟯ +; ⟬ ⟭ +; ⌈ ⌉ +; ⌊ ⌋ +; ⦇ ⦈ +; ⦉ ⦊ +; +; ❛ ❜ +; ❝ ❞ +; ❨ ❩ +; ❪ ❫ +; ❴ ❵ +; ❬ ❭ +; ❮ ❯ +; ❰ ❱ +; ❲ ❳ +; +; ﴾ ﴿ +; +; ⏜ ⏝ +; ⎴ ⎵ +; ⏞ ⏟ +; ⏠ ⏡ +; +; ﹁ ﹂ +; ﹃ ﹄ +; ︹ ︺ +; ︻ ︼ +; ︗ ︘ +; ︿ ﹀ +; ︽ ︾ +; ﹇ ﹈ +; ︷ ︸ +; +; 〈 〉 +; ⦑ ⦒ +; ⧼ ⧽ +; +; ﹙ ﹚ +; ﹛ ﹜ +; ﹝ ﹞ +; +; ⁽ ⁾ +; ₍ ₎ +; +; ⦋ ⦌ +; ⦍ ⦎ +; ⦏ ⦐ +; ⁅ ⁆ +; +; ⸢ ⸣ +; ⸤ ⸥ +; +; ⟅ ⟆ +; ⦓ ⦔ +; ⦕ ⦖ +; ⸦ ⸧ +; ⸨ ⸩ +; ⧘ ⧙ +; ⧚ ⧛ +;; ⸜ ⸝ +; ⸌ ⸍ +; ⸂ ⸃ +; ⸄ ⸅ +; ⸉ ⸊ +; +; ᚛ ᚜ +; ༺ ༻ +; ༼ ༽