Next: , Previous: Customizing alerts, Up: Customization


15.6 Hooks

jabber.el provides various hooks that you can use for whatever purpose.

jabber-post-connect-hooks
This hook is called after successful connection and authentication. By default it contains jabber-send-current-presence (see Presence). The hook functions get the connection object as argument.


jabber-lost-connection-hooks
This hook is called when you have been disconnected for unknown reasons. Usually this isn't noticed for quite a long time.

The hook is called with one argument: the connection object.


jabber-pre-disconnect-hook
This hook is called just before voluntary disconnection, i.e. in jabber-disconnect, the command to disconnect all accounts. There is currently no hook for disconnection of a single account.


jabber-post-disconnect-hook
This hook is called after disconnection of any kind, possibly just after jabber-lost-connection-hook.


jabber-chat-mode-hook
This hook is called when a new chat buffer is created.


jabber-browse-mode-hook
This hook is called when a new browse buffer is created.


jabber-roster-mode-hook
This hook is called when the roster buffer is created.