# LibTmux::Configuration::Hooks.append

- **Module:** LibTmux::Configuration
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Configuration.rakumod#L499
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-configuration-hooks-append/

```
method append(Str:D $name, Invocation:D $command --> Result:D)
```

Append one command to the hook array using tmux's native array allocation.

Append one command to the hook array using tmux's native array allocation.

## Parameters

- `$name` (`Str:D`)
- `$command` (`Invocation:D`)

## tmux command

The tmux commands behind `append`.

- [`set-hook`](/en/tmux/latest/manual/set-hook/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_set_hook_entry`](/en/tmux/latest/reference/c-variable-cmd_set_hook_entry/) (attribute)
- [`cmd_set_option_exec`](/en/tmux/latest/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function)
