Next: , Previous: Customizing alerts, Up: Customization



15.7 Hooks

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

jabber-post-connect-hook
This hook is called after successful connection and authentication. By default it contains jabber-send-default-presence (see Presence).


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


jabber-pre-disconnect-hook
This hook is called just before voluntary disconnection. This might be due to failed authentication, so check *jabber-authenticated* if you want to send a stanza.


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.