# libtmux.Server:list_hooks

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/_internal/server.lua#L748
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-server-list_hooks/

```
list_hooks: fun(
  self: libtmux.Server,
  options?: libtmux.SettingListOptions,
):libtmux.Request<libtmux.HookRecord[]>
```

## Parameters

- `options` (`libtmux.SettingListOptions?`)

## tmux command

The tmux commands behind `list_hooks`.

- [`show-options`](/en/tmux/latest/manual/show-options/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_show_options_entry`](/en/tmux/latest/reference/c-variable-cmd_show_options_entry/) (attribute)
- [`cmd_show_options_exec`](/en/tmux/latest/reference/c-function-cmd-show-options-c-cmd_show_options_exec/) (function)

## tmux hooks

Events that run tmux commands, with the scope each hook belongs to and where tmux fires it.

- [Hooks](/en/tmux/latest/catalog/hooks/) (hook)

## In other ports

Read the server's global hooks

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Server.show_hooks`](/en/py/latest/reference/libtmux-server-show_hooks/) (method) |
| Ruby | [`LibTmux::Server#hooks`](/en/ruby/latest/reference/libtmux-server-hooks/) (method) |
| TypeScript | [`server.Server.showHooks`](/en/ts/latest/reference/server-server-showhooks/) (method) |
| Rust | [`server.Server.hooks`](/en/rs/latest/reference/server-server-hooks/) (method) |
| Go | no equivalent on `Server` |
| Java | [`io.github.libtmux.Server.hooks`](/en/java/latest/reference/io-github-libtmux-server-server-hooks/) (method) |
| C# | [`LibTmux.Server.Hooks`](/en/csharp/latest/reference/libtmux-server-hooks/) (property) |
| C++ | [`libtmux::Server::hooks`](/en/cxx/latest/reference/libtmux-server-hooks/) (method) |
| Swift | [`Server.hooks(_:)`](/en/swift/latest/reference/server-hooks(_-)/) (method) |

No equivalent is recorded in PowerShell, Julia, Elixir, Kotlin, Scala or F#.
