This is the list of Org-mode hooks with their default values:
| Hook | Default value |
|---|---|
| org-load-hook | nil |
| org-cycle-hook | '(org-cycle-hide-archived-subtrees) |
| org-insert-heading-hook | nil |
| org-occur-hook | '(org-first-headline-recenter) |
| org-follow-link-hook | nil |
| org-after-todo-state-change-hook | nil |
| org-finalize-agenda-hook | nil |
Feel free to give example of how do you use these hooks. Ideas for other hooks are also welcome.
If you want to display dormant article when following Gnus articles:
(add-hook 'org-follow-link-hook
(lambda () (if (eq major-mode 'gnus-summary-mode)
(gnus-summary-insert-dormant-articles))))