auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Wrap dollars around active region


From: Florêncio Neves
Subject: Re: [AUCTeX-devel] Wrap dollars around active region
Date: Tue, 4 Jun 2013 17:30:19 -0400

I am trying to say that whoever uses electric-pair-mode probably wants
electric dollar signs and this should work automatically
out-of-the-box, instead of requiring rebinding $ or setting one extra
AUCTeX option.

I now realize that when the region is active, electric-pair-mode wraps
the region with the corresponding delimiter.  Why not drop
TeX-insert-dollar altogether and let $ be bound to
self-insert-command?

Thanks,
F.



On 6/4/13, Tassilo Horn <address@hidden> wrote:
> Florêncio Neves <address@hidden> writes:
>
>> A slightly unrelated comment: currently the dollar sign does not play
>> well with electric-pair-mode.  Only if you bind $ to
>> self-insert-command will it insert a pair of dollar signs and place
>> the point between them.  This might be the right time to fix that...
>
> Sorry, but `electric-pair-mode' and the feature Mosè and I are talking
> about exclude each other.  AUCTeX binds $ to `TeX-insert-dollar' in tex
> buffers which implements a special behavior, and as you've already found
> out, `electric-pair-mode' needs $ bound to `self-insert-command'.
>
> Bye,
> Tassilo
>



reply via email to

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