auctex
[Top][All Lists]
Advanced

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

Re: The auto-completion behavior of parenthesis.


From: Arash Esbati
Subject: Re: The auto-completion behavior of parenthesis.
Date: Thu, 27 Jul 2023 15:39:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Hongyi Zhao <hongyi.zhao@gmail.com> writes:

> In AUCTeX mode, I noticed that `{', and `[' can be completed
> automatically, while `(' doesn't. Any tips for this behavior?

AUCTeX provides a variable called `LaTeX-electric-left-right-brace' for
this purpose which is initally disabled:

,----[ C-h v LaTeX-electric-left-right-brace RET ]
| LaTeX-electric-left-right-brace is a variable defined in ‘latex.el’.
| 
| Its value is t
| Original value was nil
| 
| If non-nil, insert right brace with suitable macro after typing left brace.
| 
|   You can customize this variable.
| 
`----

See also here[1] for more information.

Best, Arash

Footnotes:
[1]  
https://www.gnu.org/software/auctex/manual/auctex/Quotes.html#index-LaTeX_002delectric_002dleft_002dright_002dbrace



reply via email to

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