Mercurial > emacs
comparison man/org.texi @ 70133:36d1ec75581c
* org.texi: (Time stamps): Better explanation of the purpose of
different time stamps.
(Structure editing, Plain lists): More details on how new items
and headings are inserted.
author | Carsten Dominik <dominik@science.uva.nl> |
---|---|
date | Thu, 20 Apr 2006 11:48:19 +0000 |
parents | 4804517d7073 |
children | 7ce8d4154af5 |
comparison
equal
deleted
inserted
replaced
70132:f8b9335f0cad | 70133:36d1ec75581c |
---|---|
2 @c %**start of header | 2 @c %**start of header |
3 @c @setfilename org | 3 @c @setfilename org |
4 @setfilename ../info/org | 4 @setfilename ../info/org |
5 @settitle Org Mode Manual | 5 @settitle Org Mode Manual |
6 | 6 |
7 @set VERSION 4.24 | 7 @set VERSION 4.25 |
8 @set DATE April 2006 | 8 @set DATE April 2006 |
9 | 9 |
10 @dircategory Emacs | 10 @dircategory Emacs |
11 @direntry | 11 @direntry |
12 * Org Mode: (org). outline-based notes management and organizer | 12 * Org Mode: (org). outline-based notes management and organizer |
74 @insertcopying | 74 @insertcopying |
75 @end ifnottex | 75 @end ifnottex |
76 | 76 |
77 @menu | 77 @menu |
78 * Introduction:: Getting started | 78 * Introduction:: Getting started |
79 * Document Structure:: A tree works like your brain | 79 * Document structure:: A tree works like your brain |
80 * Tables:: Pure magic for quick formatting | 80 * Tables:: Pure magic for quick formatting |
81 * Hyperlinks:: Notes in context | 81 * Hyperlinks:: Notes in context |
82 * TODO items:: Every tree branch can be a TODO item | 82 * TODO items:: Every tree branch can be a TODO item |
83 * Timestamps:: Assign date and time to items | 83 * Timestamps:: Assign date and time to items |
84 * Tags:: Tagging headlines and matching sets of tags | 84 * Tags:: Tagging headlines and matching sets of tags |
85 * Agenda Views:: Collecting information into views | 85 * Agenda views:: Collecting information into views |
86 * Exporting:: Sharing and publishing of notes | 86 * Exporting:: Sharing and publishing of notes |
87 * Miscellaneous:: All the rest which did not fit elsewhere | 87 * Miscellaneous:: All the rest which did not fit elsewhere |
88 * Index:: The fast road to specific information | 88 * Index:: The fast road to specific information |
89 * Key Index:: Key bindings and where they are described | 89 * Key Index:: Key bindings and where they are described |
90 | 90 |
95 | 95 |
96 * Summary:: Brief summary of what Org-mode does | 96 * Summary:: Brief summary of what Org-mode does |
97 * Installation and activation:: How to install Org-mode | 97 * Installation and activation:: How to install Org-mode |
98 * Feedback:: Bug reports, ideas, patches etc. | 98 * Feedback:: Bug reports, ideas, patches etc. |
99 | 99 |
100 Document Structure | 100 Document structure |
101 | 101 |
102 * Outlines:: Org-mode is based on outline-mode | 102 * Outlines:: Org-mode is based on outline-mode |
103 * Headlines:: How to typeset org-tree headlines | 103 * Headlines:: How to typeset org-tree headlines |
104 * Visibility cycling:: Show and hide, much simplified | 104 * Visibility cycling:: Show and hide, much simplified |
105 * Motion:: Jumping to other headlines | 105 * Motion:: Jumping to other headlines |
106 * Structure editing:: Changing sequence and level of headlines | 106 * Structure editing:: Changing sequence and level of headlines |
107 * Archiving:: Move done task trees to a different place | 107 * Archiving:: Move done task trees to a different place |
108 * Sparse trees:: Matches embedded in context | 108 * Sparse trees:: Matches embedded in context |
109 * Plain Lists:: Editing hand-formatted lists | 109 * Plain lists:: Editing hand-formatted lists |
110 | 110 |
111 Tables | 111 Tables |
112 | 112 |
113 * Built-in table editor:: Simple tables | 113 * Built-in table editor:: Simple tables |
114 * Narrow columns:: Stop wasting space in tables | 114 * Narrow columns:: Stop wasting space in tables |
161 | 161 |
162 * Tag inheritance:: Tags use the tree structure of the outline | 162 * Tag inheritance:: Tags use the tree structure of the outline |
163 * Setting tags:: How to assign tags to a headline | 163 * Setting tags:: How to assign tags to a headline |
164 * Tag searches:: Searching for combinations of tags | 164 * Tag searches:: Searching for combinations of tags |
165 | 165 |
166 Agenda Views | 166 Agenda views |
167 | 167 |
168 * Agenda files:: Files being searched for agenda information | 168 * Agenda files:: Files being searched for agenda information |
169 * Agenda dispatcher:: Keyboard access to agenda views | 169 * Agenda dispatcher:: Keyboard access to agenda views |
170 * Weekly/Daily Agenda:: The calendar page with current tasks | 170 * Weekly/Daily agenda:: The calendar page with current tasks |
171 * Global TODO list:: All unfinished action items | 171 * Global TODO list:: All unfinished action items |
172 * Matching headline tags:: Structured information with fine-tuned search | 172 * Matching headline tags:: Structured information with fine-tuned search |
173 * Timeline:: Time-sorted view for single file | 173 * Timeline:: Time-sorted view for single file |
174 * Agenda commands:: Remote editing of org trees | 174 * Agenda commands:: Remote editing of org trees |
175 | 175 |
208 * Acknowledgments:: These people provided feedback and more | 208 * Acknowledgments:: These people provided feedback and more |
209 | 209 |
210 @end detailmenu | 210 @end detailmenu |
211 @end menu | 211 @end menu |
212 | 212 |
213 @node Introduction, Document Structure, Top, Top | 213 @node Introduction, Document structure, Top, Top |
214 @chapter Introduction | 214 @chapter Introduction |
215 @cindex introduction | 215 @cindex introduction |
216 | 216 |
217 @menu | 217 @menu |
218 * Summary:: Brief summary of what Org-mode does | 218 * Summary:: Brief summary of what Org-mode does |
337 @item What did you expect to happen? | 337 @item What did you expect to happen? |
338 @item What happened instead? | 338 @item What happened instead? |
339 @end enumerate | 339 @end enumerate |
340 @noindent Thank you for helping to improve this mode. | 340 @noindent Thank you for helping to improve this mode. |
341 | 341 |
342 @node Document Structure, Tables, Introduction, Top | 342 @node Document structure, Tables, Introduction, Top |
343 @chapter Document Structure | 343 @chapter Document Structure |
344 @cindex document structure | 344 @cindex document structure |
345 @cindex structure of document | 345 @cindex structure of document |
346 | 346 |
347 Org-mode is based on outline mode and provides flexible commands to | 347 Org-mode is based on outline mode and provides flexible commands to |
353 * Visibility cycling:: Show and hide, much simplified | 353 * Visibility cycling:: Show and hide, much simplified |
354 * Motion:: Jumping to other headlines | 354 * Motion:: Jumping to other headlines |
355 * Structure editing:: Changing sequence and level of headlines | 355 * Structure editing:: Changing sequence and level of headlines |
356 * Archiving:: Move done task trees to a different place | 356 * Archiving:: Move done task trees to a different place |
357 * Sparse trees:: Matches embedded in context | 357 * Sparse trees:: Matches embedded in context |
358 * Plain Lists:: Editing hand-formatted lists | 358 * Plain lists:: Editing hand-formatted lists |
359 @end menu | 359 @end menu |
360 | 360 |
361 @node Outlines, Headlines, Document Structure, Document Structure | 361 @node Outlines, Headlines, Document structure, Document structure |
362 @section Outlines | 362 @section Outlines |
363 @cindex outlines | 363 @cindex outlines |
364 @cindex outline-mode | 364 @cindex outline-mode |
365 | 365 |
366 Org-mode is implemented on top of outline-mode. Outlines allow to | 366 Org-mode is implemented on top of outline-mode. Outlines allow to |
371 currently being worked on. Org-mode greatly simplifies the use of | 371 currently being worked on. Org-mode greatly simplifies the use of |
372 outlines by compressing the entire show/hide functionality into a | 372 outlines by compressing the entire show/hide functionality into a |
373 single command @command{org-cycle}, which is bound to the @key{TAB} | 373 single command @command{org-cycle}, which is bound to the @key{TAB} |
374 key. | 374 key. |
375 | 375 |
376 @node Headlines, Visibility cycling, Outlines, Document Structure | 376 @node Headlines, Visibility cycling, Outlines, Document structure |
377 @section Headlines | 377 @section Headlines |
378 @cindex headlines | 378 @cindex headlines |
379 @cindex outline tree | 379 @cindex outline tree |
380 | 380 |
381 Headlines define the structure of an outline tree. The headlines in | 381 Headlines define the structure of an outline tree. The headlines in |
394 | 394 |
395 @noindent Some people find the many stars too noisy and would prefer an | 395 @noindent Some people find the many stars too noisy and would prefer an |
396 outline that has whitespace followed by a single star as headline | 396 outline that has whitespace followed by a single star as headline |
397 starters. @ref{Clean view} describes a setup to realize this. | 397 starters. @ref{Clean view} describes a setup to realize this. |
398 | 398 |
399 @node Visibility cycling, Motion, Headlines, Document Structure | 399 @node Visibility cycling, Motion, Headlines, Document structure |
400 @section Visibility cycling | 400 @section Visibility cycling |
401 @cindex cycling, visibility | 401 @cindex cycling, visibility |
402 @cindex visibility cycling | 402 @cindex visibility cycling |
403 @cindex trees, visibility | 403 @cindex trees, visibility |
404 @cindex show hidden text | 404 @cindex show hidden text |
456 #+STARTUP: overview | 456 #+STARTUP: overview |
457 #+STARTUP: content | 457 #+STARTUP: content |
458 #+STARTUP: showall | 458 #+STARTUP: showall |
459 @end example | 459 @end example |
460 | 460 |
461 @node Motion, Structure editing, Visibility cycling, Document Structure | 461 @node Motion, Structure editing, Visibility cycling, Document structure |
462 @section Motion | 462 @section Motion |
463 @cindex motion, between headlines | 463 @cindex motion, between headlines |
464 @cindex jumping, to headlines | 464 @cindex jumping, to headlines |
465 @cindex headline navigation | 465 @cindex headline navigation |
466 The following commands jump to other headlines in the buffer. | 466 The following commands jump to other headlines in the buffer. |
489 After pressing @key{RET}, the cursor moves to the selected location in | 489 After pressing @key{RET}, the cursor moves to the selected location in |
490 the original buffer, and the headings hierarchy above it is made | 490 the original buffer, and the headings hierarchy above it is made |
491 visible. | 491 visible. |
492 @end table | 492 @end table |
493 | 493 |
494 @node Structure editing, Archiving, Motion, Document Structure | 494 @node Structure editing, Archiving, Motion, Document structure |
495 @section Structure editing | 495 @section Structure editing |
496 @cindex structure editing | 496 @cindex structure editing |
497 @cindex headline, promotion and demotion | 497 @cindex headline, promotion and demotion |
498 @cindex promotion, of subtrees | 498 @cindex promotion, of subtrees |
499 @cindex demotion, of subtrees | 499 @cindex demotion, of subtrees |
505 | 505 |
506 @table @kbd | 506 @table @kbd |
507 @kindex M-@key{RET} | 507 @kindex M-@key{RET} |
508 @item M-@key{RET} | 508 @item M-@key{RET} |
509 Insert new heading with same level as current. If the cursor is in a | 509 Insert new heading with same level as current. If the cursor is in a |
510 plain list item, a new item is created. To force creation of a new | 510 plain list item, a new item is created (@pxref{Plain lists}). To force |
511 headline, use a prefix arg, or first press @key{RET} to get to the | 511 creation of a new headline, use a prefix arg, or first press @key{RET} |
512 beginning of the next line. | 512 to get to the beginning of the next line. When this command is used in |
513 the middle of a line, the line is split and the rest of the line becomes | |
514 the new headline. If the command is used at the beginning of a | |
515 headline, the new headline is created before the current line. It at | |
516 the beginning of any other line, the content of that line is made the | |
517 new heading. | |
513 @kindex M-S-@key{RET} | 518 @kindex M-S-@key{RET} |
514 @item M-S-@key{RET} | 519 @item M-S-@key{RET} |
515 Insert new TODO entry with same level as current heading. | 520 Insert new TODO entry with same level as current heading. |
516 @kindex M-@key{left} | 521 @kindex M-@key{left} |
517 @item M-@key{left} | 522 @item M-@key{left} |
557 line, mark at the beginning of the first headline, and point at the line | 562 line, mark at the beginning of the first headline, and point at the line |
558 just after the last headline to change. Note that when the cursor is | 563 just after the last headline to change. Note that when the cursor is |
559 inside a table (@pxref{Tables}), the Meta-Cursor keys have different | 564 inside a table (@pxref{Tables}), the Meta-Cursor keys have different |
560 functionality. | 565 functionality. |
561 | 566 |
562 @node Archiving, Sparse trees, Structure editing, Document Structure | 567 @node Archiving, Sparse trees, Structure editing, Document structure |
563 @section Archiving | 568 @section Archiving |
564 @cindex archiving | 569 @cindex archiving |
565 @cindex filing subtrees | 570 @cindex filing subtrees |
566 | 571 |
567 When a project represented by a (sub)tree is finished, you may want | 572 When a project represented by a (sub)tree is finished, you may want |
581 this, see the documentation string of the variable | 586 this, see the documentation string of the variable |
582 @code{org-archive-location}. If you are also using the Org-mode | 587 @code{org-archive-location}. If you are also using the Org-mode |
583 agenda, archiving to a different file is a good way to keep archived | 588 agenda, archiving to a different file is a good way to keep archived |
584 trees from contributing agenda items. | 589 trees from contributing agenda items. |
585 | 590 |
586 @node Sparse trees, Plain Lists, Archiving, Document Structure | 591 @node Sparse trees, Plain lists, Archiving, Document structure |
587 @section Sparse trees | 592 @section Sparse trees |
588 @cindex sparse trees | 593 @cindex sparse trees |
589 @cindex trees, sparse | 594 @cindex trees, sparse |
590 @cindex folding, sparse trees | 595 @cindex folding, sparse trees |
591 @cindex occur, command | 596 @cindex occur, command |
641 Or you can use the command @kbd{C-c C-x v} to copy the visible part of | 646 Or you can use the command @kbd{C-c C-x v} to copy the visible part of |
642 the document to another file (extension @file{.txt}) which can then be | 647 the document to another file (extension @file{.txt}) which can then be |
643 printed in any desired way. | 648 printed in any desired way. |
644 | 649 |
645 | 650 |
646 @node Plain Lists, , Sparse trees, Document Structure | 651 @node Plain lists, , Sparse trees, Document structure |
647 @section Plain Lists | 652 @section Plain lists |
648 @cindex plain lists | 653 @cindex plain lists |
649 @cindex lists, plain | 654 @cindex lists, plain |
650 @cindex lists, ordered | 655 @cindex lists, ordered |
651 @cindex ordered lists | 656 @cindex ordered lists |
652 | 657 |
697 given by the indentation of the bullet/number. However, items are | 702 given by the indentation of the bullet/number. However, items are |
698 always subordinate to real headlines, the hierarchies remain | 703 always subordinate to real headlines, the hierarchies remain |
699 completely separated. | 704 completely separated. |
700 @kindex M-@key{RET} | 705 @kindex M-@key{RET} |
701 @item M-@key{RET} | 706 @item M-@key{RET} |
702 Insert new item at current level. With prefix arg, for a new heading. | 707 Insert new item at current level. With prefix arg, force a new heading |
708 (@pxref{Structure editing}). If this command is used in the middle of a | |
709 line, the line is @emph{split} and the rest of the line becomes the new | |
710 item. If this command is executed in the @emph{whitespace before a bullet or | |
711 number}, the new item is created @emph{before} the current item. If the | |
712 command is executed in the white space before the text that is part of | |
713 an item but does not contain the bullet, a bullet is added to the | |
714 current line. | |
703 @kindex M-S-@key{up} | 715 @kindex M-S-@key{up} |
704 @kindex M-S-@key{down} | 716 @kindex M-S-@key{down} |
705 @item M-S-@key{up} | 717 @item M-S-@key{up} |
706 @itemx M-S-@key{down} | 718 @itemx M-S-@key{down} |
707 Move the item including subitems up/down (swap with previous/next item | 719 Move the item including subitems up/down (swap with previous/next item |
720 @kindex C-c C-c | 732 @kindex C-c C-c |
721 @item C-c C-c | 733 @item C-c C-c |
722 Renumber the ordered list at the cursor. | 734 Renumber the ordered list at the cursor. |
723 @end table | 735 @end table |
724 | 736 |
725 @node Tables, Hyperlinks, Document Structure, Top | 737 @node Tables, Hyperlinks, Document structure, Top |
726 @chapter Tables | 738 @chapter Tables |
727 @cindex tables | 739 @cindex tables |
728 @cindex editing tables | 740 @cindex editing tables |
729 | 741 |
730 Org-mode has a very fast and intuitive table editor built-in. | 742 Org-mode has a very fast and intuitive table editor built-in. |
1412 | 1424 |
1413 @example | 1425 @example |
1414 # <<My Target>> | 1426 # <<My Target>> |
1415 @end example | 1427 @end example |
1416 | 1428 |
1429 @noindent In HTML export (@pxref{HTML export}), such targets will become | |
1430 named anchors for direct access through http links. | |
1431 | |
1417 If no dedicated target exists, Org-mode will search for the words in the | 1432 If no dedicated target exists, Org-mode will search for the words in the |
1418 link, often removing the need for a dedicated target. In the above | 1433 link, often removing the need for a dedicated target. In the above |
1419 example the search would be for @samp{my target}. Links starting with a | 1434 example the search would be for @samp{my target}. Links starting with a |
1420 star like @samp{*My Target} restrict the search to headlines. When | 1435 star like @samp{*My Target} restrict the search to headlines. When |
1421 searching, Org-mode will first try an exact match, but then move on to | 1436 searching, Org-mode will first try an exact match, but then move on to |
1569 @item C-u C-c C-l | 1584 @item C-u C-c C-l |
1570 When @kbd{C-c C-l} is called with a @kbd{C-u} prefix argument, a link to | 1585 When @kbd{C-c C-l} is called with a @kbd{C-u} prefix argument, a link to |
1571 a file will be inserted and you may use file name completion to select | 1586 a file will be inserted and you may use file name completion to select |
1572 the name of the file. The path to the file is inserted relative to the | 1587 the name of the file. The path to the file is inserted relative to the |
1573 directory of the current org file, if the linked file is in the current | 1588 directory of the current org file, if the linked file is in the current |
1574 directory or in a subdirectory of it. Otherwise an absolute path, if | 1589 directory or in a subdirectory of it, or if the path is written relative |
1575 possible with @samp{~/} for your home directory is used. You can force | 1590 to the current directory using @samp{../}. Otherwise an absolute path |
1576 an absolute path with two @kbd{C-u} prefixes. | 1591 is used, if possible with @samp{~/} for your home directory. You can |
1592 force an absolute path with two @kbd{C-u} prefixes. | |
1577 | 1593 |
1578 @item C-c C-l @r{with cursor on existing link} | 1594 @item C-c C-l @r{with cursor on existing link} |
1579 When the cursor is on an existing link, @kbd{C-c C-l} allows to edit the | 1595 When the cursor is on an existing link, @kbd{C-c C-l} allows to edit the |
1580 link and description parts of the link. | 1596 link and description parts of the link. |
1581 | 1597 |
1646 @item 255 | 1662 @item 255 |
1647 Jump to line 255. | 1663 Jump to line 255. |
1648 @item My Target | 1664 @item My Target |
1649 Search for a link target @samp{<<My Target>>}, or do a text search for | 1665 Search for a link target @samp{<<My Target>>}, or do a text search for |
1650 @samp{my target}, similar to the search in internal links, see | 1666 @samp{my target}, similar to the search in internal links, see |
1651 @ref{Internal links}. | 1667 @ref{Internal links}. In HTML export (@pxref{HTML export}), such a file |
1668 link will become an html reference to the corresponding named anchor in | |
1669 the linked file. | |
1652 @item *My Target | 1670 @item *My Target |
1653 In an Org-mode file, restrict search to headlines. | 1671 In an Org-mode file, restrict search to headlines. |
1654 @item /regexp/ | 1672 @item /regexp/ |
1655 Do a regular expression search for @code{regexp}. This uses the Emacs | 1673 Do a regular expression search for @code{regexp}. This uses the Emacs |
1656 command @code{occur} to list all matches in a separate window. If the | 1674 command @code{occur} to list all matches in a separate window. If the |
1819 numerical prefix N, show the tree for the Nth keyword in the variable | 1837 numerical prefix N, show the tree for the Nth keyword in the variable |
1820 @code{org-todo-keywords}. | 1838 @code{org-todo-keywords}. |
1821 @kindex C-c a t | 1839 @kindex C-c a t |
1822 @item C-c a t | 1840 @item C-c a t |
1823 Show the global TODO list. This collects the TODO items from all | 1841 Show the global TODO list. This collects the TODO items from all |
1824 agenda files (@pxref{Agenda Views}) into a single buffer. The buffer is in | 1842 agenda files (@pxref{Agenda views}) into a single buffer. The buffer is in |
1825 @code{agenda-mode}, so there are commands to examine and manipulate | 1843 @code{agenda-mode}, so there are commands to examine and manipulate |
1826 the TODO entries directly from that buffer (@pxref{Agenda commands}). | 1844 the TODO entries directly from that buffer (@pxref{Agenda commands}). |
1827 @xref{Global TODO list}, for more information. | 1845 @xref{Global TODO list}, for more information. |
1828 @item @code{org-agenda-include-all-todo} | 1846 @item @code{org-agenda-include-all-todo} |
1829 If you would like to have all your TODO items listed as part of your | 1847 If you would like to have all your TODO items listed as part of your |
1845 Then each time you turn a TODO entry into DONE using either @kbd{C-c | 1863 Then each time you turn a TODO entry into DONE using either @kbd{C-c |
1846 C-t} in the Org-mode buffer or @kbd{t} in the agenda buffer, a line | 1864 C-t} in the Org-mode buffer or @kbd{t} in the agenda buffer, a line |
1847 @samp{CLOSED: [timestamp]} will be inserted just after the headline. | 1865 @samp{CLOSED: [timestamp]} will be inserted just after the headline. |
1848 If you turn the entry back into a TODO item again through further | 1866 If you turn the entry back into a TODO item again through further |
1849 state cycling, that line will be removed again. In the timeline | 1867 state cycling, that line will be removed again. In the timeline |
1850 (@pxref{Timeline}) and in the agenda (@pxref{Weekly/Daily Agenda}), | 1868 (@pxref{Timeline}) and in the agenda (@pxref{Weekly/Daily agenda}), |
1851 you can then use the @kbd{L} key to display the TODO items closed on | 1869 you can then use the @kbd{L} key to display the TODO items closed on |
1852 each day, giving you an overview of what has been done on a day. | 1870 each day, giving you an overview of what has been done on a day. |
1853 | 1871 |
1854 @node TODO extensions, Priorities, Progress logging, TODO items | 1872 @node TODO extensions, Priorities, Progress logging, TODO items |
1855 @section Extended use of TODO keywords | 1873 @section Extended use of TODO keywords |
1987 | 2005 |
1988 @noindent | 2006 @noindent |
1989 With its standard setup, Org-mode supports priorities @samp{A}, | 2007 With its standard setup, Org-mode supports priorities @samp{A}, |
1990 @samp{B}, and @samp{C}. @samp{A} is the highest priority. An entry | 2008 @samp{B}, and @samp{C}. @samp{A} is the highest priority. An entry |
1991 without a cookie is treated as priority @samp{B}. Priorities make a | 2009 without a cookie is treated as priority @samp{B}. Priorities make a |
1992 difference only in the agenda (@pxref{Weekly/Daily Agenda}). | 2010 difference only in the agenda (@pxref{Weekly/Daily agenda}). |
1993 | 2011 |
1994 @table @kbd | 2012 @table @kbd |
1995 @kindex @kbd{C-c ,} | 2013 @kindex @kbd{C-c ,} |
1996 @item @kbd{C-c ,} | 2014 @item @kbd{C-c ,} |
1997 Set the priority of the current item. The command prompts for a | 2015 Set the priority of the current item. The command prompts for a |
2032 | 2050 |
2033 A time stamp is a specification of a date (possibly with time) in a | 2051 A time stamp is a specification of a date (possibly with time) in a |
2034 special format, either @samp{<2003-09-16 Tue>} or @samp{<2003-09-16 | 2052 special format, either @samp{<2003-09-16 Tue>} or @samp{<2003-09-16 |
2035 Tue 09:39>}. A time stamp can appear anywhere in the headline or body | 2053 Tue 09:39>}. A time stamp can appear anywhere in the headline or body |
2036 of an org-tree entry. Its presence allows entries to be shown on specific | 2054 of an org-tree entry. Its presence allows entries to be shown on specific |
2037 dates in the agenda (@pxref{Weekly/Daily Agenda}). We distinguish: | 2055 dates in the agenda (@pxref{Weekly/Daily agenda}). We distinguish: |
2038 | 2056 |
2039 @table @var | 2057 @table @var |
2040 @cindex timestamp | 2058 @cindex timestamp |
2041 @item TIMESTAMP | 2059 @item TIMESTAMP |
2042 A simple time stamp just assigns a date/time to an item. In the | 2060 A simple time stamp just assigns a date/time to an item. This is just |
2043 timeline and agenda displays, the headline of the entry will be shown | 2061 like writing down an appointment in a paper agenda, or like writing down |
2044 exactly on that date. | 2062 an event in a diary, when you want to take not of when something |
2063 happened. In the timeline and agenda displays, the headline of an entry | |
2064 associated with a plain time stamp will be shown exactly on that date. | |
2045 | 2065 |
2046 @item TIMERANGE | 2066 @item TIMERANGE |
2047 @cindex timerange | 2067 @cindex timerange |
2048 Two time stamps connected by @samp{--} denote a time range. The | 2068 Two time stamps connected by @samp{--} denote a time range. The |
2049 headline will be shown on the first and last day of the range, and on | 2069 headline will be shown on the first and last day of the range, and on |
2051 example: | 2071 example: |
2052 | 2072 |
2053 @example | 2073 @example |
2054 ** Meeting in Amsterdam | 2074 ** Meeting in Amsterdam |
2055 <2004-08-23 Mon>--<2004-08-26 Thu> | 2075 <2004-08-23 Mon>--<2004-08-26 Thu> |
2076 @end example | |
2077 | |
2078 @item SCHEDULED | |
2079 @cindex SCHEDULED keyword | |
2080 If a time stamp is preceded by the word @samp{SCHEDULED:}, it means you | |
2081 are planning to start working on that task on the given date. So this is | |
2082 not about recording an event, but about planning your work. The | |
2083 headline will be listed under the given date. In addition, a reminder | |
2084 that the scheduled date has passed will be present in the compilation | |
2085 for @emph{today}, until the entry is marked DONE. I.e., the task will | |
2086 automatically be forwarded until completed. | |
2087 | |
2088 @example | |
2089 *** TODO Call Trillian to ask her out for a date on New Years Eve. | |
2090 SCHEDULED: <2004-12-25 Sat> | |
2056 @end example | 2091 @end example |
2057 | 2092 |
2058 @item DEADLINE | 2093 @item DEADLINE |
2059 @cindex DEADLINE keyword | 2094 @cindex DEADLINE keyword |
2060 If a time stamp is preceded by the word @samp{DEADLINE:}, the task | 2095 If a time stamp is preceded by the word @samp{DEADLINE:}, the task |
2067 @example | 2102 @example |
2068 *** TODO write article about the Earth for the Guide | 2103 *** TODO write article about the Earth for the Guide |
2069 The editor in charge is <bbdb:Ford Prefect> | 2104 The editor in charge is <bbdb:Ford Prefect> |
2070 DEADLINE: <2004-02-29 Sun> | 2105 DEADLINE: <2004-02-29 Sun> |
2071 @end example | 2106 @end example |
2072 | |
2073 @item SCHEDULED | |
2074 @cindex SCHEDULED keyword | |
2075 If a time stamp is preceded by the word @samp{SCHEDULED:}, it means | |
2076 you are planning to start working on that task on the given date. The | |
2077 headline will be listed under the given date. In addition, a reminder | |
2078 that the scheduled date has passed will be present in the compilation | |
2079 for @emph{today}, until the entry is marked DONE. I.e., the | |
2080 task will automatically be forwarded. | |
2081 @end table | 2107 @end table |
2082 | 2108 |
2083 @node Creating timestamps, , Time stamps, Timestamps | 2109 @node Creating timestamps, , Time stamps, Timestamps |
2084 @section Creating timestamps | 2110 @section Creating timestamps |
2085 @cindex creating timestamps | 2111 @cindex creating timestamps |
2118 instead. | 2144 instead. |
2119 | 2145 |
2120 @kindex C-c C-o | 2146 @kindex C-c C-o |
2121 @item C-c C-o | 2147 @item C-c C-o |
2122 Access the agenda for the date given by the time stamp at point | 2148 Access the agenda for the date given by the time stamp at point |
2123 (@pxref{Weekly/Daily Agenda}). | 2149 (@pxref{Weekly/Daily agenda}). |
2124 | 2150 |
2125 @kindex C-c C-d | 2151 @kindex C-c C-d |
2126 @item C-c C-d | 2152 @item C-c C-d |
2127 Insert @samp{DEADLINE} keyword along with a stamp. | 2153 Insert @samp{DEADLINE} keyword along with a stamp. |
2128 @kindex C-c C-w | 2154 @kindex C-c C-w |
2205 @kindex @key{RET} | 2231 @kindex @key{RET} |
2206 @item @key{RET} | 2232 @item @key{RET} |
2207 Choose date in calendar (only if nothing typed into minibuffer). | 2233 Choose date in calendar (only if nothing typed into minibuffer). |
2208 @end table | 2234 @end table |
2209 | 2235 |
2210 @node Tags, Agenda Views, Timestamps, Top | 2236 @node Tags, Agenda views, Timestamps, Top |
2211 @chapter Tags | 2237 @chapter Tags |
2212 @cindex tags | 2238 @cindex tags |
2213 @cindex headline tagging | 2239 @cindex headline tagging |
2214 @cindex matching, tags | 2240 @cindex matching, tags |
2215 @cindex sparse tree, tag based | 2241 @cindex sparse tree, tag based |
2309 @samp{:BOSS:}. The search string @samp{WORK|LAPTOP} selects all lines | 2335 @samp{:BOSS:}. The search string @samp{WORK|LAPTOP} selects all lines |
2310 tagged @samp{:WORK:} or @samp{:LAPTOP:}. The string | 2336 tagged @samp{:WORK:} or @samp{:LAPTOP:}. The string |
2311 @samp{WORK|LAPTOP&NIGHT} requires that the @samp{:LAPTOP:} lines are | 2337 @samp{WORK|LAPTOP&NIGHT} requires that the @samp{:LAPTOP:} lines are |
2312 also tagged @samp{NIGHT}. | 2338 also tagged @samp{NIGHT}. |
2313 | 2339 |
2314 @node Agenda Views, Exporting, Tags, Top | 2340 @node Agenda views, Exporting, Tags, Top |
2315 @chapter Agenda Views | 2341 @chapter Agenda Views |
2316 @cindex agenda views | 2342 @cindex agenda views |
2317 | 2343 |
2318 Due to the way Org-mode works, TODO items, time-stamped items, and | 2344 Due to the way Org-mode works, TODO items, time-stamped items, and |
2319 tagged headlines can be scattered throughout a file or even a number of | 2345 tagged headlines can be scattered throughout a file or even a number of |
2343 edit these files remotely. | 2369 edit these files remotely. |
2344 | 2370 |
2345 @menu | 2371 @menu |
2346 * Agenda files:: Files being searched for agenda information | 2372 * Agenda files:: Files being searched for agenda information |
2347 * Agenda dispatcher:: Keyboard access to agenda views | 2373 * Agenda dispatcher:: Keyboard access to agenda views |
2348 * Weekly/Daily Agenda:: The calendar page with current tasks | 2374 * Weekly/Daily agenda:: The calendar page with current tasks |
2349 * Global TODO list:: All unfinished action items | 2375 * Global TODO list:: All unfinished action items |
2350 * Matching headline tags:: Structured information with fine-tuned search | 2376 * Matching headline tags:: Structured information with fine-tuned search |
2351 * Timeline:: Time-sorted view for single file | 2377 * Timeline:: Time-sorted view for single file |
2352 * Agenda commands:: Remote editing of org trees | 2378 * Agenda commands:: Remote editing of org trees |
2353 @end menu | 2379 @end menu |
2354 | 2380 |
2355 @node Agenda files, Agenda dispatcher, Agenda Views, Agenda Views | 2381 @node Agenda files, Agenda dispatcher, Agenda views, Agenda views |
2356 @section Agenda files | 2382 @section Agenda files |
2357 | 2383 |
2358 The information to be shown is collected from all @emph{agenda files}, | 2384 The information to be shown is collected from all @emph{agenda files}, |
2359 the files listed in the variable @code{org-agenda-files}@footnote{If the | 2385 the files listed in the variable @code{org-agenda-files}@footnote{If the |
2360 value of that variable is not a list, but a single file name, then the | 2386 value of that variable is not a list, but a single file name, then the |
2383 | 2409 |
2384 @noindent | 2410 @noindent |
2385 The Org menu contains the current list of files and can be used | 2411 The Org menu contains the current list of files and can be used |
2386 to visit any of them. | 2412 to visit any of them. |
2387 | 2413 |
2388 @node Agenda dispatcher, Weekly/Daily Agenda, Agenda files, Agenda Views | 2414 @node Agenda dispatcher, Weekly/Daily agenda, Agenda files, Agenda views |
2389 @section The agenda dispatcher | 2415 @section The agenda dispatcher |
2390 @cindex agenda dispatcher | 2416 @cindex agenda dispatcher |
2391 @cindex dispatching agenda commands | 2417 @cindex dispatching agenda commands |
2392 @cindex custom agenda commands | 2418 @cindex custom agenda commands |
2393 @cindex agenda commands, custom | 2419 @cindex agenda commands, custom |
2398 commands accordingly. After pressing @kbd{C-c a}, an additional | 2424 commands accordingly. After pressing @kbd{C-c a}, an additional |
2399 letter is required to execute a command. The dispatcher offers the | 2425 letter is required to execute a command. The dispatcher offers the |
2400 following default commands: | 2426 following default commands: |
2401 @table @kbd | 2427 @table @kbd |
2402 @item a | 2428 @item a |
2403 Create the calendar-like agenda (@pxref{Weekly/Daily Agenda}). | 2429 Create the calendar-like agenda (@pxref{Weekly/Daily agenda}). |
2404 @item t / T | 2430 @item t / T |
2405 Create a list of all TODO items (@pxref{Global TODO list}). | 2431 Create a list of all TODO items (@pxref{Global TODO list}). |
2406 @item m / M | 2432 @item m / M |
2407 Create a list of headlines matching a TAGS expression (@pxref{Matching | 2433 Create a list of headlines matching a TAGS expression (@pxref{Matching |
2408 headline tags}). | 2434 headline tags}). |
2436 current buffer and display the result as a sparse tree, and @kbd{C-c a | 2462 current buffer and display the result as a sparse tree, and @kbd{C-c a |
2437 f} to create a sparse tree with all entries containing the word | 2463 f} to create a sparse tree with all entries containing the word |
2438 @samp{FIXME}. For more information, look at the documentation string | 2464 @samp{FIXME}. For more information, look at the documentation string |
2439 of the variable @code{org-agenda-custom-commands}. | 2465 of the variable @code{org-agenda-custom-commands}. |
2440 | 2466 |
2441 @node Weekly/Daily Agenda, Global TODO list, Agenda dispatcher, Agenda Views | 2467 @node Weekly/Daily agenda, Global TODO list, Agenda dispatcher, Agenda views |
2442 @section The weekly/daily agenda | 2468 @section The weekly/daily agenda |
2443 @cindex agenda | 2469 @cindex agenda |
2444 | 2470 |
2445 The purpose of the weekly/daily @emph{agenda} is to act like a page of | 2471 The purpose of the weekly/daily @emph{agenda} is to act like a page of |
2446 a paper agenda, showing all the tasks for the current week or day. | 2472 a paper agenda, showing all the tasks for the current week or day. |
2466 * Time-of-day specifications:: How the agenda knows the time | 2492 * Time-of-day specifications:: How the agenda knows the time |
2467 * Calendar/Diary integration:: Integrating Anniversaries and more | 2493 * Calendar/Diary integration:: Integrating Anniversaries and more |
2468 * Sorting of agenda items:: The order of things | 2494 * Sorting of agenda items:: The order of things |
2469 @end menu | 2495 @end menu |
2470 | 2496 |
2471 @node Categories, Time-of-day specifications, Weekly/Daily Agenda, Weekly/Daily Agenda | 2497 @node Categories, Time-of-day specifications, Weekly/Daily agenda, Weekly/Daily agenda |
2472 @subsection Categories | 2498 @subsection Categories |
2473 | 2499 |
2474 @cindex category | 2500 @cindex category |
2475 In the agenda buffer, each entry is preceded by a @emph{category}, | 2501 In the agenda buffer, each entry is preceded by a @emph{category}, |
2476 which is derived from the file name. The category can also be set | 2502 which is derived from the file name. The category can also be set |
2483 If there are several such lines in a file, each specifies the category | 2509 If there are several such lines in a file, each specifies the category |
2484 for the text below it (but the first category also applies to any text | 2510 for the text below it (but the first category also applies to any text |
2485 before the first CATEGORY line). The display in the agenda buffer looks | 2511 before the first CATEGORY line). The display in the agenda buffer looks |
2486 best if the category is not longer than 10 characters. | 2512 best if the category is not longer than 10 characters. |
2487 | 2513 |
2488 @node Time-of-day specifications, Calendar/Diary integration, Categories, Weekly/Daily Agenda | 2514 @node Time-of-day specifications, Calendar/Diary integration, Categories, Weekly/Daily agenda |
2489 @subsection Time-of-Day Specifications | 2515 @subsection Time-of-Day Specifications |
2490 | 2516 |
2491 Org-mode checks each agenda item for a time-of-day specification. The | 2517 Org-mode checks each agenda item for a time-of-day specification. The |
2492 time can be part of the time stamp that triggered inclusion into the | 2518 time can be part of the time stamp that triggered inclusion into the |
2493 agenda, for example as in @w{@samp{<2005-05-10 Tue 19:00>}}. Time | 2519 agenda, for example as in @w{@samp{<2005-05-10 Tue 19:00>}}. Time |
2531 The time grid can be turned on and off with the variable | 2557 The time grid can be turned on and off with the variable |
2532 @code{org-agenda-use-time-grid}, and can be configured with | 2558 @code{org-agenda-use-time-grid}, and can be configured with |
2533 @code{org-agenda-time-grid}. | 2559 @code{org-agenda-time-grid}. |
2534 | 2560 |
2535 | 2561 |
2536 @node Calendar/Diary integration, Sorting of agenda items, Time-of-day specifications, Weekly/Daily Agenda | 2562 @node Calendar/Diary integration, Sorting of agenda items, Time-of-day specifications, Weekly/Daily agenda |
2537 @subsection Calendar/Diary integration | 2563 @subsection Calendar/Diary integration |
2538 @cindex calendar integration | 2564 @cindex calendar integration |
2539 @cindex diary integration | 2565 @cindex diary integration |
2540 | 2566 |
2541 Emacs contains the calendar and diary by Edward M. Reingold. The | 2567 Emacs contains the calendar and diary by Edward M. Reingold. The |
2562 well as the commands @kbd{S}, @kbd{M}, and @kbd{C} to display | 2588 well as the commands @kbd{S}, @kbd{M}, and @kbd{C} to display |
2563 Sunrise/Sunset times, show lunar phases and to convert to other | 2589 Sunrise/Sunset times, show lunar phases and to convert to other |
2564 calendars, respectively. @kbd{c} can be used to switch back and forth | 2590 calendars, respectively. @kbd{c} can be used to switch back and forth |
2565 between calendar and agenda. | 2591 between calendar and agenda. |
2566 | 2592 |
2567 @node Sorting of agenda items, , Calendar/Diary integration, Weekly/Daily Agenda | 2593 @node Sorting of agenda items, , Calendar/Diary integration, Weekly/Daily agenda |
2568 @subsection Sorting of agenda items | 2594 @subsection Sorting of agenda items |
2569 @cindex sorting, of agenda items | 2595 @cindex sorting, of agenda items |
2570 @cindex priorities, of agenda items | 2596 @cindex priorities, of agenda items |
2571 The entries for each day are sorted. The default order is to first | 2597 The entries for each day are sorted. The default order is to first |
2572 collect all items containing an explicit time-of-day specification. | 2598 collect all items containing an explicit time-of-day specification. |
2581 | 2607 |
2582 Sorting can be customized using the variable | 2608 Sorting can be customized using the variable |
2583 @code{org-agenda-sorting-strategy}. | 2609 @code{org-agenda-sorting-strategy}. |
2584 | 2610 |
2585 | 2611 |
2586 @node Global TODO list, Matching headline tags, Weekly/Daily Agenda, Agenda Views | 2612 @node Global TODO list, Matching headline tags, Weekly/Daily agenda, Agenda views |
2587 @section The global TODO list | 2613 @section The global TODO list |
2588 @cindex global TODO list | 2614 @cindex global TODO list |
2589 @cindex TODO list, global | 2615 @cindex TODO list, global |
2590 | 2616 |
2591 The global TODO list contains all unfinished TODO items, formatted and | 2617 The global TODO list contains all unfinished TODO items, formatted and |
2593 | 2619 |
2594 @table @kbd | 2620 @table @kbd |
2595 @kindex C-c a t | 2621 @kindex C-c a t |
2596 @item C-c a t | 2622 @item C-c a t |
2597 Show the global TODO list. This collects the TODO items from all | 2623 Show the global TODO list. This collects the TODO items from all |
2598 agenda files (@pxref{Agenda Views}) into a single buffer. The buffer is in | 2624 agenda files (@pxref{Agenda views}) into a single buffer. The buffer is in |
2599 @code{agenda-mode}, so there are commands to examine and manipulate | 2625 @code{agenda-mode}, so there are commands to examine and manipulate |
2600 the TODO entries directly from that buffer (@pxref{Agenda commands}). | 2626 the TODO entries directly from that buffer (@pxref{Agenda commands}). |
2601 @xref{Global TODO list}, for more information. | 2627 @xref{Global TODO list}, for more information. |
2602 @kindex C-c a T | 2628 @kindex C-c a T |
2603 @item C-c a T | 2629 @item C-c a T |
2614 | 2640 |
2615 Remote editing of TODO items means that you can change the state of a | 2641 Remote editing of TODO items means that you can change the state of a |
2616 TODO entry with a single key press. The commands available in the | 2642 TODO entry with a single key press. The commands available in the |
2617 TODO list are described in @ref{Agenda commands}. | 2643 TODO list are described in @ref{Agenda commands}. |
2618 | 2644 |
2619 @node Matching headline tags, Timeline, Global TODO list, Agenda Views | 2645 @node Matching headline tags, Timeline, Global TODO list, Agenda views |
2620 @section Matching headline tags | 2646 @section Matching headline tags |
2621 @cindex matching, of tags | 2647 @cindex matching, of tags |
2622 @cindex tags view | 2648 @cindex tags view |
2623 | 2649 |
2624 If headlines in the agenda files are marked with @emph{tags} | 2650 If headlines in the agenda files are marked with @emph{tags} |
2641 @end table | 2667 @end table |
2642 | 2668 |
2643 The commands available in the tags list are described in @ref{Agenda | 2669 The commands available in the tags list are described in @ref{Agenda |
2644 commands}. | 2670 commands}. |
2645 | 2671 |
2646 @node Timeline, Agenda commands, Matching headline tags, Agenda Views | 2672 @node Timeline, Agenda commands, Matching headline tags, Agenda views |
2647 @section Timeline for a single file | 2673 @section Timeline for a single file |
2648 @cindex single file summary | 2674 @cindex single file summary |
2649 @cindex agenda, for single file | 2675 @cindex agenda, for single file |
2650 @cindex timeline, single file | 2676 @cindex timeline, single file |
2651 @cindex time-sorted view | 2677 @cindex time-sorted view |
2667 | 2693 |
2668 @noindent | 2694 @noindent |
2669 The commands available in the timeline buffer are listed in | 2695 The commands available in the timeline buffer are listed in |
2670 @ref{Agenda commands}. | 2696 @ref{Agenda commands}. |
2671 | 2697 |
2672 @node Agenda commands, , Timeline, Agenda Views | 2698 @node Agenda commands, , Timeline, Agenda views |
2673 @section Commands in the agenda buffer | 2699 @section Commands in the agenda buffer |
2674 @cindex commands, in agenda buffer | 2700 @cindex commands, in agenda buffer |
2675 | 2701 |
2676 Entries in the agenda buffer are linked back to the org file or diary | 2702 Entries in the agenda buffer are linked back to the org file or diary |
2677 file where they originate. You are not allowed to edit the agenda | 2703 file where they originate. You are not allowed to edit the agenda |
2884 for the compilation of the agenda. Buffers created by the user to | 2910 for the compilation of the agenda. Buffers created by the user to |
2885 visit org files will not be removed. | 2911 visit org files will not be removed. |
2886 | 2912 |
2887 @end table | 2913 @end table |
2888 | 2914 |
2889 @node Exporting, Miscellaneous, Agenda Views, Top | 2915 @node Exporting, Miscellaneous, Agenda views, Top |
2890 @chapter Exporting | 2916 @chapter Exporting |
2891 @cindex exporting | 2917 @cindex exporting |
2892 | 2918 |
2893 Org-mode documents can be exported into a variety of other formats. For | 2919 Org-mode documents can be exported into a variety of other formats. For |
2894 printing and sharing of notes, ASCII export produces a readable and | 2920 printing and sharing of notes, ASCII export produces a readable and |
3000 | 3026 |
3001 Remember to execute @kbd{M-x normal-mode} after changing this to make | 3027 Remember to execute @kbd{M-x normal-mode} after changing this to make |
3002 the new style visible to Emacs. This command restarts org-mode for the | 3028 the new style visible to Emacs. This command restarts org-mode for the |
3003 current buffer and forces Emacs to re-evaluate the local variables | 3029 current buffer and forces Emacs to re-evaluate the local variables |
3004 section in the buffer. | 3030 section in the buffer. |
3031 | |
3032 @c FIXME: More about header and footer styles | |
3033 @c FIXME: Talk about links and targets. | |
3005 | 3034 |
3006 @node XML export, iCalendar export, HTML export, Exporting | 3035 @node XML export, iCalendar export, HTML export, Exporting |
3007 @section XML export | 3036 @section XML export |
3008 @cindex XML export | 3037 @cindex XML export |
3009 | 3038 |
3112 @cindex hand-formatted lists | 3141 @cindex hand-formatted lists |
3113 @cindex lists, hand-formatted | 3142 @cindex lists, hand-formatted |
3114 @item | 3143 @item |
3115 Plain lists @samp{-}, @samp{*} or @samp{+} as bullet, or with @samp{1.} | 3144 Plain lists @samp{-}, @samp{*} or @samp{+} as bullet, or with @samp{1.} |
3116 or @samp{2)} as enumerator will be recognized and transformed if the | 3145 or @samp{2)} as enumerator will be recognized and transformed if the |
3117 backend supports lists. See @xref{Plain Lists}. | 3146 backend supports lists. See @xref{Plain lists}. |
3118 | 3147 |
3119 @cindex underlined text | 3148 @cindex underlined text |
3120 @cindex bold text | 3149 @cindex bold text |
3121 @cindex italic text | 3150 @cindex italic text |
3122 @item | 3151 @item |