diff --git a/.config/kak/autoload/filetype/latex.kak b/.config/kak/autoload/filetype/latex.kak index a9d74c93..523d67ba 100644 --- a/.config/kak/autoload/filetype/latex.kak +++ b/.config/kak/autoload/filetype/latex.kak @@ -1,4 +1,3 @@ -# wrap selection in \emph{...} define-command -override -params 1 latex-surround-add-impl %~ evaluate-commands -save-regs 'a' -no-hooks %^ set-register a %arg{1} @@ -36,11 +35,11 @@ hook global WinSetOption filetype=latex %{ remove-hooks window latex-auto-format } declare-filetype-mode latex - map window latex i ': latex-surround-add-impl emph' -docstring 'italicize selection' - 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' + map window latex i ': latex-surround-add-impl emph' -docstring 'italicize selection' + 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' }