From 1d68f8dab9666dbbf6c7df1dc948c2477cc464c8 Mon Sep 17 00:00:00 2001 From: John Isom Date: Mon, 27 Jul 2020 21:43:07 -0600 Subject: [PATCH] Fix indentation rule for latex.kak --- rc/filetype/latex.kak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc/filetype/latex.kak b/rc/filetype/latex.kak index af336f68..34b6f208 100644 --- a/rc/filetype/latex.kak +++ b/rc/filetype/latex.kak @@ -68,6 +68,8 @@ define-command -hidden latex-indent-newline %( try %{ execute-keys -draft k s\h+$ d } # indent after line ending with { try %( execute-keys -draft k \{$ j ) + # deindent closing brace(s) when after cursor + try %( execute-keys -draft ^\h*\}+\h*$ hm 1 ) # indent after line ending with \begin{...}[...]{...}, with multiple # sets of arguments possible try %(