diff --git a/home/kakoune/autoload/latex.kak b/home/kakoune/autoload/latex.kak
index 3fadaf6..4bb9c9d 100644
--- a/home/kakoune/autoload/latex.kak
+++ b/home/kakoune/autoload/latex.kak
@@ -11,13 +11,13 @@ define-command -hidden create-begin-block %{
execute-keys "b0"
execute-keys -with-hooks -with-maps "c"
hook -once buffer ModeChange .*:normal %{
- execute-keys -with-maps "gl"
+ execute-keys -with-maps ",gl"
}
}
# Create a begin block with the given parameter as block name.
define-command -params 1 create-begin-block-with %{
execute-keys "i\begin{b0}\end{b0}"
- execute-keys "b0c%arg{1}"
+ execute-keys "b0c%arg{1},"
execute-keys "ok"
execute-keys -with-maps "gl"
}