AutoYADM commit: 2025-06-23 19:00:15

This commit is contained in:
Daniel Fichtinger 2025-06-23 19:00:15 -04:00
parent 0887f914eb
commit f5fe555d82

View file

@ -1,4 +1,3 @@
# wrap selection in \emph{...}
define-command -override -params 1 latex-surround-add-impl %~ define-command -override -params 1 latex-surround-add-impl %~
evaluate-commands -save-regs 'a' -no-hooks %^ evaluate-commands -save-regs 'a' -no-hooks %^
set-register a %arg{1} set-register a %arg{1}
@ -36,11 +35,11 @@ hook global WinSetOption filetype=latex %{
remove-hooks window latex-auto-format remove-hooks window latex-auto-format
} }
declare-filetype-mode latex declare-filetype-mode latex
map window latex i ': latex-surround-add-impl emph<ret>' -docstring 'italicize selection' map window latex i ': latex-surround-add-impl emph<ret>' -docstring 'italicize selection'
map window latex <a-i> ': latex-surround-remove-impl emph<ret>' -docstring 'deitalicize selection' map window latex <a-i> ': latex-surround-remove-impl emph<ret>' -docstring 'deitalicize selection'
map window latex b ': latex-surround-add-impl textbf<ret>' -docstring 'bold selection' map window latex b ': latex-surround-add-impl textbf<ret>' -docstring 'bold selection'
map window latex <a-b> ': latex-surround-remove-impl textbf<ret>' -docstring 'debold selection' map window latex <a-b> ': latex-surround-remove-impl textbf<ret>' -docstring 'debold selection'
map window latex s ': latex-surround-add<ret>' -docstring 'surround add' map window latex s ': latex-surround-add<ret>' -docstring 'surround add'
map window latex r ': latex-surround-remove<ret>' -docstring 'surround remove' map window latex r ': latex-surround-remove<ret>' -docstring 'surround remove'
} }