Next: , Previous: Plain lists, Up: Document structure

2.8 Drawers

Sometimes you want to keep information associated with an entry, but you normally don't want to see it. For this, Org mode has drawers. They can contain anything but a headline and another drawer. Drawers look like this:

     ** This is a headline
        Still outside the drawer
        This is inside the drawer.
        After the drawer.

You can interactively insert drawers at point by calling org-insert-drawer, which is bound to C-c C-x d. With an active region, this command will put the region inside the drawer. With a prefix argument, this command calls org-insert-property-drawer and add a property drawer right below the current headline. Completion over drawer keywords is also possible using M-<TAB>1.

Visibility cycling (see Visibility cycling) on the headline will hide and show the entry, but keep the drawer collapsed to a single line. In order to look inside the drawer, you need to move the cursor to the drawer line and press <TAB> there. Org mode uses the PROPERTIES drawer for storing properties (see Properties and columns), and you can also arrange for state change notes (see Tracking TODO state changes) and clock times (see Clocking work time) to be stored in a drawer LOGBOOK. If you want to store a quick note in the LOGBOOK drawer, in a similar way to state changes, use

C-c C-z
Add a time-stamped note to the LOGBOOK drawer.

You can select the name of the drawers which should be exported with org-export-with-drawers. In that case, drawer contents will appear in export output. Property drawers are not affected by this variable: configure org-export-with-properties instead.


[1] Many desktops intercept M-<TAB> to switch windows. Use C-M-i or <ESC> <TAB> instead for completion (see Completion).