diff --git a/.config/kak/autoload/filetype/latex.kak b/.config/kak/autoload/filetype/latex.kak index e2b2cbdc..a9d74c93 100644 --- a/.config/kak/autoload/filetype/latex.kak +++ b/.config/kak/autoload/filetype/latex.kak @@ -18,6 +18,12 @@ define-command -override latex-surround-add %{ } } +define-command -override latex-surround-remove %{ + prompt remove: %{ + latex-surround-remove-impl %val{text} + } +} + hook global WinSetOption filetype=latex %{ set-option window formatcmd "tex-fmt --stdin" set-option window autowrap_fmtcmd 'tex-fmt --stdin -l %c' @@ -34,5 +40,7 @@ hook global WinSetOption filetype=latex %{ map window latex ': latex-surround-remove-impl emph' -docstring 'deitalicize selection' map window latex b ': latex-surround-add-impl textbf' -docstring 'bold selection' map window latex ': latex-surround-remove-impl textbf' -docstring 'debold selection' + map window latex s ': latex-surround-add' -docstring 'surround add' + map window latex r ': latex-surround-remove' -docstring 'surround remove' }