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

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

Re: How to complete \] when I input \[ .


From: Chat
Subject: Re: How to complete \] when I input \[ .
Date: Sat, 16 Aug 2008 08:56:29 -0700
User-agent: Emacs Gnus

"xiaopeng hu" <huxiaopengstat@gmail.com> writes:

> I mean \[ \].  thanks2008/8/16 David Hansen <span 
> dir="ltr"><mailto:david.hansen@gmx.net></span>
> On Sat, 16 Aug 2008 21:09:46 +0800 xiaopeng hu wrote:
>
>> When I input \[ , how to complete \] and put point at middle?
>>
>
> Should work:
>
> (global-set-key (kbd "[") #&#39;insert-pair)
>
> David

I find this kind of behavior irritating when editing existing code.
Have you looked at expand package? Seems to do it only when there is nothing
else on the line following point.


reply via email to

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