bug-auctex
[Top][All Lists]
Advanced

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

bug#23180: 2016-01-31; Auto-capitalize and change env


From: Uwe Brauer
Subject: bug#23180: 2016-01-31; Auto-capitalize and change env
Date: Fri, 01 Apr 2016 12:27:08 +0000
User-agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.1.50 (gnu/linux)

    > 2016-04-01 12:47 GMT+02:00 Uwe Brauer <address@hidden>:

    > Then can we close this? :-)

Hm, I found the recipe:

 emacs -Q
 load auto-capitalize manually.

Load the following two files

Open a latex buffer and proceed as I said.

The problem is caused by this


 (add-hook 'LaTeX-mode-hook 'my-set-auto-capitalize) 
 (defun my-set-auto-capitalize ()
 (interactive)
         (set (make-local-variable 'auto-capitalize-predicate)
              (lambda () (not (texmathp)))))

That was recommended to me by Kevin in order that
auto-capitalize is deactivated in math environment.

For example
\begin{equation}
 A_i
\end{align}
should not be expanded to 
\begin{equation}
 A_I
\end{align}

The above function provides such a behavior but the price is that change
environment does not work properly. Any thoughts?





Attachment: my-auto.el
Description: application/emacs-lisp

Attachment: auc-init.el
Description: application/emacs-lisp


reply via email to

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