diff --git a/doc/pages/hooks.asciidoc b/doc/pages/hooks.asciidoc index 94008c7b..0dfa6fc1 100644 --- a/doc/pages/hooks.asciidoc +++ b/doc/pages/hooks.asciidoc @@ -123,7 +123,7 @@ of the given *group*. *InputModeChange* `:`:: Triggered whenever the current input mode changes -*KakBegin*:: +*KakBegin* `session name`:: kakoune has started, this hook is called just after reading the user configuration files diff --git a/src/main.cc b/src/main.cc index a112edce..9d8079ef 100644 --- a/src/main.cc +++ b/src/main.cc @@ -618,7 +618,7 @@ int run_server(StringView session, StringView server_init, { Context empty_context{Context::EmptyContextFlag{}}; - global_scope.hooks().run_hook("KakBegin", "", empty_context); + global_scope.hooks().run_hook("KakBegin", session, empty_context); } if (not files.empty()) try