From d76ff15b5c3ea514430c2989edaf8e6d46124032 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 28 Nov 2024 20:02:33 +0100 Subject: emacs: Set tab size for (la)tex-mode --- .config/emacs/modules/mm-editing.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.config') diff --git a/.config/emacs/modules/mm-editing.el b/.config/emacs/modules/mm-editing.el index d3bd7eb..50a31c9 100644 --- a/.config/emacs/modules/mm-editing.el +++ b/.config/emacs/modules/mm-editing.el @@ -52,7 +52,8 @@ (go-mod-ts-mode . (:extras go-ts-mode-indent-offset)) (go-ts-mode . (:extras go-ts-mode-indent-offset)) (gsp-ts-mode . (:width 2 :extras gsp-ts-mode-indent-rules)) - (helpful-mode . (:width 8)) ; GNU code uses 8-column tabs + (helpful-mode . (:width 8)) ; GNU code uses 8-column tabs + (latex-mode . (:width 2)) (lisp-data-mode . (:spaces t)) (lisp-interaction-mode . (:spaces t)) (lisp-mode . (:spaces t)) @@ -62,6 +63,7 @@ (python-ts-mode . (:extras python-indent-offset)) (sgml-mode . (:extras sgml-basic-offset)) (sh-mode . (:extras sh-basic-offset)) + (tex-mode . (:width 2)) (vimscript-ts-mode . (:extras vimscript-ts-mode-indent-level))) "Alist of indentation settings. Each pair in this alist is of the form (MODE . SETTINGS) where MODE -- cgit v1.2.3