AutoYADM commit: 2025-06-23 18:35:14
This commit is contained in:
parent
6239fced05
commit
3455be367e
1 changed files with 6 additions and 4 deletions
|
@ -8,9 +8,8 @@ define-command -override -params 1 latex-surround-add %~
|
||||||
define-command -override -params 1 latex-surround-remove %~
|
define-command -override -params 1 latex-surround-remove %~
|
||||||
evaluate-commands -save-regs 'a"' -no-hooks %^
|
evaluate-commands -save-regs 'a"' -no-hooks %^
|
||||||
set-register a %arg{1}
|
set-register a %arg{1}
|
||||||
execute-keys -save-regs '"' -draft '<a-a>{<a-S>d<a-/>\\<c-r>a<ret>d'
|
execute-keys -save-regs '"' -draft '<a-/>\\<c-r>a<ret>d<a-a>{<a-S>d'
|
||||||
^
|
^
|
||||||
|
|
||||||
~
|
~
|
||||||
|
|
||||||
hook global WinSetOption filetype=latex %{
|
hook global WinSetOption filetype=latex %{
|
||||||
|
@ -24,7 +23,10 @@ hook global WinSetOption filetype=latex %{
|
||||||
unset-option window formatcmd
|
unset-option window formatcmd
|
||||||
remove-hooks window latex-auto-format
|
remove-hooks window latex-auto-format
|
||||||
}
|
}
|
||||||
# declare-filetype-mode latex
|
declare-filetype-mode latex
|
||||||
# map window latex i
|
map window latex i ': latex-surround-add emph<ret>'
|
||||||
|
map window latex <a-i> ': latex-surround-remove emph<ret>'
|
||||||
|
map window latex b ': latex-surround-add textbf<ret>'
|
||||||
|
map window latex <a-b> ': latex-surround-remove textbf<ret>'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue