Update insert-pair-alist

Added a bunch of pairs.
This commit is contained in:
Gergely Polonkai 2016-09-23 15:21:53 +02:00
parent 2165c8aa78
commit 038b642797
1 changed files with 115 additions and 0 deletions

115
init.el
View File

@ -362,3 +362,118 @@ Version 2016-02-16"
(if (display-graphic-p) (org-bullets-mode t)))) (if (display-graphic-p) (org-bullets-mode t))))
(global-set-key (kbd "M-(") 'æ-enclose-region) (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):
;
;
;
; ⦅ ⦆
;
; ⦅ ⦆
; 〚 〛
; ⦃ ⦄
;; 「 」
; 〈 〉
; 《 》
; 【 】
;
; ⦗ ⦘
;
; 『 』
; 〖 〗
; 〘 〙
;
;
; 「 」
;
; ⟦ ⟧
; ⟨ ⟩
; ⟪ ⟫
; ⟮ ⟯
; ⟬ ⟭
; ⌈ ⌉
; ⌊ ⌋
; ⦇ ⦈
; ⦉ ⦊
;
; ❛ ❜
; ❝ ❞
;
; ❪ ❫
;
; ❬ ❭
;
; ❰ ❱
;
;
; ﴿
;
; ⏜ ⏝
; ⎴ ⎵
; ⏞ ⏟
; ⏠ ⏡
;
; ﹁ ﹂
; ﹃ ﹄
; ︹ ︺
; ︻ ︼
; ︗ ︘
; ︿ ﹀
; ︽ ︾
; ﹇ ﹈
; ︷ ︸
;
; 〈 〉
; ⦑ ⦒
; ⧼ ⧽
;
; ﹙ ﹚
; ﹛ ﹜
; ﹝ ﹞
;
; ⁽ ⁾
; ₍ ₎
;
; ⦋ ⦌
; ⦍ ⦎
; ⦏ ⦐
; ⁅ ⁆
;
; ⸢ ⸣
; ⸤ ⸥
;
; ⟅ ⟆
; ⦓ ⦔
; ⦕ ⦖
; ⸦ ⸧
; ⸨ ⸩
; ⧘ ⧙
; ⧚ ⧛
;; ⸜ ⸝
; ⸌ ⸍
; ⸂ ⸃
; ⸄ ⸅
; ⸉ ⸊
;
; ᚛ ᚜
; ༺ ༻
; ༼ ༽