Previous: Remember templates, Up: Remember


4.8.3 Storing notes

When you are finished preparing a note with remember, you have to press C-c C-c to file the note away. The handler first prompts for a target file - if you press <RET>, the value specified for the template is used. Then the command offers the headings tree of the selected file, with the cursor position at the default headline (if you had specified one in the template). You can either immediately press <RET> to get the note placed there. Or you can use vertical cursor motion (<up> and <down>) and visibility cycling (<TAB>) to find a better place. Pressing <RET> or <left> or <right> then leads to the following result.

Cursor position Key Note gets inserted
buffer-start <RET> as level 2 heading at end of file
on headline <RET> as sublevel of the heading at cursor
<left> as same level, before current heading
<right> as same level, after current heading
not on headline <RET> at cursor position, level taken from context. Or use prefix arg to specify level manually.

So a fast way to store the note to its default location is to press C-c C-c <RET> <RET>. Even shorter would be C-u C-c C-c, which does the same without even asking for a file or showing the tree.

Before inserting the text into a tree, the function ensures that the text has a headline, i.e. a first line that starts with a `*'. If not, a headline is constructed from the current date and some additional data. If the variable org-adapt-indentation is non-nil, the entire text is also indented so that it starts in the same column as the headline (after the asterisks).