From ac530efe879fd74393afe5b0e4d719c07fa425b0 Mon Sep 17 00:00:00 2001 From: Tim Ruffing Date: Fri, 18 Jul 2025 09:40:47 +0200 Subject: [PATCH] refactor(latex): reformat code for readability --- modules/lang/latex/config.el | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/modules/lang/latex/config.el b/modules/lang/latex/config.el index fc165d073..faa848353 100644 --- a/modules/lang/latex/config.el +++ b/modules/lang/latex/config.el @@ -87,14 +87,16 @@ okular and pdf-tools.") ;; We have to use lower case modes here, because `smartparens-mode' uses ;; the same during configuration. (let ((modes '(tex-mode plain-tex-mode latex-mode LaTeX-mode))) - ;; All these excess pairs dramatically slow down typing in LaTeX buffers, - ;; so we remove them. Let snippets do their job. - (dolist (open '("\\left(" "\\left[" "\\left\\{" "\\left|" - "\\bigl(" "\\biggl(" "\\Bigl(" "\\Biggl(" "\\bigl[" - "\\biggl[" "\\Bigl[" "\\Biggl[" "\\bigl\\{" "\\biggl\\{" - "\\Bigl\\{" "\\Biggl\\{" + (dolist (open '( + ;; All these pairs dramatically slow down typing in LaTeX + ;; buffers, so remove them. Let snippets do their job. + "\\left(" "\\left[" "\\left\\{" "\\left|" + "\\bigl(" "\\biggl(" "\\Bigl(" "\\Biggl(" + "\\bigl[" "\\biggl[" "\\Bigl[" "\\Biggl[" + "\\bigl\\{" "\\biggl\\{" "\\Bigl\\{" "\\Biggl\\{" "\\lfloor" "\\lceil" "\\langle" - "\\lVert" "\\lvert" "`")) + "\\lVert" "\\lvert" + "`")) (sp-local-pair modes open nil :actions :rem)) ;; And tweak these so that users can decide whether they want use LaTeX ;; quotes or not, via `+latex-enable-plain-double-quotes'.