Имеем: такую ситуацию, т.е. вместе с дополнением оператора математического символа дополняется и сам символ, чего не хотелось бы.
~ % cat .emacs | grep -i tex
; xelatex
(eval-after-load "tex"
'(add-to-list 'TeX-command-list
'("XeLaTeX" "xelatex -interaction=nonstopmode %s"
TeX-run-command t t :help "Run xelatex") t))
(setq TeX-engine-alist
'((xelatex "XeLaTeX" "xetex" "xelatex" "xelatex")))
;(add-hook 'LaTeX-mode-hook
; (setq TeX-engine 'xelatex)))
(setq TeX-PDF-mode t)
'(TeX-command-list (quote (("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode texinfo-mode ams-tex-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "texexec --once --texutil %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") ("View" "open %o" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help "Generate PostScript file") ("Index" "makeindex %s" TeX-run-command nil t :help "Create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command") ("XeLaTeX" "xelatex -interaction=nonstopmode -shell-escape %s" TeX-run-command t t :help "Run xelatex") ("XeLaTeX" "xelatex -interaction=nonstopmode %s" TeX-run-command t t :help "Run xelatex"))))
'(TeX-output-view-style nil)
'(TeX-source-correlate-method (quote synctex))
'(TeX-source-correlate-mode t)
'(TeX-source-correlate-start-server t)
(add-to-list 'ac-modes 'latex-mode) ; make auto-complete aware of `latex-mode`
(defun ac-latex-mode-setup () ; add ac-sources to default ac-sources
(append '(ac-source-math-unicode ac-source-math-latex ac-source-latex-commands)
(add-hook 'LaTeX-mode-hook 'ac-latex-mode-setup)
;;Auctex a/c
(add-hook 'LaTeX-mode-hook
(local-set-key [M-tab] 'TeX-complete-symbol)))
;; Auctex math
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
(add-hook 'LaTeX-mode-hook 'TeX-fold-mode)
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(add-hook 'LaTeX-mode-hook 'visual-line-mode)
p.s. я знаю, что давно надо привести .emacs в порядок, но пока руки не доходят