bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35480: insert-wide-parentheses


From: 積丹尼 Dan Jacobson
Subject: bug#35480: insert-wide-parentheses
Date: Tue, 30 Apr 2019 09:59:57 +0800

>>>>> "JL" == Juri Linkov <juri@linkov.net> writes:
>> M-( is insert-parentheses, so
>> M-( should be insert-wide-parentheses.

JL> (define-key esc-map "(" 'insert-pair)
JL> (add-to-list 'insert-pair-alist '(?\( ?\( ?\)))

OK but now it looks like
perl -C -wple 's/\d+/chr $&/eg;'
((( ( ))
 (( ))
 ([ ])
 ({ })
 (< >)
 (" ")
 (' ')
 (` '))

So I bet just

   (add-to-list 'insert-pair-alist '(?\( ?\)))

is good enough. Anyways, I'm hoping the emacs authors will add this to
the defaults.

In fact they need to add wide versions of all those current narrow items there.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]