emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex bab6bf97b7 1/8: Support enhanced tabular indenta


From: Tassilo Horn
Subject: [elpa] externals/auctex bab6bf97b7 1/8: Support enhanced tabular indentation
Date: Tue, 28 Dec 2021 04:06:01 -0500 (EST)

branch: externals/auctex
commit bab6bf97b7cd6778c7d2ce9aa8f8ce5d083a8e7f
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Support enhanced tabular indentation
    
    * style/stabular.el ("stabular"): Append defined environments to
    `LaTeX-indent-environment-list'.
---
 style/stabular.el | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/style/stabular.el b/style/stabular.el
index 5f3ca02dd8..4b4eb96ed6 100644
--- a/style/stabular.el
+++ b/style/stabular.el
@@ -47,6 +47,17 @@
     '("stabular" LaTeX-env-array)
     '("stabular*" LaTeX-env-tabular*))
 
+   ;; Use the enhanced tabular indentation.  Append to
+   ;; `LaTeX-indent-environment-list' in order not to override custom
+   ;; settings.
+   (make-local-variable 'LaTeX-indent-environment-list)
+   (add-to-list 'LaTeX-indent-environment-list
+                '("stabular" LaTeX-indent-tabular)
+                t)
+   (add-to-list 'LaTeX-indent-environment-list
+                '("stabular*" LaTeX-indent-tabular)
+                t)
+
    ;; Append the environments to `LaTeX-item-list':
    (add-to-list 'LaTeX-item-list
                 '("stabular" . LaTeX-item-array)



reply via email to

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