[Tex/LaTex] Can’t turn off fontified subscripts in Emacs 24

auctexsubscriptssuperscripts

Under Emacs 24.3 and Auctex, the sub/superscript fontification is occurring outside math modes. This appears in either Beamer or normal LaTeX docs.

Per this question, I've included the following lines in my .emacs.d:

    ;; disable annoying fontification in latex
    (setq font-latex-fontify-script nil)

However, this only appears to fix the behavior for a subset of letters for the subscript, and not at all for the superscript. Something like _p is fine. But _v gets set as the subscript. Both ^v and ^p get set as superscripts.

Has anyone else run into this problem? This is AucTeX 11.86 and Emacs 24.3, running on ubuntu 12.04.

Best Answer

Try using the following:

(fset 'tex-font-lock-suscript 'ignore)