Added links to the new files.
[Worg.git] / org-hooks.org
blob827f9b07e318889fb69ce99201b1a05da68fccc0
1 #+OPTIONS:    H:3 num:nil toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t TeX:t LaTeX:t skip:nil d:(HIDE) tags:not-in-toc
2 #+STARTUP:    align fold nodlcheck hidestars oddeven lognotestate
3 #+SEQ_TODO:   TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
4 #+TITLE:      List of org-mode hooks - examples of use
5 #+AUTHOR:     Worg people
6 #+EMAIL:      bzg AT altern DOT org
7 #+LANGUAGE:   en
8 #+PRIORITIES: A C B
9 #+CATEGORY:   worg
11 # This file is the default header for new Org files in Worg.  Feel free
12 # to tailor it to your needs.
14 [[file:index.org][{Back to Worg's index}]]
16 This is the list of Org-mode hooks with their default values:
18 | Hook                             | Default value                       |
19 |----------------------------------+-------------------------------------|
20 | org-load-hook                    | nil                                 |
21 | org-cycle-hook                   | '(org-cycle-hide-archived-subtrees) |
22 | org-insert-heading-hook          | nil                                 |
23 | org-occur-hook                   | '(org-first-headline-recenter)      |
24 | org-follow-link-hook             | nil                                 |
25 | org-after-todo-state-change-hook | nil                                 |
26 | org-finalize-agenda-hook         | nil                                 |
28 Feel free to give example of how do you use these hooks.  Ideas for
29 other hooks are also welcome.
31 * org-follow-link-hook                                           :bzg:
33 If  you want to display dormant article when following Gnus articles:
35 :(add-hook 'org-follow-link-hook 
36 :         (lambda () (if (eq major-mode 'gnus-summary-mode)
37 :                        (gnus-summary-insert-dormant-articles))))
39 # org-add-hook?