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 %(