Previous: Version Control, Up: Customizing

### 6.4 Hooks

There are several hooks in speedbar allowing custom behaviors to be added. Available hooks are:

`speedbar-visiting-file-hook`
  Hooks run when speedbar visits a file in the selected frame.
`speedbar-visiting-tag-hook`
  Hooks run when speedbar visits a tag in the selected frame.
`speedbar-load-hook`
  Hooks run when speedbar is loaded.
`speedbar-reconfigure-keymaps-hook`
  Hooks run when the keymaps are regenerated. Keymaps are reconfigured whenever modes change. This will let you add custom key bindings.
`speedbar-before-popup-hook`
  Hooks called before popping up the speedbar frame. New frames are often popped up when “power clicking” on an item to view it.
`speedbar-before-delete-hook`
  Hooks called before deleting or hiding the speedbar frame.
`speedbar-mode-hook`
  Hooks called after creating a speedbar buffer.
`speedbar-timer-hook`
  Hooks called after running the speedbar timer function.
`speedbar-scanner-reset-hook`
  Hook called whenever generic scanners are reset. Set this to implement your own scanning or rescan safe functions with state data.