When using Auctex to type tex files, round bracket (
can't auto-complete for me. But [
and {
can do. How can I fix it?
According to introduction of LaTeX-electric-left-right-brace, this variable is set to t
. But the problem also appears. Meanwhile, my auctex can't auto-complete \(
, \[
, \{
, \left(
, \bigl[
, \Bigl\{
.
Emacs is new and interesting for me. Please help me solve it. Thanks!
BTW: Is there any way to delete (), [], {}
by pairs?
smartparens
. It has LaTeX support and there is pairwise deletion of brackets viasp-unwrap-sexp
.smartparens
works for auto-completion of(
. But I can't delete()
by pairs. My key<backspace>
is bound todelete-backward-char
andsp-autodelete-pair
ist
. How can I modify it to enable the automatic deletion of()
by pairs? Thanks!smartparens-mode
enabled?(add-hook 'LaTeX-mode-hook 'smartparens-mode)
and it fails. Then I modify it to(add-hook 'TeX-mode-hook 'smartparens-mode)
and it works. I'm confused ofLaTex-mode
andTex-mode
sincereftex
is enabled by(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
.