The org-manual does a great job of explaining the myriad features of org-mode. But for new users, the sheer number of options and features can be overwhelming.
What exactly are properties? How should I use them? Do I need to know how they work in order to use org mode?
What are categories? How do they differ from tags?
If you find yourself asking such questions, this document is for you. Below you will find an alphabetical list of basic concepts/features in org-mode. Click on any item for a brief definition, a more detailed explanation of the feature, and a description of possible uses.
These are the files that are used to generate your agenda views. When you call your agenda, the TODOs and scheduling information in your agenda files will be displayed.
There are different ways to designate these files:
M-x customize-variable [RET] org-agenda-filesand enter
One of the most common questions for new (and seasoned) users of org-mode is how to organize agenda files. Should you put everything in one big file organized by project? Should you create a new file for each project? Or should you have separate "containers" for different types of data: i.e., one file (or subtree) for appointments, one for reference, one for todos, and so on.
The short answer: it doesn't matter. The agenda will be able to parse and organize your TODOs, appointments, and deadlines no matter how they are organized in your files.
If you are using org-mode for the first time, the simplest approach may be to use a single file and to enter projects or todos as the appear. Then, whenever you review your file, reorganize your todos and projects into "groupings" (i.e., trees) that make sense to you. If a tree starts to get too big, then start a new file. Perhaps you'll discover that you want to keep your "work" and "personal" tasks in different files.
Perhaps the main consideration in organizing your files is to consider inheritance and restriction. If you'd like a number of items to belong to the same category or to have the same tags for easy agenda filtering, then they probably belong in the same tree and/or file.
Archiving is a way of hiding and/or getting rid of old or unwanted items in your org files without deleting them altogether.
Archiving works on subtrees in your org-file by doing the following:
There are three different ways to archiving an item/tree:
Archiving is very useful for keeping your org files free of clutter. But which type of archiving should you use?
Here are a few ideas:
C-c C-x awhen you'd like to archive an entry/subtree but
C-c C-x Awhen you want to remove an entry/subtree from view but
C-c C-x C-swhen you are sure you no longer require an
A category is the group an item belongs to.
The category of an item is shown in the left hand column of the daily/weekly agenda view.
Day-agenda (W38): Wednesday 16 September 2009 badclient: Scheduled: TODO Call angry client to calm him down appts: Dinner at Julio's
By default an item's category is the name of the file (minus the extension) to which it belongs.
You can specify a different category for a file by placing the following line at the top of your org file:
,* Birthdays , :PROPERTIES: , :CATEGORY: birthdays , :END:
The main purpose of a category is to increase visibility in the daily/weekly agenda --- i.e., to allow you to see which "group" an item belongs to.
Apart from visibility and compartmentalization, categories do not add much additional functionality to an item. It is certainly *not* necessary to set them for every file and/or heading.
You can search for items by category in the agenda using the following key sequence:
C-c C-a m CATEGORY="birthdays"
In general, categories are not an efficient way of searching for and/or filtering tasks. It is much faster to use tags or filetags for this.
Here's one way to distinguish between categories and tags: an entry can belong to only one category but it can have multiple tags.
A deadline is a special timestamp for indicating items that should be performed by a certain time. Reminders about deadlines appear in your agenda a specified number of days before they due.
You can add a deadline to a headline/entry by typing C-c C-d. You can remove a deadline by typing C-u C-c C-d.
Here is the syntax for deadlines:
,* My big project , DEADLINE: <2009-09-20 Sun>
You will be alerted of this deadline ahead of time when you select the
daily/weekly agenda (
C-c C-a a).
index: In 3 d.: My big project
How soon the warning appears in your agenda is controlled by the
org-deadline-warning-days. The default number of days is
The deadline will remain in your agenda (as an overdue item) until it is marked done.
You can change the a warning period for a particular headline by adding something like "-3d" (3 days) or "-2m" (two months) to the timestamp:
,* My big project , DEADLINE: <2009-09-20 Sun -2m>
The obvious use of a deadline is to reminder yourself of tasks that need to be completed by a certain date.
Deadlines can also be useful as an "advanced notice" system --- e.g., reminding yourself to prepare for an event or project.
You can add both a deadline and a scheduling timestamp to the same entry.
A docstring is the documentation written as part of a emacs lisp variable or a function. It is part of Emacs' wonderful interactive help system.
(Note: This definition is not org-mode specific, but is rather a more general org-mode/lisp/coding concept. It's included here because mailing list posts often reference a "docstring," an obscure phrase for anyone not familiar with coding lingo.)
If you are wondering what a particular org-mode key combination, function, or variable does, the manual is not your only source of information. Carsten has also embedded a wealth of resources into the org-mode source code itself. These can be easily viewed using Emacs built-in help functions.
For instance, let's say you want to learn more about creating a clock
report in org mode. One way to do this is to type
C-h k or
describe-key and then to enter the relevant key combination (
C-x-C-r). This will provide the following very helpful information:
org-clock-report is an interactive compiled Lisp function in `org-clock.el'. It is bound to C-c C-x C-r, . (org-clock-report &optional arg) Create a table containing a report about clocked time. If the cursor is inside an existing clocktable block, then the table will be updated. If not, a new clocktable will be inserted. When called with a prefix argument, move to the first clock table in the buffer and update it. [back]
If you happened to know the name of the function, you could also
locate the same information using
C-h f or
and entering =org-clock-report. Or you could use
C-h a or
=apropos-command= to browse all functions that contain the words "org
Finally, if you want to learn more about variables, you can read their
docstrings by browsing the customize interface (
[RET] org) or by typing
C-h v or
A drawer is a container that can hide information you don't want to see during normal viewing and/or cycling of your outline.
A drawer looks like this:
,* Daily sleep log , :LOGBOOK: , - Note taken on [2009-09-16 Wed 04:02] \\ , Didn't sleep at all. , - Note taken on [2009-09-15 Tue 05:25] \\ , Slept fitfully. , - Note taken on [2009-09-14 Mon 09:30] \\ , Slept like a log. , :END:
When you cycle the visibility of your outline, the contents of the drawer will remain hidden.
,* Daily sleep log , :LOGBOOK:
The only way to view the contents is to press
TAB directly on the
If you want a new name for a drawer, such as :NOTES:, you must customize the variable "org-drawers". Simply type =M-x customize-variable [RET] org-drawers" and add a new label.
By default, org-mode uses drawers to hide a variety of information, such as properties and clocked times.
But drawers are also quite useful for storing comments that you don't
want to see all the time. For instance, if you are writing a paper,
you might add a
:NOTE: drawer to the variable
you can deposit any notes to yourself in such drawers. By default, the
information you put in drawers will not be exported to HTML, LaTeX,
An entry is the basic unit of data in org-mode. It consists of a headline, metadata (tags, todo keyword, properties, priority, etc.), and whatever other text it contains.
An entry is to be distinguished from a tree, which consists of all headlines and entries beneath a particular entry within the outline structure. Entries nested within other entries form a tree.
Here is a sample entry with a lot of data:
,* TODO [#B] Headline :tags: , :PROPERTIES: , :DESCRIPTION: This is a sample property. , :CATEGORY: documentation , :CUSTOM_ID: an-extra-special-headline , :END:
,And here is the text of an entry. You can put an unlimited amount of ,text in an entry!
,You can also add lists:
, - First item
, - Second item
, - Third item
,| Meal | Food | Calories | ,|-----------+-----------------+----------| ,| Breakfast | Eggs | 500 | ,| Lunch | Escargot | 800 | ,| Dinner | Bread and Water | 200 | ,|-----------+-----------------+----------| ,| Total | | 1500 |
A property is an arbitrary piece of "metadata" you can attach to an entry. A property takes the form of a "data pair," which consists of a key and its value.
Properties are stored in drawers beneath a headline. Here is a sample property drawer:
,* Invoice for fixing the toilet , :PROPERTIES: , :LOGGING: lognoterepeat , :BILLED: 102.13 , :BILLING_DATE: 2009-09-11 , :CLIENT: ABC Company , :END:
Though org-mode reserves a handful of property keys for special uses (e.g., LOGGING in the example above), you are otherwise free to add whatever property keys and values you'd like.
Though you can type properties by hand, the simplest way to add them
is to type
C-c C-x p or
For new org users, properties can seem a bit puzzling. What exactly are they for? Here are some of their uses:
A tag is a label (or piece of "metadata") that is attached to a headline for easy identification and filtering later. Several tags can be attached to the same headline.
Tags can be added to headlines with the key combination
C-c C-q or
Tags have the following syntax:
,* A headline with tags :Richard:URGENT:errands:
You may be familiar with tags from blogs or sites like del.icio.us. Tags are a way of labeling information without having to rely on a rigid hierarchical structure. Unlike categories, you can give a headline/entry multiple tags. In many ways, org-mode offers the best of both worlds: the hierarchical organization of an outline and the impromptu labeling of tags.
The entry above would appear in queries for any of the tags: "Richard", "URGENT", or "errands".
The syntax for searching tags via the agenda is quite simple. For instance, you could create a targeted agenda search for all items tagged "Richard" and "urgent".
C-c a m Richard+URGENT
Or for items tagged Richard that are not urgent:
C-c a m Richard-URGENT
You can also use sparse view searches to display all tags within a particular org-file.
If you find yourself commonly using certain tags, you can create a
list of shortcuts for them by typing
M-x customize-variable [RET]
org-tags-alist. You can also set special tags for a particular file.
See the manual for more details.
One common use of tags is as GTD contexts. You might, for instance, define a list of tags in org-tags-alist that correspond to the various contexts in a "next action" can be completed: @computer, @home, @errands, @work, and so on. Then you can quickly filter for these tags by pressing "=/=" in the agenda. See the manual for more details.
Another common use of a tag is to label a group of tasks as belonging to a particular project or area of responsibility. For instance, you might create a subtree in your file that contains all your house repair projects and tag it with ":houserepair:". Let's say that when Saturday rolls around, you decide to work exclusively on repairs. Thanks to inheritance, you can quickly locate all your tasks that inherit the ":houserepair:" tag.
Here's what this would look like:
,* Tasks around the house :houserepair:
,** TODO Fix sink
,** TODO Mow lawn
,** TODO Tear up carpet
Tags are also extremely useful for notetaking and research. You might, for instance, create a file of reading notes in which each entry is a snippet of information tagged with relevant keywords. The beauty of org-mode is that these snippets can be easily rearranged within the outline and yet remain easy to find via tags.
For instance, should you define your projects by creating a special
todo keyword for them (
PROJECT) or by giving them a "=:project:="
tag? Similarly, should you create a TODO keyword for items that are
waiting, or should you add a "=:waiting:=" tag?
Either choice would be fine, of course, but here are a few considerations to keep in mind:
A tree is created by the structure of an outline. It consists of a heading and all subheadings/entries beneath it within the outline hierarchy.
A tree is to be distinguished from an entry. Whereas an entry indicates only a single headline and its data, a tree consists of multiple nested entries. And, of course, subtrees are nested within larger trees.
A TODO keyword is a small keyword at the beginning of a headline that defines the TODO state of the entry.
The default TODO keywords in org-mode are TODO and DONE. They are automatically given nice colors to make them stand out.
,* DONE Check cupboard to see if I'm out of bread , CLOSED: [2009-09-16 Wed 13:14] ,* TODO Buy bread at the store
Org mode distinguishes between two types of keywords, active and inactive (corresponding with the default TODO and DONE). By default, active TODOs will be shown in agenda views. Inactive todos will not be shown.
You can select a TODO keyword by typing
C-c C-t on an item. Or you
can move sequentially through TODOs by typing
While the default keywords TODO and DONE will suffice for many users, you can define your own TODO keywords (such as PROJECT, WAITING, etc.) by following the instructions in the manual:
Not surprisingly, the most common use of TODO keywords is to indicate items in your outline files that require action. Where other task management systems often separate notes and todos, org-mode allows you to mark items in your notes as TODOs.
Another common use of TODO keywords is to follow a single item through an extended workflow. For instance, you might create a special TODO keyword sequence for invoices by placing the following at the top of your org file:
, #+SEQ_TODO: INVOICE(i) MAIL(m) WAITING(w) FOLLOWUP(f) | RECEIVED(r)
Note: The "|" separates active from inactive todos.
You can combine such todo sequences with logging in order to keep a record of when each event in the sequence happened.