List of org-mode hooks - examples of use

#+STARTUP: align fold nodlcheck hidestars oddeven lognotestate

{Back to Worg's index}

This is the list of Org-mode hooks with their default values:

HookDefault value
org-load-hooknil
org-cycle-hook'(org-cycle-hide-archived-subtrees)
org-insert-heading-hooknil
org-occur-hook'(org-first-headline-recenter)
org-follow-link-hooknil
org-after-todo-state-change-hooknil
org-finalize-agenda-hooknil

Feel free to give example of how do you use these hooks. Ideas for other hooks are also welcome.

Table of Contents

org-follow-link-hook    bzg

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))))