auctex-devel
[Top][All Lists]
Advanced

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

Adding entries to LaTeX-indent-environment-list (Was: Re: LaTeX-fill-env


From: Ikumi Keita
Subject: Adding entries to LaTeX-indent-environment-list (Was: Re: LaTeX-fill-environment could be a bit more liberal/sophisticated???)
Date: Mon, 31 Jan 2022 21:39:38 +0900

Hi all,

>>>>> Ikumi Keita <ikumi@ikumi.que.jp> writes:
> Thanks for the check. I installed the enhanced fix into the git
> repository.

I have tweaked LaTeX-indent-environment-list and I noticed bug#28405 [1].
Should we add gather and multline environments as well to
LaTeX-indent-environment-list like this?

diff --git a/style/amsmath.el b/style/amsmath.el
index e3cce752..d5fb1da6 100644
--- a/style/amsmath.el
+++ b/style/amsmath.el
@@ -154,7 +154,8 @@
 
    (setq-local LaTeX-indent-environment-list
                (append LaTeX-indent-environment-list
-                       '(("equation*")
+                       '(("equation*") ("gather") ("gather*")
+                         ("gathered") ("multline") ("multline*")
                          ("align"       LaTeX-indent-tabular)
                          ("align*"      LaTeX-indent-tabular)
                          ("aligned"     LaTeX-indent-tabular)

Note that this fixes bug#28405 whereas it disables filling inside gather
and multline environments, which might confuse some users.

Regards,
Ikumi Keita

[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28405



reply via email to

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