annotate man/org.texi @ 65161:451eb4a93201

* progmodes/antlr-mode.el (antlr-default): Fix defface form. (antlr-font-lock-additional-keywords): Fix reference to `antlr-font-lock-literal-regexp' erroneously changed during the mass face rename. (antlr-run-tool): Use `compilation-start'.
author Romain Francoise <romain@orebokech.com>
date Fri, 26 Aug 2005 18:03:46 +0000
parents 3723093a21fd
children 66f0d4d6f32f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 \input texinfo
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2 @c %**start of header
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
3 @c @setfilename org
59542
fdada1e7ef51 Fixed typo in setfilename
Carsten Dominik <dominik@science.uva.nl>
parents: 59541
diff changeset
4 @setfilename ../info/org
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5 @settitle Org Mode Manual
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
7 @set VERSION 3.14
64069
ff90f1b70996 Version 3.13
Carsten Dominik <dominik@science.uva.nl>
parents: 63833
diff changeset
8 @set DATE July 2005
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 @dircategory Emacs
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 @direntry
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
12 * Org Mode: (org). Outline-based notes management and organizer
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 @end direntry
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 @c Version and Contact Info
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 @set MAINTAINERSITE @uref{http://www.astro.uva.nl/~dominik/Tools/org/,maintainers webpage}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 @set MAINTAINER Carsten Dominik
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 @set MAINTAINEREMAIL @email{dominik@@science.uva.nl}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19 @set MAINTAINERCONTACT @uref{mailto:dominik@@science.uva.nl,contact the maintainer}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20 @c %**end of header
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21 @finalout
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 @c Macro definitions
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25 @c Subheadings inside a table. Need a difference between info and the rest.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 @macro tsubheading{text}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 @ifinfo
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28 @subsubheading \text\
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 @end ifinfo
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 @ifnotinfo
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 @item @b{\text\}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32 @end ifnotinfo
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33 @end macro
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35 @copying
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36 This manual is for Org-mode (version @value{VERSION}).
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37
64890
3723093a21fd Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64517
diff changeset
38 Copyright @copyright{} 2004, 2005 Free Software Foundation, Inc.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40 @quotation
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41 Permission is granted to copy, distribute and/or modify this document
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42 under the terms of the GNU Free Documentation License, Version 1.1 or
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
43 any later version published by the Free Software Foundation; with no
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
44 Invariant Sections, with the Front-Cover texts being ``A GNU Manual,''
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45 and with the Back-Cover Texts as in (a) below. A copy of the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
46 license is included in the section entitled ``GNU Free Documentation
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
47 License.''
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
48
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
49 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
50 this GNU Manual, like GNU software. Copies published by the Free
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
51 Software Foundation raise funds for GNU development.''
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52 @end quotation
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53 @end copying
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
54
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
55 @titlepage
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
56 @title Org Mode Manual
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
57
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58 @subtitle Release @value{VERSION}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
59 @author by Carsten Dominik
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
60
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
61 @c The following two commands start the copyright page.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
62 @page
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
63 @vskip 0pt plus 1filll
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
64 @insertcopying
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
65 @end titlepage
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
66
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
67 @c Output the table of contents at the beginning.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
68 @contents
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
70 @ifnottex
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71 @node Top, Introduction, (dir), (dir)
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
72 @top Org Mode Manual
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
73
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
74 @insertcopying
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
75 @end ifnottex
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
76
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
77 @menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
78 * Introduction:: Getting started
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79 * Document Structure:: A tree works like your brain
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
80 * Tables:: Pure magic for quick formatting
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81 * Hyperlinks:: Notes in context
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
82 * TODO items:: Every tree branch can be a TODO item
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 * Timestamps:: Assign date and time to items
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84 * Timeline and Agenda:: Use time-stamped items to produce an agenda
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85 * Exporting:: Sharing and publishing of notes
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86 * Miscellaneous:: All the rest which did not fit elsewhere
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87 * Index:: The fast road to specific information
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88 * Key Index:: Key bindings and where they are described
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90 @detailmenu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 --- The Detailed Node Listing ---
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
92
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
93 Introduction
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95 * Summary:: Brief summary of what Org-mode does
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
96 * Installation and Activation:: How to install Org-mode
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
97 * Feedback:: Bug reports, ideas, patches etc.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99 Document Structure
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 * Outlines:: Org-mode is based on outline-mode
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102 * Headlines:: How to typeset org-tree headlines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 * Visibility cycling:: Show ad hide, much simplified
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104 * Motion:: Jumping to other headlines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105 * Structure editing:: Changing sequence and level of headlines
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
106 * Archiving:: Move done task trees to a different place
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
107 * Sparse trees:: Matches embedded in context
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
108
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
109 Tables
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
110
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
111 * Built-in table editor:: Simple tables
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
112 * Table calculations:: Compute a field from other fields
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
113 * orgtbl-mode:: The table editor as minor mode
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
114 * table.el:: Complex tables
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
115
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
116 Calculations in tables
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
117
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
118 * Formula syntax:: How to write a formula
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
119 * Column formulas:: Formulas valid for all fields in a column
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
120 * Advanced features:: Field names, parameters and automatic recalc
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
121 * Named-field formulas:: Formulas valid in single fields
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
122 * Editing/debugging formulas:: Changing a stored formula
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
123 * Appetizer::
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
124
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
125 Hyperlinks
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
126
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
127 * Links:: URL-like links to the world
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
128 * Remember:: Org-trees store quick notes
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
129
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
130 TODO items
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
131
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
132 * TODO basics:: Marking and displaying TODO entries
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
133 * TODO extensions:: Workflow and assignments
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
134 * Priorities:: Some things are more important than others
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
135
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
136 Extended use of TODO keywords
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
137
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
138 * Workflow states:: From TODO to DONE in steps
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
139 * TODO types:: I do this, Fred the rest
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
140 * Per file keywords:: Different files, different requirements
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
141
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
142 Timestamps
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
143
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
144 * Time stamps:: Assigning a time to a tree entry
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
145 * Creating timestamps:: Commands which insert timestamps
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
146
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
147 Timeline and Agenda
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
148
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
149 * Timeline:: Time-sorted view for single file
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
150 * Agenda:: Your weekly planner
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
151 * Agenda commands:: Remote editing of org trees
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
152 * Calendar/Diary integration:: Integrating Anniversaries and more
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
153
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
154 Calendar/Diary integration
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
155
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
156 * Diary to agenda:: Agenda incorporates the diary
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
157 * Agenda to diary:: Diary incorporates the agenda
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
158
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
159 Exporting
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
160
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
161 * Export commands:: Commands which export and display
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
162 * HTML formatting:: Interpretation of the buffer content
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
163 * Export options:: How to influence exports
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
164 * Comment lines:: Lines which will not be exported
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
165
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
166 Miscellaneous
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
167
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
168 * Completion:: M-TAB knows what you need
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
169 * Customization:: Adapting Org-mode to your taste
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
170 * FAQ:: Frequently asked questions
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
171 * Interaction:: Other Emacs packages
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
172 * Bugs:: Things which do not work perfectly
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
173 * Acknowledgments:: These people provided feedback and more
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
174
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
175 @end detailmenu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
176 @end menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
177
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
178 @node Introduction, Document Structure, Top, Top
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
179 @chapter Introduction
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
180 @cindex introduction
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
181
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
182 @menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
183 * Summary:: Brief summary of what Org-mode does
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
184 * Installation and Activation:: How to install Org-mode
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
185 * Feedback:: Bug reports, ideas, patches etc.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
186 @end menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
187
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
188 @node Summary, Installation and Activation, Introduction, Introduction
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
189 @section Summary
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
190 @cindex summary
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
191
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
192 Org-mode is a mode for keeping notes, maintaining ToDo lists, and doing
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
193 project planning with a fast and effective plain-text system.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
194
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
195 Org-mode develops organizational tasks around NOTES files that contain
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
196 information about projects as plain text. Org-mode is implemented on
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
197 top of outline-mode, which makes it possible to keep the content of
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
198 large files well structured. Visibility cycling and structure editing
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
199 help to work with the tree. Tables are easily created with a built-in
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
200 table editor. Org-mode supports ToDo items, deadlines, time stamps,
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
201 and scheduling. It dynamically compiles entries into an agenda that
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
202 utilizes and smoothly integrates much of the Emacs calendar and diary.
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
203 Plain text URL-like links connect to websites, emails, Usenet
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
204 messages, BBDB entries, and any files related to the projects. For
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
205 printing and sharing of notes, an Org-mode file can be exported as a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
206 structured ASCII file, or as HTML.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
207
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
208 Org-mode keeps simple things simple. Not every outline branch needs
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
209 to be an action item, not every action item needs to have priority or
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
210 scheduling information associated with it. Org-mode can be used on
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
211 different levels and in different ways, for example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
212
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
213 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
214 @r{@bullet{} as an outline extension with visibility cycling and structure editing}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
215 @r{@bullet{} as an ASCII system and table editor to take structured notes}
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
216 @r{@bullet{} as an ASCII table editor with some spreadsheet-like capabilities}
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
217 @r{@bullet{} as a simple hypertext system, with HTML export}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
218 @r{@bullet{} as a TODO list editor}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
219 @r{@bullet{} as a full agenda and planner with deadlines and work scheduling}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
220 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
221
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
222 The Org-mode table editor can be integrated into any major mode by
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
223 activating the minor Orgtbl-mode.
59541
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
224
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
225 There is a website for Org-mode which provides links to the newest
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
226 version of Org-mode, as well as additional information, screen shots
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
227 and example files. This page is located at
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
228 @uref{http://www.astro.uva.nl/~dominik/Tools/org/}.
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
229
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
230 @page
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
231
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
232 @node Installation and Activation, Feedback, Summary, Introduction
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
233 @section Installation and Activation
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
234 @cindex installation
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
235 @cindex autoload
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
236 @cindex global keybindings
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
237 @cindex keybindings, global
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
238
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
239 If Org-mode is part of the Emacs distribution or an XEmacs package,
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
240 you only need to copy the following lines to your @file{.emacs} file.
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
241 The last two lines define @emph{global} keys for the commands
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
242 @command{org-store-link} and @command{org-agenda} - please choose
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
243 suitable keys yourself.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
244
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
245 @lisp
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
246 ;; The following lines are always needed. Choose your own keys.
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
247 (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
248 (define-key global-map "\C-cl" 'org-store-link)
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
249 (define-key global-map "\C-ca" 'org-agenda)
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
250 @end lisp
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
251
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
252 If you have downloaded Org-mode from the Web, you must byte-compile
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
253 @file{org.el} and put it on your load path. In addition to the Emacs
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
254 Lisp lines above, you also need to add the following lines to
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
255 @file{.emacs}:
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
256
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
257 @lisp
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
258 ;; These lines only if org-mode is not part of the X/Emacs distribution.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
259 (autoload 'org-mode "org" "Org mode" t)
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
260 (autoload 'org-diary "org" "Diary entries from Org mode")
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
261 (autoload 'org-agenda "org" "Multi-file agenda from Org mode" t)
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
262 (autoload 'org-store-link "org" "Store a link to the current location" t)
59541
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
263 (autoload 'orgtbl-mode "org" "Org tables as a minor mode" t)
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
264 (autoload 'turn-on-orgtbl "org" "Org tables as a minor mode")
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
265 @end lisp
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
266
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
267 @cindex org-mode, turning on
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
268 With this setup, all files with extension @samp{.org} will be put into
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
269 Org-mode. As an alternative, make the first line of a file look like
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
270 this:
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
271
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
272 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
273 MY PROJECTS -*- mode: org; -*-
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
274 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
275
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
276 @noindent which will select Org-mode for this buffer no matter what
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
277 the file's name is. See also the variable
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
278 @code{org-insert-mode-line-in-empty-file'}.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
279
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
280 @node Feedback, , Installation and Activation, Introduction
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
281 @section Feedback
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
282 @cindex feedback
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
283 @cindex bug reports
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
284 @cindex maintainer
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
285 @cindex author
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
286
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
287 If you find problems with Org-mode, or if you have questions, remarks,
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
288 or ideas about it, please contact the maintainer Carsten Dominik at
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
289 @value{MAINTAINEREMAIL}.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
290
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
291 For bug reports, please provide as much information as possible,
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
292 including the version information of Emacs (@kbd{C-h v emacs-version
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
293 @key{RET}}) and Org-mode (@kbd{M-x org-version}), as well as the
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
294 Org-mode related setup in @file{.emacs}. If an error occurs, a
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
295 traceback can be very useful. Often a small example file helps, along
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
296 with clear information about:
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
297 @enumerate
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
298 @item What exactly did you do?
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
299 @item What did you expect to happen?
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
300 @item What happened instead?
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
301 @end enumerate
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
302 @noindent Thanks for helping to improve this mode.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
303
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
304 @node Document Structure, Tables, Introduction, Top
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
305 @chapter Document Structure
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
306 @cindex document structure
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
307 @cindex structure of document
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
308
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
309 Org-mode is based on outline mode and provides flexible commands to
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
310 edit the structure of the document.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
311
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
312 @menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
313 * Outlines:: Org-mode is based on outline-mode
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
314 * Headlines:: How to typeset org-tree headlines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
315 * Visibility cycling:: Show ad hide, much simplified
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
316 * Motion:: Jumping to other headlines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
317 * Structure editing:: Changing sequence and level of headlines
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
318 * Archiving:: Move done task trees to a different place
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
319 * Sparse trees:: Matches embedded in context
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
320 @end menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
321
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
322 @node Outlines, Headlines, Document Structure, Document Structure
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
323 @section Outlines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
324 @cindex outlines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
325 @cindex outline-mode
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
326
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
327 Org-mode is implemented on top of outline-mode. Outlines allow to
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
328 organize a document in a hierarchical structure, which (at least for
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
329 me) is the best representation of notes and thoughts. Overview over
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
330 this structure is achieved by folding (hiding) large parts of the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
331 document to show only the general document structure and the parts
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
332 currently being worked on. Org-mode greatly simplifies the use of
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
333 outlines by compressing the entire show/hide functionality into a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
334 single command @command{org-cycle}, which is bound to the @key{TAB}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
335 key.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
336
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
337 @node Headlines, Visibility cycling, Outlines, Document Structure
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
338 @section Headlines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
339 @cindex headlines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
340 @cindex outline tree
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
341
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
342 Headlines define the structure of an outline tree. The Headlines in
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
343 Org-mode start with one or more stars, for example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
344
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
345 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
346 * Top level headline
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
347 ** Second level
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
348 *** 3rd level
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
349 some text
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
350 *** 3rd level
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
351 more text
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
352 * Another top level headline
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
353 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
354
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
355 @node Visibility cycling, Motion, Headlines, Document Structure
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
356 @section Visibility cycling
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
357 @cindex visibility cycling
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
358 @cindex trees, visibility
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
359
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
360 Outlines make it possible to hide parts of the text in the buffer.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
361 Org-mode uses a single command bound to the @key{TAB} key to change
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
362 the visibility in the buffer.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
363
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
364 @cindex subtree visibility states
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
365 @cindex folded, subtree visibility state
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
366 @cindex children, subtree visibility state
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
367 @cindex subtree, subtree visibility state
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
368 @table @kbd
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
369 @kindex @key{TAB}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
370 @item @key{TAB}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
371 Rotate current subtree between the states
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
372 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
373 ,-> FOLDED -> CHILDREN -> SUBTREE --.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
374 '-----------------------------------'
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
375 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
376 At the beginning of the buffer (or when called with @kbd{C-u}), this does
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
377 the same as the command @kbd{S-@key{TAB}} below.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
378
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
379 @cindex global visibility states
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
380 @cindex overview, global visibility state
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
381 @cindex contents, global visibility state
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
382 @cindex show all, global visibility state
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
383 @kindex S-@key{TAB}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
384 @item S-@key{TAB}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
385 Rotate the entire buffer between the states
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
386 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
387 ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
388 '--------------------------------------'
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
389 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
390 Note that inside tables, @kbd{S-@key{TAB}} jumps to the previous field.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
391
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
392 @cindex show all, command
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
393 @kindex C-c C-a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
394 @item C-c C-a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
395 Show all.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
396 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
397
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
398 When Emacs first visits an Org-mode file, the global state is set to
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
399 OVERVIEW, i.e. only the top level headlines are visible. This can be
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
400 configured through the variable @code{org-startup-folded}, or on a
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
401 per-file basis by adding one of the following lines anywhere in the
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
402 buffer:
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
403
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
404 @example
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
405 #+STARTUP: fold
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
406 #+STARTUP: nofold
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
407 #+STARTUP: content
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
408 @end example
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
409
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
410 @node Motion, Structure editing, Visibility cycling, Document Structure
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
411 @section Motion
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
412 @cindex motion, between headlines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
413 @cindex jumping, to headlines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
414 The following commands jump to other headlines in the buffer.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
415
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
416 @table @kbd
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
417 @kindex C-c C-n
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
418 @item C-c C-n
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
419 Next heading.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
420 @kindex C-c C-p
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
421 @item C-c C-p
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
422 Previous heading.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
423 @kindex C-c C-f
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
424 @item C-c C-f
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
425 Next heading same level.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
426 @kindex C-c C-b
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
427 @item C-c C-b
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
428 Previous heading same level.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
429 @kindex C-c C-u
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
430 @item C-c C-u
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
431 Backward to higher level heading.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
432 @kindex C-c C-j
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
433 @item C-c C-j
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
434 Jump to a different place without changing the current outline
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
435 visibility. Shows the document structure in a temporary buffer, where
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
436 you can use visibility cycling (@key{TAB}) to find your destination.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
437 After pressing @key{RET}, the cursor moves to the selected location in
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
438 the original buffer, and the headings hierarchy above it is made
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
439 visible.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
440 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
441
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
442 @node Structure editing, Archiving, Motion, Document Structure
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
443 @section Structure editing
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
444 @cindex structure editing
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
445 @cindex headline, promotion and demotion
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
446 @cindex promotion, of subtrees
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
447 @cindex demotion, of subtrees
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
448 @cindex subtree, cut and paste
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
449 @cindex pasting, of subtrees
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
450 @cindex cutting, of subtrees
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
451 @cindex copying, of subtrees
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
452
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
453 @table @kbd
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
454 @kindex M-@key{RET}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
455 @item M-@key{RET}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
456 Insert new heading with same level as current
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
457 @kindex M-S-@key{RET}
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
458 @item M-S-@key{RET}
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
459 Insert new TODO entry with same level as current heading.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
460 @kindex M-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
461 @item M-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
462 Promote current heading by one level
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
463 @kindex M-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
464 @item M-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
465 Demote current heading by one level
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
466 @kindex M-S-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
467 @item M-S-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
468 Promote the current subtree by one level
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
469 @kindex M-S-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
470 @item M-S-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
471 Demote the current subtree by one level
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
472 @kindex M-S-@key{up}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
473 @item M-S-@key{up}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
474 Move subtree up (swap with previous subtree of same level)
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
475 @kindex M-S-@key{down}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
476 @item M-S-@key{down}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
477 Move subtree down (swap with next subtree of same level)
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
478 @kindex C-c C-h C-w
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
479 @item C-c C-h C-w
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
480 Kill subtree, i.e. remove it from buffer but save in kill ring.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
481 @kindex C-c C-h M-w
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
482 @item C-c C-h M-w
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
483 Copy subtree to kill ring.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
484 @kindex C-c C-h C-y
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
485 @item C-c C-h C-y
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
486 Yank subtree from kill ring. This does modify the level of the subtree to
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
487 make sure the tree fits in nicely at the yank position. The yank
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
488 level can also be specified with a prefix arg, or by yanking after a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
489 headline marker like @samp{****}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
490 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
491
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
492 @cindex region, active
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
493 @cindex active region
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
494 @cindex transient-mark-mode
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
495 When there is an active region (transient-mark-mode), promotion and
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
496 demotion work on all headlines in the region. To select a region of
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
497 headlines, it is best to place both point and mark at the beginning of a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
498 line, mark at the beginning of the first headline, and point at the line
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
499 just after the last headline to change. Note that when the cursor is
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
500 inside a table (@pxref{Tables}), the Meta-Cursor keys have different
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
501 functionality.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
502
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
503 @node Archiving, Sparse trees, Structure editing, Document Structure
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
504 @section Archiving
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
505 @cindex archiving
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
506
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
507 When a project represented by a (sub)tree is finished, you may want
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
508 to move the tree to an archive place, either in the same file under a
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
509 special top-level heading, or even to a different file.
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
510 @table @kbd
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
511 @kindex C-c $
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
512 @item @kbd{C-c $}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
513 Archive the subtree starting at the cursor position to the location
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
514 given by @code{org-archive-location}.
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
515 @end table
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
516
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
517 @cindex archive locations
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
518 The default archive is a file in the same directory as the current
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
519 file, with the name derived by appending @file{_archive} to the
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
520 current file name. For information and examples on how to change
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
521 this, see the documentation string of the variable
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
522 @code{org-archive-location}. If you are also using the Org-mode
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
523 agenda, archiving to a different file is a good way to keep archived
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
524 trees from contributing agenda items.
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
525
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
526 @node Sparse trees, , Archiving, Document Structure
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
527 @section Sparse trees
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
528 @cindex sparse trees
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
529 @cindex trees, sparse
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
530 @cindex folding, sparse trees
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
531 @cindex occur, command
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
532
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
533 An important feature of Org-mode is the ability to construct
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
534 @emph{sparse trees} for selected information in an outline tree. A
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
535 sparse tree means that the entire document is folded as much as
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
536 possible, but the selected information is made visible along with the
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
537 headline structure above it@footnote{See also the variable
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
538 @code{org-show-following-heading}.}. Just try it out and you will see
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
539 immediately how it works.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
540
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
541 Org-mode contains several commands creating such trees. The most
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
542 basic one is @command{org-occur}:
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
543
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
544 @table @kbd
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
545 @kindex C-c /
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
546 @item C-c /
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
547 Occur. Prompts for a regexp and shows a sparse tree with all matches.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
548 If the match is in a headline, the headline is made visible. If the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
549 match is in the body of an entry, headline and body are made visible.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
550 In order to provide minimal context, also the full hierarchy of
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
551 headlines above the match is shown, as well as the headline following
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
552 the match.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
553 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
554
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
555 Other commands are using this feature as well. For example @kbd{C-c
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
556 C-v} creates a sparse TODO tree (@pxref{TODO basics}).
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
557
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
558 @kindex C-c C-x v
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
559 @cindex printing sparse trees
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
560 @cindex visible text, printing
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
561 To print a sparse tree, you can use the Emacs command
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
562 @code{ps-print-buffer-with-faces} which does not print invisible parts
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
563 of the document @footnote{This does not work under XEmacs, because
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
564 XEmacs uses selective display for outlining, not text properties}.
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
565 Or you can use the command @kbd{C-c C-x v} to copy the visible part of
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
566 the document to another file (extension @file{.txt}) which then can be
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
567 printed in any desired way.
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
568
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
569 @node Tables, Hyperlinks, Document Structure, Top
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
570 @chapter Tables
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
571 @cindex tables
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
572
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
573 Org-mode has a very fast and intuitive table editor built-in.
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
574 Spreadsheet-like calculations are supported in connection with the
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
575 Emacs @file{calc} package.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
576
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
577 @menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
578 * Built-in table editor:: Simple tables
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
579 * Table calculations:: Compute a field from other fields
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
580 * orgtbl-mode:: The table editor as minor mode
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
581 * table.el:: Complex tables
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
582 @end menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
583
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
584 @node Built-in table editor, Table calculations, Tables, Tables
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
585 @section The built-in table editor
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
586 @cindex table editor, builtin
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
587
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
588 Org-mode makes it easy to format tables in plain ASCII. Any line with
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
589 @samp{|} as the first non-white character is considered part of a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
590 table. @samp{|} is also the column separator. A table might look
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
591 like this:
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
592
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
593 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
594 | Name | Phone | Age |
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
595 |-------+-------+-----|
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
596 | Peter | 1234 | 17 |
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
597 | Anna | 4321 | 25 |
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
598 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
599
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
600 A table is re-aligned automatically each time you press @key{TAB} or
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
601 @key{RET} or @kbd{C-c C-c} inside the table. @key{TAB} also moves to
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
602 the next field (@key{RET} to the next row) and creates new table rows
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
603 at the end of the table or before horizontal lines. The indentation
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
604 of the table is set by the first line. Any line starting with
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
605 @samp{|-} is considered as a horizontal separator line and will be
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
606 expanded on the next re-align to span the whole table width. So, to
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
607 create the above table, you would only type
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
608
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
609 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
610 |Name|Phone|Age
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
611 |-
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
612 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
613
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
614 @noindent and then press @key{TAB} to align the table and start filling in
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
615 fields.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
616
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
617 @table @kbd
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
618 @tsubheading{Creation and conversion}
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
619 @item M-x org-table-create
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
620 Creates an empty Org-mode table. However, it is much easier to just
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
621 start typing, like @kbd{|Name|Phone|Age @key{RET} |- @key{TAB}}
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
622
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
623 @kindex C-c C-c
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
624 @item C-c C-c
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
625 Convert region to table. Works when the cursor is not in an existing
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
626 table, and when there is a region defined. If every line contains at
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
627 least one TAB character, the function assumes that the material is tab
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
628 separated. If not, lines are split at whitespace into fields. You
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
629 can use a prefix argument to indicate how many consecutive spaces are
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
630 at least required to indicate a field separator (default: just one).
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
631
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
632 @tsubheading{Re-aligning and field motion}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
633 @kindex C-c C-c
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
634 @item C-c C-c
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
635 Re-align the table without moving the cursor.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
636
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
637 @kindex @key{TAB}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
638 @item @key{TAB}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
639 Re-align the table, move to the next field. Creates a new row if
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
640 necessary.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
641
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
642 @kindex S-@key{TAB}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
643 @item S-@key{TAB}
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
644 Re-align, move to previous field.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
645
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
646 @kindex @key{RET}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
647 @item @key{RET}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
648 Re-align the table and move down to next row. Creates a new row if
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
649 necessary. At the beginning or end of a line, @key{RET} still does
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
650 NEWLINE, so it can be used to split a table.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
651
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
652 @tsubheading{Column and row editing}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
653 @kindex M-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
654 @kindex M-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
655 @item M-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
656 @itemx M-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
657 Move the current column left/right
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
658
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
659 @kindex M-S-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
660 @item M-S-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
661 Kill the current column.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
662
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
663 @kindex M-S-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
664 @item M-S-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
665 Insert a new column to the left of the cursor position.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
666
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
667 @kindex M-@key{up}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
668 @kindex M-@key{down}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
669 @item M-@key{up}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
670 @itemx M-@key{down}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
671 Move the current row up/down
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
672
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
673 @kindex M-S-@key{up}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
674 @item M-S-@key{up}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
675 Kill the current row or horizontal line.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
676
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
677 @kindex M-S-@key{down}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
678 @item M-S-@key{down}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
679 Insert a new row above (with arg: below) the current row.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
680
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
681 @kindex C-c -
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
682 @item C-c -
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
683 Insert a horizontal line below current row. With prefix arg, the line
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
684 is created above the current line.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
685
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
686 @tsubheading{Regions}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
687 @kindex C-c C-h M-w
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
688 @item C-c C-h M-w
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
689 Copy a rectangular region from a table to a special clipboard. Point
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
690 and mark determine edge fields of the rectangle. The process ignores
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
691 horizontal separator lines.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
692 @kindex C-c C-h C-w
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
693 @item C-c C-h C-w
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
694 Copy a rectangular region from a table to a special clipboard, and
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
695 blank all fields in the rectangle. So this is the ``cut'' operation.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
696 @kindex C-c C-h C-y
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
697 @item C-c C-h C-y
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
698 Paste a rectangular region into a table.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
699 The upper right corner ends up in the current field. All involved fields
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
700 will be overwritten. If the rectangle does not fit into the present table,
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
701 the table is enlarged as needed. The process ignores horizontal separator
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
702 lines.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
703 @kindex C-c C-q
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
704 @item C-c C-q
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
705 Wrap several fields in a column like a paragraph. If there is an active
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
706 region, and both point and mark are in the same column, the text in the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
707 column is wrapped to minimum width for the given number of lines. A
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
708 prefix ARG may be used to change the number of desired lines. If there
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
709 is no region, the current field is split at the cursor position and the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
710 text fragment to the right of the cursor is prepended to the field one
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
711 line down. If there is no region, but you specify a prefix ARG, the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
712 current field gets blank, and the content is appended to the field
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
713 above.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
714
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
715 @tsubheading{Calculations}
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
716 @cindex formula, in tables
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
717 @cindex calculations, in tables
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
718 @kindex C-c =
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
719 @item C-c =
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
720 Install a new formula for the current column and replace current field
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
721 with the result of the formula.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
722
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
723 @kindex C-u C-c =
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
724 @item C-u C-c =
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
725 Install a new formula for the current field, which must be a named
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
726 field. Evaluate the formula and replace the field content with the
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
727 result.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
728
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
729 @kindex C-c '
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
730 @item C-c '
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
731 Edit all formulas associated with the current table in a separate
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
732 buffer.
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
733
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
734 @kindex C-c *
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
735 @item C-c *
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
736 Recalculate the current row by applying the stored formulas from left
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
737 to right. When called with a @kbd{C-u} prefix, recalculate the
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
738 entire table, starting with the first non-header line (i.e. below the
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
739 first horizontal separator line). For details, see @ref{Table calculations}.
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
740
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
741 @kindex C-#
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
742 @item C-#
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
743 Rotate the calculation mark in first column through the states
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
744 @samp{}, @samp{#}, @samp{*}, @samp{!}, @samp{$}. For the meaning of
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
745 these marks see @ref{Advanced features}. When there is an active
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
746 region, change all marks in the region.
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
747
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
748 @kindex C-c ?
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
749 @item C-c ?
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
750 Which table column is the cursor in? Displays number >0 in echo
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
751 area.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
752
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
753 @cindex region, active
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
754 @cindex active region
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
755 @cindex transient-mark-mode
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
756 @kindex C-c +
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
757 @item C-c +
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
758 Sum the numbers in the current column, or in the rectangle defined by
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
759 the active region. The result is shown in the echo area and can
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
760 be inserted with @kbd{C-y}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
761
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
762 @kindex S-@key{RET}
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
763 @item S-@key{RET}
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
764 When current field is empty, copy from first non-empty field above.
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
765 When not empty, copy current field down to next row and move cursor
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
766 along with it. Depending on the variable
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
767 @code{org-table-copy-increment}, integer field values will be
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
768 incremented during copy. This key is also used by CUA-mode
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
769 (@pxref{Interaction}).
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
770
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
771 @tsubheading{Miscellaneous}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
772 @kindex C-c |
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
773 @item C-c |
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
774 Toggle the visibility of vertical lines in tables. The lines are
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
775 still there, only made invisible with a text property. Any @samp{|}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
776 added by hand will become invisible on the next align.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
777
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
778 @item M-x org-table-import
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
779 Import a file as a table. The table should be TAB- or whitespace
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
780 separated. Useful for example to import an Excel table or data from a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
781 database, because these programs generally can write TAB-separated text
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
782 files. This command works by inserting the file into the buffer and
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
783 then converting the region to a table. Any prefix argument is passed on
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
784 to the converter, which uses it to determine the separator.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
785
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
786 @item M-x org-table-export
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
787 Export the table as a TAB-separated file. Useful for data exchange with
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
788 for example Excel or database programs.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
789
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
790 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
791
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
792 If you don't like the automatic table editor because it gets into your
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
793 way in lines which you would like to start with @samp{|}, you can turn
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
794 it off with
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
795 @lisp
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
796 (setq org-enable-table-editor nil)
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
797 @end lisp
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
798 @noindent The only table command which then still works is
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
799 @kbd{C-c C-c} to do a manual re-align.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
800
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
801 @node Table calculations, orgtbl-mode, Built-in table editor, Tables
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
802 @section Calculations in tables
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
803 @cindex calculations, in tables
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
804
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
805 The table editor has some spreadsheet-like capabilities. The Emacs
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
806 @file{calc} package is required for this feature to work. There are
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
807 basically two levels of complexity for table calculations in Org-mode.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
808 On the basic level, tables do only horizontal computations, so a field
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
809 can be computed from other fields @emph{in the same row}, and Org-mode
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
810 assumes that there is only one formula for each column. This is very
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
811 efficient to work with and enough for many tasks. On the complex
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
812 level, columns and individual fields can be named for easier
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
813 referencing in formulas, individual named fields can have their own
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
814 formula associated with them, and recalculation can be automated.
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
815
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
816 @menu
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
817 * Formula syntax:: How to write a formula
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
818 * Column formulas:: Formulas valid for all fields in a column
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
819 * Advanced features:: Field names, parameters and automatic recalc
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
820 * Named-field formulas:: Formulas valid in single fields
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
821 * Editing/debugging formulas:: Changing a stored formula
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
822 * Appetizer:: Taste the power of calc
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
823 @end menu
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
824
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
825 @node Formula syntax, Column formulas, Table calculations, Table calculations
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
826 @subsection Formula syntax
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
827
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
828 A formula can be any algebraic expression understood by the Emacs
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
829 @file{calc} package. Before evaluation by @code{calc-eval}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
830 (@pxref{Calling Calc from Your Lisp Programs,calc-eval,Calling calc
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
831 from Your Lisp Programs,calc,GNU Emacs Calc Manual}), variable
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
832 substitution takes place:
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
833
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
834 @example
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
835 $ @r{refers to the current field}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
836 $3 @r{refers to the field in column 3 of the current row}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
837 $3..$7 @r{a vector of the fields in columns 3-7 of current row}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
838 $P1..$P3 @r{vector of column range, using column names}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
839 &2 @r{second data field above the current, in same column}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
840 &5-2 @r{vector from fifth to second field above current}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
841 &III-II @r{vector of fields between 2nd and 3rd hline above}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
842 &III @r{vector of fields between third hline above and current field}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
843 $name @r{a named field, parameter or constant}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
844 @end example
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
845
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
846 The range vectors can be directly fed into the calc vector functions
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
847 like functions @samp{vmean} and @samp{vsum}.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
848
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
849 @samp{$name} is interpreted as the name of a column, parameter or
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
850 constant. Constants are defined globally through the variable
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
851 @code{org-table-formula-constants}. If you have the
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
852 @file{constants.el} package, it will also be used to resolve
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
853 constants, including natural constants like @samp{$k} for Planck's
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
854 constant, units like @samp{$km} for kilometers. Column names and
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
855 parameters can be specified in special table lines. These are
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
856 described below, see @ref{Advanced features}.
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
857
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
858 A formula can contain an optional mode string after a semicolon. This
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
859 string consists of flags to influence calc's modes@footnote{By
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
860 default, Org-mode uses the standard calc modes (precision 12, angular
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
861 units degrees, fraction and symbolic modes off). However, the display
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
862 format which has been changed to @code{(float 5)} to keep tables
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
863 compact. The default settings can be configured using the variable
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
864 @code{org-calc-default-modes}.} during execution, e.g. @samp{p20} to
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
865 switch the internal precision to 20 digits, @samp{n3}, @samp{s3},
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
866 @samp{e2} or @samp{f4} to switch to normal, scientific, engineering,
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
867 or fix display format, respectively, and @samp{D}, @samp{R}, @samp{F},
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
868 and @samp{S} to turn on degrees, radians, fraction and symbolic modes,
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
869 respectively. In addition, you may provide a @code{printf} format
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
870 specifier to reformat the final result. A few examples:
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
871 @example
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
872 $1+$2 @r{Sum of first and second field}
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
873 $1+$2;%.2f @r{Same, format result to two decimals}
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
874 exp($2)+exp($1) @r{Math functions can be used}
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
875 $;%.1f @r{Reformat current cell to 1 decimal}
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
876 ($3-32)*5/9 @r{Degrees F -> C conversion}
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
877 $c/$1/$cm @r{Hz -> cm conversion, using @file{constants.el}}
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
878 tan($1);Dp3s1 @r{Compute in degrees, precision 3, display SCI 1}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
879 sin($1);Dp3%.1e @r{Same, but use printf specifier for display}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
880 vmean($2..$7) @r{Compute column range mean, using vector function}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
881 vsum(&III) @r{Sum numbers from 3rd hline above to here}
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
882 taylor($3,x=7,2) @r{taylor series of $3, at x=7, second degree}
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
883 @end example
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
884
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
885 @node Column formulas, Advanced features, Formula syntax, Table calculations
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
886 @subsection Column formulas
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
887
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
888 To apply a formula to a field, type it directly into the field,
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
889 preceded by an equal sign, like @samp{=$1+$2}. When you press
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
890 @key{TAB} or @key{RET} or @kbd{C-c C-c} with the cursor still in the
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
891 field, the formula will be stored as the formula for the current
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
892 column, evaluated and the current field replaced with the result. If
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
893 the field contains only @samp{=}, the previously stored formula for
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
894 this column is used.
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
895
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
896 For each column, Org-mode will remember the most recently used
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
897 formula. The information is stored in a special line starting with
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
898 @samp{#+TBLFM} directly below the table. When adding/deleting/moving
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
899 columns with the appropriate commands, the stored equations will be
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
900 modified accordingly. When a column used in a calculation is removed,
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
901 references to this column become invalid and will cause an error upon
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
902 applying the equation.
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
903
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
904 Instead of typing an equation into the field, you may also use the
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
905 command @kbd{C-c =}. It prompts for a formula (with default taken
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
906 from the @samp{#+TBLFM:} line) and applies it to the current field. A
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
907 numerical prefix (e.g. @kbd{C-5 C-c =}) will apply it to that many
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
908 subsequent fields in the current column.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
909
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
910 To recompute all the fields in a line, use the command @kbd{C-c *}.
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
911 It re-applies all stored equations to the current row, from left to
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
912 right. With a @kbd{C-u} prefix, this will be done to every line in
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
913 the table, so use this command it you want to make sure the entire
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
914 table is up-to-date. @kbd{C-u C-c C-c} is another way to update the
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
915 entire table. Global updating does not touch the line(s) above the
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
916 first horizontal separator line, assuming that this is the table
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
917 header.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
918
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
919 @node Advanced features, Named-field formulas, Column formulas, Table calculations
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
920 @subsection Advanced features
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
921
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
922 If you want want the recalculation of fields to happen automatically,
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
923 or if you want to be able to assign a formula to an individual field
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
924 (instead of an entire column) you need to reserve the first column of
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
925 the table for special marking characters. Here is an example of a
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
926 table that collects exam results of students and makes use of these
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
927 features:
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
928 @example
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
929 @group
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
930 |---+---------+--------+--------+--------+-------+------|
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
931 | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
932 |---+---------+--------+--------+--------+-------+------|
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
933 | ! | | P1 | P2 | P3 | Tot | |
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
934 | # | Maximum | 10 | 15 | 25 | 50 | 10.0 |
64069
ff90f1b70996 Version 3.13
Carsten Dominik <dominik@science.uva.nl>
parents: 63833
diff changeset
935 | ^ | | m1 | m2 | m3 | mt | |
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
936 |---+---------+--------+--------+--------+-------+------|
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
937 | # | Peter | 10 | 8 | 23 | 41 | 8.2 |
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
938 | # | Sara | 6 | 14 | 19 | 39 | 7.8 |
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
939 | # | Sam | 2 | 4 | 3 | 9 | 1.8 |
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
940 |---+---------+--------+--------+--------+-------+------|
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
941 | | Average | | | | 29.7 | |
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
942 | ^ | | | | | at | |
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
943 | $ | max=50 | | | | | |
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
944 |---+---------+--------+--------+--------+-------+------|
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
945 #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(&II);%.1f
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
946 @end group
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
947 @end example
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
948
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
949 @noindent @b{Important}: Please note that for these special tables,
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
950 recalculating the table with @kbd{C-u C-c *} does only affect rows
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
951 which are marked @samp{#} or @samp{*}, and named fields. The column
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
952 formulas are not applied in rows with empty first field.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
953
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
954 The marking characters have the following meaning:
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
955 @table @samp
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
956 @item !
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
957 The fields in this line define names for the columns, so that you may
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
958 refer to a column as @samp{$Tot} instead of @samp{$6}.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
959 @item ^
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
960 This row define names for the fields @emph{above} the row. With such
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
961 a definition, any formula in the table may use @samp{$m1} to refer to
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
962 the value @samp{10}. Also, named fields can have their own formula
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
963 associated with them.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
964 @item _
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
965 Similar to @samp{^}, but defines names for the fields in the row
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
966 @emph{below}.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
967 @item $
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
968 Fields in this row can define @emph{parameters} for formulas. For
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
969 example, if a field in a @samp{$} row contains @samp{max=50}, then
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
970 formulas in this table can refer to the value 50 using @samp{$max}.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
971 Parameters work exactly like constants, only that they can be defined on
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
972 a per-table basis. Changing a parameter and then recalculating the
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
973 table can be useful.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
974 @item #
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
975 Fields in this row are automatically recalculated when pressing
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
976 @key{TAB} or @key{RET} or @kbd{S-@key{TAB}} in this row. Also, this row
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
977 is selected for a global recalculation with @kbd{C-u C-c *}. Unmarked
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
978 lines will be left alone by this command.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
979 @item *
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
980 Selects this line for global recalculation with @kbd{C-u C-c *}, but
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
981 not for automatic recalculation. Use this when automatic
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
982 recalculation slows down editing too much.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
983 @item
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
984 Unmarked lines are exempted from recalculation with @kbd{C-u C-c *}.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
985 All lines that should be recalculated should be marked with @samp{#}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
986 or @samp{*}.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
987 @end table
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
988
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
989 @node Named-field formulas, Editing/debugging formulas, Advanced features, Table calculations
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
990 @subsection Named-field formulas
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
991
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
992 A named field can have its own formula associated with it. In the
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
993 example above, this is used for the @samp{at} field that contains
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
994 the average result of the students. To enter a formula for a named
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
995 field, just type it onto the buffer, preceded by @samp{:=}. Or use
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
996 @kbd{C-u C-c =}. This equation will be stored below the table like
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
997 @samp{$name=...}. Any recalculation in the table (even if only
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
998 requested for the current line) will also update all named field
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
999 formulas.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1000
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1001 @node Editing/debugging formulas, Appetizer, Named-field formulas, Table calculations
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1002 @subsection Editing and debugging formulas
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1003
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1004 To edit a column or field formula, you can use the commands @kbd{C-c
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1005 =} and @kbd{C-u C-c =}, respectively. The currently active expression
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1006 is then presented as default in the minibuffer, were it may be edited.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1007
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1008 Note that making a table field blank does not remove the formula
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1009 associated with the field - during the next recalculation the field
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1010 will be filled again. To remove a formula from a field, you have to
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1011 give an empty reply when prompted for the formula, or to edit the
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1012 @samp{#+TBLFM} line.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1013
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1014 @kindex C-c C-c
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1015 You may edit the @samp{#+TBLFM} directly and re-apply
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1016 the changed equations with @kbd{C-c C-c} in that line, or with the
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1017 normal recalculation commands in the table.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1018
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1019 @kindex C-c '
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1020 @kindex C-c C-c
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1021 @kindex C-c C-q
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1022 @kindex C-c ?
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1023 In particular for large tables with many formulas, it is convenient to
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1024 use the command @kbd{C-c '} to edit the formulas of the current table
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1025 in a separate buffer. That buffer will show the formulas one per
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1026 line, and you are free to edit, add and remove formulas. Press
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1027 @kbd{C-c ?} on a @samp{$...} expression to get information about its
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1028 interpretation. Exiting the buffer with @kbd{C-c C-c} only stores the
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1029 modified formulas below the table. Exiting with @kbd{C-u C-c C-c}
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1030 also applies them to the entire table. @kbd{C-c C-q} exits without
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1031 installing the changes.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1032
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1033 When the evaluation of a formula leads to an error, the field content
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1034 becomes the string @samp{#ERROR}. If you would like see what is going
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1035 on during variable substitution and calculation in order to find a
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1036 bug, turn on formula debugging in the menu and repeat the calculation
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1037 by pressing, for example by pressing @kbd{C-c = @key{RET}} in a field.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1038 Detailed information will be displayed.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1039
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1040 @node Appetizer, , Editing/debugging formulas, Table calculations
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1041 @subsection Appetizer
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1042
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1043 Finally, just to wet your appetite on what can be done with the fantastic
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1044 @file{calc} package, here is a table that computes the Taylor series
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1045 for a couple of functions (homework: try that with Excel :-)
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1046
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1047 @example
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1048 @group
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1049 |---+-------------+---+-----+--------------------------------------|
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1050 | | Func | n | x | Result |
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1051 |---+-------------+---+-----+--------------------------------------|
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1052 | # | exp(x) | 1 | x | 1 + x |
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1053 | # | exp(x) | 2 | x | 1 + x + x^2 / 2 |
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1054 | # | exp(x) | 3 | x | 1 + x + x^2 / 2 + x^3 / 6 |
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1055 | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1056 | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2 |
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1057 | * | tan(x) | 3 | x | 0.0175 x + 1.77e-6 x^3 |
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1058 |---+-------------+---+-----+--------------------------------------|
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1059 #+TBLFM: $5=taylor($2,$4,$3);n3
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1060 @end group
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1061 @end example
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1062
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1063 @node orgtbl-mode, table.el, Table calculations, Tables
59541
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
1064 @section The Orgtbl minor mode
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
1065 @cindex orgtbl-mode
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1066 @cindex minor mode for tables
59541
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
1067
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
1068 If you like the intuitive way the Org-mode table editor works, you
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
1069 might want to use it also in other modes like text-mode or mail-mode.
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1070 The minor mode Orgtbl-mode makes this possible. You can always toggle
59541
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
1071 the mode with @kbd{M-x orgtbl-mode}. To turn it on by default, for
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
1072 example in mail mode, use
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
1073 @lisp
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
1074 (add-hook 'mail-mode-hook 'turn-on-orgtbl)
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
1075 @end lisp
7de30c78c347 version 3.04
Carsten Dominik <dominik@science.uva.nl>
parents: 58848
diff changeset
1076
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1077 @node table.el, , orgtbl-mode, Tables
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1078 @section The @file{table.el} package
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1079 @kindex C-c C-c
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1080 @cindex table editor, @file{table.el}
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1081 @cindex @file{table.el}
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1082
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1083 Complex ASCII tables with automatic line wrapping, column- and
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1084 row-spanning, and alignment can be created using the Emacs table
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1085 package by Takaaki Ota (@uref{http://sourceforge.net/projects/table}).
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1086 When @key{TAB} or @kbd{C-c C-c} is pressed in such a table, Org-mode
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1087 will call @command{table-recognize-table} and move the cursor into the
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1088 table. Inside a table, the keymap of Org-mode is inactive. In order
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1089 to execute Org-mode-related commands, leave the table.
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1090
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1091 @table @kbd
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1092 @kindex C-c C-c
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1093 @item C-c C-c
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1094 Recognize @file{table.el} table. Works when the cursor is in a
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1095 table.el table.
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1096
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1097 @kindex C-c ~
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1098 @item C-c ~
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1099 Insert a table.el table. If there is already a table at point, this
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1100 command converts it between the table.el format and the Org-mode
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1101 format. See the documentation string of the command
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1102 @code{org-convert-table} for the restrictions under which this is
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1103 possible.
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1104 @end table
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1105
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1106 @node Hyperlinks, TODO items, Tables, Top
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1107 @chapter Hyperlinks
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1108 @cindex hyperlinks
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1109
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1110 Just like HMTL, Org-mode provides links to other files, Usenet
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1111 articles, emails and much more.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1112
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1113 @menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1114 * Links:: URL-like links to the world
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1115 * Remember:: Org-trees store quick notes
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1116 @end menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1117
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1118 @node Links, Remember, Hyperlinks, Hyperlinks
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1119 @section Links
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1120 @cindex links
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1121 @cindex GNUS links
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1122 @cindex BBDB links
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1123 @cindex URL links
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1124 @cindex file links
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1125 @cindex VM links
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1126 @cindex RMAIL links
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1127 @cindex WANDERLUST links
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1128 @cindex USENET links
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1129 @cindex SHELL links
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1130
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1131 Org-mode supports links to files, websites, Usenet and email messages;
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1132 and BBDB database entries. Links are just plain-text URL-like
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1133 locators, optionally enclosed by angular brackets. The following list
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1134 shows examples for each link type.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1135
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1136 @example
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1137 <http://www.astro.uva.nl/~dominik> @r{on the web}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1138 <file:/home/dominik/images/jupiter.jpg> @r{file, absolute path}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1139 <file:papers/last.pdf> @r{file, relative path}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1140 <file:~/code/main.c:255> @r{file, with line number}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1141 <news:comp.emacs> @r{Usenet link}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1142 <mailto:adent@@galaxy.net> @r{Mail link}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1143 <vm:folder> @r{VM folder link}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1144 <vm:folder#id> @r{VM message link}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1145 <vm://myself@@some.where.org/folder#id> @r{VM on remote machine}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1146 <wl:folder> @r{WANDERLUST folder link}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1147 <wl:folder#id> @r{WANDERLUST message link}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1148 <rmail:folder> @r{RMAIL folder link}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1149 <rmail:folder#id> @r{RMAIL message link}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1150 <gnus:group> @r{GNUS group link}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1151 <gnus:group#id> @r{GNUS article link}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1152 <bbdb:Richard Stallman> @r{BBDB link}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1153 <shell:ls *.org>@footnote{Note that @samp{<} and @samp{>} cannot be part of a link, and therefore of a shell command. If you need redirection, use @@@{ and @@@} instead.} @r{A shell command}
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1154 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1155
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1156 A link may contain space characters and is terminated by @samp{>} or by
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1157 the end of a line. In tables, the end of a table field also terminates
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1158 a link. Angle brackets around a link are not required, but are
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1159 recommended to avoid problems with punctuation and other text following
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1160 the link. See also the variable @code{org-allow-space-in-links}.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1161
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1162 @cindex storing links
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1163 @table @kbd
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1164 @kindex C-c l
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1165 @item C-c l
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1166 Store a link to the current location. This is a @emph{global} command
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1167 which can be used in any buffer to create a link. The link will be
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1168 stored for later insertion into an Org-mode buffer (see below). For VM,
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1169 RMAIL, WANDERLUST, GNUS and BBDB buffers, the link will point to the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1170 current article/entry. For W3 and W3M buffer, the link goes to the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1171 current URL. For any other files, the link will just point to the file.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1172 The key binding @kbd{C-c l} is only a suggestion - see
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1173 @ref{Installation and Activation}.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1174
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1175 @kindex C-c C-l
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1176 @cindex completion, of links
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1177 @cindex completion, of file names
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1178 @item C-c C-l
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1179 Insert a link. This prompts for a link to be inserted into the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1180 buffer. You can just type a link, using one of the link type prefixes
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1181 mentioned in the examples above. Through completion, all links stored
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1182 during the current session can be accessed. When called with prefix
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1183 arg, you can use file name completion to enter a file link. The link
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1184 will be formatted as given in the variable @code{org-link-format} and
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1185 inserted into the buffer. Note that you don't have to use this
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1186 command to insert a link. Links in Org-mode are plain text, and you
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1187 can type or paste them straight into the buffer.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1188
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1189 @cindex inserting links
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1190 @kindex C-c C-o
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1191 @item C-c C-o
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1192 Open link at point. This will launch a web browser for URLs (using
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1193 @command{browse-url-at-point}), run vm/gnus/bbdb for the corresponding
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1194 links, execute the command in a shell link, visit text files with
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1195 Emacs and select a suitable application for non-text files.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1196 Classification of files is based on file extension only. See option
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1197 @code{org-file-apps}. If there is no link at point, the current
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1198 subtree will be searched for one. If you want to override the default
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1199 application and visit the file with Emacs, use a @kbd{C-u} prefix.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1200 If the cursor is on a time stamp, compiles the agenda for that date.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1201
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1202 @strong{IMPORTANT}: Be careful not to use any dangerous commands in a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1203 shell link.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1204
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1205 @kindex mouse-2
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1206 @item mouse-2
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1207 On links, @kbd{mouse-2} will open the link just like @kbd{C-c C-o} would.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1208
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1209 @kindex mouse-3
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1210 @item mouse-3
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1211 Like @kbd{mouse-2}, but force file links to be opened with Emacs.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1212 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1213
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1214 @node Remember, , Links, Hyperlinks
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1215 @section Remember
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1216 @cindex @file{remember.el}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1217
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1218 Another way to create org entries with links to other files is through
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1219 the @emph{Remember} package by John Wiegley. @emph{Remember} lets you
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1220 store quick notes with little interruption of your work flow. See
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1221 @uref{http://www.emacswiki.org/cgi-bin/wiki/RememberMode} for more
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1222 information. The notes produced by @emph{Remember} can be stored in
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1223 different ways, and Org-mode files are a good target. Org-mode allows
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1224 to file away notes either to a default file, or directly to the
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1225 correct location in your Org-mode outline tree. The following
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1226 customization@footnote{The two autoload forms are only necessary if
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1227 @file{org.el} is not part of the Emacs distribution or and XEmacs
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1228 package.} will tell @emph{Remember} to use org files as target, and to
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1229 create annotations compatible with Org-mode links.
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1230
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1231 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1232 (autoload 'org-remember-annotation "org")
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1233 (autoload 'org-remember-handler "org")
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1234 (setq org-directory "~/path/to/my/orgfiles/")
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1235 (setq org-default-notes-file "~/.notes")
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1236 (setq remember-annotation-functions '(org-remember-annotation))
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1237 (setq remember-handler-functions '(org-remember-handler))
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1238 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1239
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1240 When you compose a note with remember, you have to press @kbd{C-c C-c}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1241 to exit remember-mode and to file away the note. The handler first
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1242 prompts for a target file - if you press @key{RET}, the value of
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1243 @code{org-default-notes-file} is used. Then the command offers the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1244 headings tree of the selected file. You can either immediately press
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1245 @key{RET} to get the note appended to the file. Or you can use
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1246 vertical cursor motion (@key{up} and @key{down}) and visibility
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1247 cycling (@key{TAB}) to find a better place. Pressing @key{RET} or
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1248 @key{left} or @key{right} leads to the following result.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1249
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1250 @multitable @columnfractions 0.2 0.1 0.7
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1251 @item @b{Cursor position} @tab @b{Key} @tab @b{Note gets inserted}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1252 @item buffer-start @tab @key{RET} @tab as level 2 heading at end of file
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1253 @item on headline @tab @key{RET} @tab as sublevel of the heading at cursor
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1254 @item @tab @key{left} @tab as same level, before current heading
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1255 @item @tab @key{right} @tab as same level, after current heading
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
1256 @item not on headline @tab @key{RET}
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1257 @tab at cursor position, level taken from context.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1258 Or use prefix arg to specify level manually.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1259 @end multitable
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1260
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1261 So a fast way to store the note is to press @kbd{C-c C-c @key{RET}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1262 @key{RET}} to append it to the default file. Even shorter would be
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1263 @kbd{C-u C-c C-c}, which does the same without even showing the tree.
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1264 But with little extra effort, you can push it directly to the correct
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1265 location.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1266
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1267 Before inserting the text into a tree, the function ensures that the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1268 text has a headline, i.e. a first line that starts with a @samp{*}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1269 If not, a headline is constructed from the current date and some
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1270 additional data. If the variable @code{org-adapt-indentation} is
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1271 non-nil, the entire text is also indented so that it starts in the
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1272 same column as the headline (after the asterisks).
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1273
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1274 @node TODO items, Timestamps, Hyperlinks, Top
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1275 @chapter TODO items
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1276 @cindex TODO items
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1277
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1278 Org-mode does not maintain TODO lists as a separate document. TODO
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1279 items are an integral part of the notes file, because TODO items
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1280 usually come up while taking notes! With Org-mode, you simply mark
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1281 any entry in a tree as being a TODO item. In this way, the
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1282 information is not duplicated, and the entire context from which the
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1283 item emerged is always present when you check.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1284
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1285 Of course, this technique causes TODO items to be scattered throughout
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1286 your file. Org-mode provides methods to give you an overview over all
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1287 things you have to do.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1288
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1289 @menu
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1290 * TODO basics:: Marking and displaying TODO entries
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1291 * TODO extensions:: Workflow and assignments
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1292 * Priorities:: Some things are more important than others
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1293 @end menu
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1294
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1295 @node TODO basics, TODO extensions, TODO items, TODO items
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1296 @section Basic TODO functionality
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1297
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1298 Any headline can become a TODO item by starting it with the word TODO,
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1299 for example
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1300
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1301 @example
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1302 *** TODO Write letter to Sam Fortune
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1303 @end example
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1304
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1305 @noindent
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1306 The most important commands to work with TODO entries are:
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1307
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1308 @table @kbd
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1309 @kindex C-c C-t
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1310 @item C-c C-t
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1311 Rotate the TODO state of the current item between
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1312 @example
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1313 ,-> (unmarked) -> TODO -> DONE --.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1314 '--------------------------------'
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1315 @end example
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1316 The same rotation can also be done ``remotely'' from the timeline and
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1317 agenda buffers with the @kbd{t} command key (@pxref{Agenda commands}).
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1318 @kindex C-c C-v
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1319 @cindex sparse tree, for TODO
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1320 @item C-c C-v
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1321 View TODO items in a @emph{sparse tree} (@pxref{Sparse trees}). Folds
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1322 the entire buffer, but shows all TODO items and the headings hierarchy
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1323 above them. With prefix arg, show also the DONE entries.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1324 @item C-u C-c a
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1325 A @kbd{C-u} argument to the @code{org-agenda command} (@pxref{Agenda})
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1326 collects all unfinished TODO items into a single place.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1327 @end table
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1328
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1329 @node TODO extensions, Priorities, TODO basics, TODO items
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1330 @section Extended use of TODO keywords
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1331 @cindex extended TODO keywords
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1332
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1333 The default implementation of TODO entries is just two states: TODO
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1334 and DONE. You can, however, use the TODO feature for more
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1335 complicated things by configuring the variables
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1336 @code{org-todo-keywords} and @code{org-todo-interpretation}. Using
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1337 special setup, you can even use TODO keywords in different ways in
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1338 different org files.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1339
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1340 @menu
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1341 * Workflow states:: From TODO to DONE in steps
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1342 * TODO types:: I do this, Fred the rest
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1343 * Per file keywords:: Different files, different requirements
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1344 @end menu
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1345
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1346 @node Workflow states, TODO types, TODO extensions, TODO extensions
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1347 @subsection TODO keywords as workflow states
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1348 @cindex TODO workflow
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1349 @cindex workflow states as TODO keywords
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1350
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1351 You can use TODO keywords to indicate different states in the process
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1352 of working on an item, for example
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1353
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1354 @lisp
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1355 (setq org-todo-keywords '("TODO" "FEEDBACK" "VERIFY" "DONE")
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1356 org-todo-interpretation 'sequence)
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1357 @end lisp
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1358
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1359 @cindex completion, of TODO keywords
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1360 With this setup, the command @kbd{C-c C-t} will cycle an entry from
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1361 TODO to FEEDBACK, then to VERIFY, and finally too DONE. You may also
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1362 use a prefix argument to quickly select a specific state. For example
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1363 @kbd{C-3 C-c C-t} will change the state immediately to VERIFY.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1364 If you define many keywords, you can use in-buffer completion (see
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1365 @ref{Completion}) to insert these words into the buffer.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1366
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1367 @node TODO types, Per file keywords, Workflow states, TODO extensions
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1368 @subsection TODO keywords as types
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1369 @cindex TODO types
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1370 @cindex names as TODO keywords
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1371 @cindex types as TODO keywords
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1372
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1373 The second possibility is to use TODO keywords to indicate different
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1374 types of action items. For example, you might want to indicate that
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1375 items are for ``work'' or ``home''. Or, when you work with several
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1376 people on a single project, you might want to assign action items
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1377 directly to persons, by using their names as TODO keywords. This
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1378 would be set up like this:
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1379
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1380 @lisp
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1381 (setq org-todo-keywords '("Fred" "Sara" "Lucy" "Mike" "DONE")
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1382 org-todo-interpretation 'type)
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1383 @end lisp
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1384
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1385 In this case, different keywords do not indicate a sequence, but
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1386 rather different types. So it is normally not useful to change from
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1387 one type to another. Therefore, in this case the behavior of the
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1388 command @kbd{C-c C-t} is changed slightly@footnote{This is also true
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1389 for the @kbd{t} command in the timeline and agenda buffers.}. When
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1390 used several times in succession, it will still cycle through all
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
1391 names. But when when you return to the item after some time and
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1392 execute @kbd{C-c C-t} again, it will switch from each name directly to
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1393 DONE. Use prefix arguments or completion to quickly select a specific
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1394 name.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1395
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1396 @node Per file keywords, , TODO types, TODO extensions
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1397 @subsection Setting up TODO keywords for individual files
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1398 @cindex keyword options
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1399 @cindex per file keywords
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1400
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1401 It can be very useful to use different aspects of the TODO mechanism
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1402 in different files, which is not possible with the global settings
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1403 described above. For file-local settings, you need to add special
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1404 lines to the file which set the keywords and interpretation for that
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1405 file only. For example, to set one of the two examples discussed
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1406 above, you need one of the following lines, starting in column zero
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1407 anywhere in the file:
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1408
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1409 @example
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1410 #+SEQ_TODO: TODO FEEDBACK VERIFY DONE
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1411 #+TYP_TODO: Fred Sara Lucy Mike DONE
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1412 @end example
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1413
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1414 @cindex Completion, of option keywords
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1415 @kindex M-@key{TAB}
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1416 @noindent To make sure you are using the correct keyword, type
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1417 @samp{#+} into the buffer and then use @kbd{M-@key{TAB}} completion.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1418
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1419 @cindex DONE, final TODO keyword
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1420 Remember that the last keyword must always mean that the item is DONE
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1421 (you may use a different word, though). Also note that in each file,
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1422 only one of the two aspects of TODO keywords can be used. After
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1423 changing one of these lines, use @kbd{C-c C-c} with the cursor still
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1424 in the line to make the changes known to Org-mode@footnote{Org-mode
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1425 parses these lines only when Org-mode is activated after visiting a
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1426 file. @kbd{C-c C-c} with the cursor in a line starting with @samp{#-}
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1427 is simply restarting Org-mode, making sure that these changes will be
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
1428 respected.}.
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1429
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1430 If you want to use very many keywords, for example when working with a
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1431 large group of people, you may split the names over several lines:
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1432
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1433 @example
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1434 #+TYP_TODO: Fred Sara Lucy Mike
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1435 #+TYP_TODO: Luis George Jules Jessica
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1436 #+TYP_TODO: Kim Arnold Peter
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1437 #+TYP_TODO: DONE
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1438 @end example
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1439
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1440 @node Priorities, , TODO extensions, TODO items
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1441 @section Priorities
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1442 @cindex priorities
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1443
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1444 If you use Org-mode extensively to organize your work, you may end up
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1445 with a number of TODO entries so large that you'd like to prioritize
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1446 them. This can be done by placing a @emph{priority cookie} into the
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1447 headline, like this
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1448
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1449 @example
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1450 *** TODO [#A] Write letter to Sam Fortune
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1451 @end example
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1452
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1453 @noindent
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1454 With its standard setup, Org-mode supports priorities @samp{A},
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1455 @samp{B}, and @samp{C}. @samp{A} is the highest priority. An entry
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1456 without a cookie is treated as priority @samp{B}. Priorities make a
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1457 difference only in the agenda (@pxref{Agenda}).
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1458
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1459 @table @kbd
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1460 @kindex @kbd{C-c ,}
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1461 @item @kbd{C-c ,}
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1462 Set the priority of the current item. The command prompts for a
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1463 priority character @samp{A}, @samp{B} or @samp{C}. When you press
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1464 @key{SPC} instead, the priority cookie is removed from the headline.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1465 The priorities can also be changed ``remotely'' from the timeline and
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1466 agenda buffer with the @kbd{,} command (@pxref{Agenda commands}).
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1467
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1468 @kindex S-@key{up}
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1469 @kindex S-@key{down}
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1470 @item S-@key{up}
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1471 @itemx S-@key{down}
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1472 Increase/decrease priority of current item. Note that these keys are
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1473 also used to modify time stamps (@pxref{Creating timestamps}).
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1474 Furthermore, these keys are also used by CUA-mode
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1475 (@pxref{Interaction}).
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1476 @end table
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1477
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1478
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1479
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1480 @node Timestamps, Timeline and Agenda, TODO items, Top
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1481 @chapter Timestamps
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1482
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1483 Items can be labeled with timestamps to make them useful for project
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1484 planning.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1485
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1486 @menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1487 * Time stamps:: Assigning a time to a tree entry
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1488 * Creating timestamps:: Commands which insert timestamps
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1489 @end menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1490
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1491
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1492 @node Time stamps, Creating timestamps, Timestamps, Timestamps
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1493 @section Time stamps, deadlines and scheduling
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1494 @cindex time stamps
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1495 @cindex deadlines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1496 @cindex scheduling
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1497
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1498 A time stamp is a specification of a date (possibly with time) in a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1499 special format, either @samp{<2003-09-16 Tue>} or @samp{<2003-09-16
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1500 Tue 09:39>}. A time stamp can appear anywhere in the headline or body
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1501 of an org-tree entry. Its presence allows to show entries on specific
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1502 dates in the agenda (@pxref{Agenda}). We distinguish:
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1503
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1504 @table @var
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1505 @cindex timestamp
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1506 @item TIMESTAMP
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1507 A simple time stamp just assigns a date/time to an item. In the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1508 timeline and agenda displays, the headline of the entry will be shown
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1509 exactly on that date.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1510
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1511 @item TIMERANGE
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1512 @cindex timerange
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1513 Two time stamps connected by @samp{--} denote a time range. The
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1514 headline will be shown on the first and last day of the range, and on
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1515 any dates that are displayed and fall in the range. Here is an
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1516 example:
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1517
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1518 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1519 ** Meeting in Amsterdam
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1520 <2004-08-23 Mon>--<2004-08-26 Thu>
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1521 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1522
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1523 @item DEADLINE
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1524 @cindex DEADLINE keyword
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1525 If a time stamp is preceded by the word @samp{DEADLINE:}, the task
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1526 (most likely a TODO item) is supposed to be finished on that date, and
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1527 it will be listed then. In addition, the compilation for @emph{today}
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1528 will carry a warning about the approaching or missed deadline,
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1529 starting @code{org-deadline-warning-days} before the due date, and
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1530 continuing until the entry is marked DONE. An example:
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1531
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1532 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1533 *** TODO write article about the Earth for the Guide
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1534 The editor in charge is <bbdb:Ford Prefect>
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1535 DEADLINE: <2004-02-29 Sun>
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1536 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1537
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1538 @item SCHEDULED
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1539 @cindex DEADLINE keyword
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1540 If a time stamp is preceded by the word @samp{SCHEDULED:}, it means
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1541 you are planning to start working on that task on the given date. The
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1542 headline will be listed under the given date. In addition, a reminder
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1543 that the scheduled date has passed will be present in the compilation
64069
ff90f1b70996 Version 3.13
Carsten Dominik <dominik@science.uva.nl>
parents: 63833
diff changeset
1544 for @emph{today}, until the entry is marked DONE. I.e., the
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1545 task will automatically be forwarded.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1546 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1547
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1548 @node Creating timestamps, , Time stamps, Timestamps
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1549 @section Creating timestamps
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1550 @cindex creating timestamps
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1551
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1552 For Org-mode to recognize time stamps, they need to be in the specific
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1553 format. All commands listed below produce time stamps in the correct
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1554 format.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1555
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1556 @table @kbd
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1557 @kindex C-c .
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1558 @item C-c .
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1559 Prompt for a date and insert a corresponding time stamp. When the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1560 cursor is at a previously used time stamp, it is updated to NOW. When
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1561 this command is used twice in succession, a time range is inserted.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1562
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1563 @kindex C-u C-c .
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1564 @item C-u C-c .
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1565 Like @kbd{C-c .}, but use the alternative format which contains date
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1566 and time.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1567
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1568 @kindex C-c <
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1569 @item C-c <
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1570 Insert a time stamp corresponding to the cursor date in the Calendar.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1571
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1572 @kindex C-c >
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1573 @item C-c >
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1574 Access the Emacs calendar for the current date. If there is a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1575 timestamp in the current line, goto the corresponding date
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1576 instead.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1577
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1578 @kindex C-c C-o
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1579 @item C-c C-o
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1580 Access the agenda for the date given by the time stamp at point
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1581 (@pxref{Agenda}).
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1582
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1583 @kindex C-c C-d
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1584 @item C-c C-d
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1585 Insert @samp{DEADLINE} keyword along with a stamp.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1586 @kindex C-c C-w
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1587 @cindex sparse tree, for deadlines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1588 @item C-c C-w
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1589 Create a sparse tree with all deadlines that are either past-due, or
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1590 which will become due within @code{org-deadline-warning-days}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1591 With @kbd{C-u} prefix, show all deadlines in the file. With a numeric
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1592 prefix, check that many days. For example, @kbd{C-1 C-c C-w} shows
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1593 all deadlines due tomorrow.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1594
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1595 @kindex C-c C-s
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1596 @item C-c C-s
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1597 Insert @samp{SCHEDULED} keyword along with a stamp.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1598
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1599 @kindex S-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1600 @kindex S-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1601 @item S-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1602 @itemx S-@key{right}
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1603 Change date at cursor by one day. These key bindings conflict with
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1604 CUA-mode (@pxref{Interaction}).
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1605
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1606 @kindex S-@key{up}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1607 @kindex S-@key{down}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1608 @item S-@key{up}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1609 @itemx S-@key{down}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1610 Change the item under the cursor in a timestamp. The cursor can be on
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1611 a year, month, day, hour or minute. Note that if the cursor is not at
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1612 a time stamp, these same keys modify the priority of an item.
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1613 (@pxref{Priorities}). The key bindings also conflict with CUA-mode
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1614 (@pxref{Interaction}).
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
1615
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1616
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1617 @kindex C-c C-y
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1618 @cindex evaluate time range
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1619 @item C-c C-y
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1620 Evaluate a time range by computing the difference between start and
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1621 end. With prefix arg, insert result after the time range (in a table:
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1622 into the following column).
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1623 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1624
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1625 @cindex date, reading in minibuffer
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1626 @cindex time, reading in minibuffer
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1627 @cindex calendar, for selecting date
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1628 When Org-mode prompts for a date/time, the function reading your input
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1629 will replace anything you choose not to specify with the current date
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1630 and time. For details, see the documentation string of
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1631 @command{org-read-date}. Also, a calender will pop up to allow
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1632 selecting a date. The calendar can be fully controlled from the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1633 minibuffer, and a date can be selected with the following commands:
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1634
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1635 @table @kbd
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1636 @kindex <
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1637 @item <
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1638 Scroll calendar backwards by one month.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1639 @kindex >
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1640 @item >
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1641 Scroll calendar forwards by one month.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1642 @kindex mouse-1
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1643 @item mouse-1
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1644 Select date by clicking on it.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1645 @kindex S-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1646 @item S-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1647 One day forward.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1648 @kindex S-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1649 @item S-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1650 One day back.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1651 @kindex S-@key{down}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1652 @item S-@key{down}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1653 One week forward.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1654 @kindex S-@key{up}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1655 @item S-@key{up}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1656 One week back.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1657 @kindex M-S-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1658 @item M-S-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1659 One month forward.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1660 @kindex M-S-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1661 @item M-S-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1662 One month back.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1663 @kindex @key{RET}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1664 @item @key{RET}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1665 Choose date in calendar (only if nothing typed into minibuffer).
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1666 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1667
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1668 @node Timeline and Agenda, Exporting, Timestamps, Top
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1669 @chapter Timeline and Agenda
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1670 @cindex agenda
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1671
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1672 We have already described three commands to filter important
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1673 information in an org file into a sparse tree (@pxref{Sparse trees}):
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1674
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1675 @cindex sparse trees
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1676 @itemize @bullet
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1677 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1678 The TODO tree, (@kbd{C-c C-v}), see @ref{TODO items}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1679 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1680 The occur tree @kbd{C-c /}, see @ref{TODO items}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1681 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1682 Checking upcoming deadlines with @kbd{C-c C-w}, see @ref{Creating
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1683 timestamps}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1684 @end itemize
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1685 @noindent
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1686
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1687 Instead of using the sparse trees, Org-mode can also collect and
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1688 time-sort the important items into a separate buffer, which we call
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1689 the @emph{timeline} of the org file. It can also collect information
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1690 from a @emph{list of files} and in this way provide an @emph{agenda}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1691 which covers all of your current projects, action items and
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1692 appointments.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1693
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1694 @menu
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1695 * Timeline:: Time-sorted view for single file
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1696 * Agenda:: Your weekly planner
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1697 * Agenda commands:: Remote editing of org trees
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1698 * Calendar/Diary integration:: Integrating Anniversaries and more
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1699 @end menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1700
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1701 @node Timeline, Agenda, Timeline and Agenda, Timeline and Agenda
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1702 @section Timeline for a single file
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1703 @cindex single file summary
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1704 @cindex agenda, for single file
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1705 @cindex timeline, single file
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1706 @cindex time-sorted view
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1707
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1708 The timeline shows all time-stamped items in a single Org-mode file,
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1709 in @emph{time-sorted view}. The main purpose of this command is to
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1710 give an overview over events in a project.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1711
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1712 @table @kbd
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1713 @kindex C-c C-r
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1714 @item C-c C-r
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1715 Show a time-sorted view of the org file, with all time-stamped items
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1716 of today or later. When called with a @kbd{C-u} prefix, past dates
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1717 will be included as well. When called with two @kbd{C-u C-u}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1718 prefixes, all unfinished TODO entries (scheduled or not) are also
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1719 listed under the current date.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1720 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1721 @noindent
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1722
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1723 The timeline is shown in a temporary buffer @file{*Org Agenda*}. The
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1724 commands available in the Agenda buffer are listed in @ref{Agenda
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1725 commands}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1726
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1727 @node Agenda, Agenda commands, Timeline, Timeline and Agenda
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1728 @section Agenda
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1729 @cindex agenda
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1730
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1731 An agenda can be compiled from one or more org files. The main
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1732 purpose of this command is to act like a paper agenda, showing you all
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1733 the tasks for the current day or week.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1734
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1735 The Org-mode files to be processed in order to generate the agenda are
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1736 listed in the variable @code{org-agenda-files}. You can customize
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1737 this variable, but the easiest way to maintain it is through the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1738 following commands
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1739
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1740 @cindex files, adding to agenda list
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1741 @table @kbd
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1742 @kindex C-c [
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1743 @item C-c [
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1744 Add current file to the list of agenda files
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1745 @kindex C-c ]
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1746 @item C-c ]
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1747 Remove current file from the list of agenda files.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1748 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1749 @noindent
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1750 The Org menu contains the list of all files and can be used to quickly
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1751 visit any of them.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1752
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1753 The global command @command{org-agenda} compiles the agenda from all
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1754 listed files.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1755
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1756 @table @kbd
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1757 @cindex org-agenda, command
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1758 @kindex C-c a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1759 @item C-c a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1760 Compile an agenda for the current week from a list of org files. The
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1761 agenda shows the entries for each day. With a @kbd{C-u} prefix (or
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1762 when the variable @code{org-agenda-include-all-todo} is @code{t}), all
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1763 unfinished TODO items (also those without a date) are also listed at
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1764 the beginning of the buffer, before the first date.@*
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1765 The key binding @kbd{C-c a} is only a suggestion - see
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1766 @ref{Installation and Activation}.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1767 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1768
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1769 The commands available in the Agenda buffer are listed in
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1770 @ref{Agenda commands}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1771
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1772 @subsection Categories
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1773
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1774 @cindex category
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1775 In the agenda buffer, each entry is preceded by a @emph{category},
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1776 which is derived from the file name. The category can also be set
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1777 with a special line anywhere in the buffer, looking like this:
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1778 @example
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1779 #+CATEGORY: Thesis
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1780 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1781 @noindent
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1782 After changing this line, press @kbd{C-c C-c} with the cursor still in
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1783 the line, to make the changes known to org-mode. Otherwise, the
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1784 change will only be active the next time you visit this file with
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1785 Emacs.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1786
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
1787 The display in the agenda buffer looks best if the category is not
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1788 longer than 10 characters.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1789
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1790 @subsection Time-of-Day Specifications
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1791
64069
ff90f1b70996 Version 3.13
Carsten Dominik <dominik@science.uva.nl>
parents: 63833
diff changeset
1792 Org-mode checks each agenda item for a time-of-day specification. The
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1793 time can be part of the time stamp that triggered inclusion into the
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1794 agenda, for example as in @w{@samp{<2005-05-10 Tue 19:00>}}. Time
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1795 ranges can be specified with two time stamps, like
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1796 @c
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1797 @w{@samp{<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>}}.
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1798
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1799 In the headline of the entry itself, a time(range) may also appear as
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1800 plain text (like @samp{12:45} or a @samp{8:30-1pm}. If the agenda
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1801 integrates the Emacs diary (@pxref{Calendar/Diary integration}), time
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1802 specifications in diary entries are recognized as well.
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1803
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1804 For agenda display, Org-mode extracts the time and displays it in a
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1805 standard 24 hour format as part of the prefix. The example times in
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1806 the previous paragraphs would end up in the agenda like this:
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1807
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1808 @example
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1809 8:30-13:00 Arthur Dent lies in front of the bulldozer
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1810 12:45...... Ford Prefect arrives and takes Arthur to the pub
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1811 19:00...... The Vogon reads his poem
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1812 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1813 @end example
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1814
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1815 If the agenda is in single-day mode, or for the display of today, the
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1816 timed entries are embedded in a time grid, like
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1817
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1818 @example
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1819 8:00...... ------------------
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1820 8:30-13:00 Arthur Dent lies in front of the bulldozer
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1821 10:00...... ------------------
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1822 12:00...... ------------------
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1823 12:45...... Ford Prefect arrives and takes Arthur to the pub
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1824 14:00...... ------------------
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1825 16:00...... ------------------
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1826 18:00...... ------------------
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1827 19:00...... The Vogon reads his poem
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1828 20:00...... ------------------
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1829 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1830 @end example
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1831
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1832 The time grid can be turned on and off with the variable
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1833 @code{org-agenda-use-time-grid}, and can be configured with
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1834 @code{org-agenda-time-grid}.
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1835
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1836
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1837 @subsection Sorting of agenda items
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1838 @cindex sorting, of agenda items
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1839 @cindex priorities, of agenda items
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1840 The entries for each day are sorted. The default order is to first
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1841 collect all items containing an explicit time-of-day specification.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1842 These entries will be shown at the beginning of the list, as a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1843 @emph{schedule} for the day. After that, items remain grouped in
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1844 categories, in the sequence given by @code{org-agenda-files}. Within
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1845 each category, items are sorted by priority (@pxref{Priorities}).
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1846
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1847 The priority is a numerical quantity composed of the base priority
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1848 (2000 for priority @samp{A}, 1000 for @samp{B}, and 0 for @samp{C}),
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1849 plus additional increments for overdue scheduled or deadline items.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1850
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1851 Sorting can be customized using the variable
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1852 @code{org-agenda-sorting-strategy}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1853
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1854 @node Agenda commands, Calendar/Diary integration, Agenda, Timeline and Agenda
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1855 @section Commands in the agenda buffer
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1856
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
1857 Entries in the agenda buffer are linked back to the org file or diary
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
1858 file where they originate. You are not allowed to edit the agenda
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
1859 buffer itself, but commands are provided to show and jump to the
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
1860 original entry location, and to edit the org-files ``remotely'' from
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
1861 the agenda buffer. In this way, all information is stored only once,
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
1862 and you don't risk that your agenda and note files diverge.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1863
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1864 Some commands can be executed with mouse clicks on agenda lines. For
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1865 the other commands, the cursor needs to be in the desired line. Most
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1866 commands are available for both timelines and the agenda. The
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1867 exceptions are marked.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1868
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1869 @table @kbd
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1870 @tsubheading{Motion}
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1871 @kindex n
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1872 @item n
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1873 Next line (same as @key{up}).
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1874 @kindex p
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1875 @item p
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1876 Previous line (same as @key{down}).
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1877 @tsubheading{View/GoTo org file}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1878 @kindex mouse-3
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1879 @kindex @key{SPC}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1880 @item mouse-3
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
1881 @itemx @key{SPC}
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1882 Display the original location of the item in another window.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1883
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1884 @kindex l
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1885 @item l
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1886 Display original location and recenter that window.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1887
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1888 @kindex mouse-2
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1889 @kindex @key{TAB}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1890 @item mouse-2
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1891 @itemx @key{TAB}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1892 Go to the original location of the item in another window.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1893
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1894 @kindex @key{RET}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1895 @itemx @key{RET}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1896 Go to the original location of the item and delete other windows.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1897
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1898 @kindex f
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1899 @item f
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1900 Toggle follow mode. In follow mode, as you move the cursor through
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1901 the agenda buffer, the other window always shows the corresponding
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1902 location in the org file.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1903
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1904 @tsubheading{Change display}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1905 @kindex o
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1906 @item o
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1907 Delete other windows.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1908
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1909 @kindex w
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1910 @item w
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1911 Switch to weekly view (7 days displayed together)
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1912
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1913 @kindex d
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1914 @item d
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1915 Switch to daily view (just one day displayed)
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1916
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1917 @kindex D
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1918 @item D
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1919 Toggle the inclusion of diary entries. See @ref{Calendar/Diary integration}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1920
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1921 @kindex g
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1922 @item g
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1923 Toggle the time grid on and off. See also the variables
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1924 @code{org-agenda-use-time-grid} and @code{org-agenda-time-grid}.
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
1925
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1926 @kindex r
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1927 @item r
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1928 Recreate the agenda buffer, for example to reflect the changes
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1929 after modification of the time stamps of items with S-@key{left} and
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1930 S-@key{right}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1931
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1932 @kindex @key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1933 @item @key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1934 Display the following @code{org-agenda-ndays} days. For example, if
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1935 the display covers a week, switch to the following week. With prefix
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1936 arg, go forward that many times @code{org-agenda-ndays} days. Not
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
1937 available in timelines.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1938
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1939 @kindex @key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1940 @item @key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1941 Display the previous dates. Not available in timelines.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1942
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1943 @kindex .
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1944 @item .
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1945 Goto today.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1946
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1947 @tsubheading{Remote editing}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1948
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1949 @item 0-9
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1950 Digit argument.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1951
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1952 @kindex t
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1953 @item t
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1954 Change the TODO state of the item, both in the agenda and in the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1955 original org file.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1956
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1957 @kindex ,
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1958 @item ,
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1959 Set the priority for the current item. Org-mode prompts for the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1960 priority character. If you reply with @key{SPC}, the priority cookie
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1961 is removed from the entry.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1962
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1963 @kindex P
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1964 @item p
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1965 Display weighted priority of current item.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1966
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1967 @kindex +
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1968 @kindex S-@key{up}
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1969 @item +
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1970 @itemx S-@key{up}
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1971 Increase the priority of the current item. The priority is changed in
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1972 the original buffer, but the agenda is not resorted. Use the @kbd{r}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1973 key for this.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1974
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1975 @kindex -
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
1976 @kindex S-@key{down}
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1977 @item -
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
1978 @itemx S-@key{down}
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1979 Decrease the priority of the current item.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1980
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1981 @kindex S-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1982 @item S-@key{right}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1983 Change the time stamp associated with the current line by one day into
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1984 the future. With prefix argument, change it by that many days. For
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1985 example, @kbd{3 6 5 S-@key{right}} will change it by a year. The
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1986 stamp is changed in the original org file, but the change is not
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
1987 directly reflected in the agenda buffer. Use the
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1988 @kbd{r} key to update the buffer.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1989
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1990 @kindex S-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1991 @item S-@key{left}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1992 Change the time stamp associated with the current line by one day
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1993 into the past.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1994
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1995 @kindex >
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1996 @item >
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1997 Change the time stamp associated with the current line to today.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1998 The key @kbd{>} has been chosen, because it is the same as @kbd{S-.}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1999 on my keyboard.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2000
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2001 @cindex diary entries, creating from agenda
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2002 @kindex i
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2003 @item i
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2004 Insert a new entry into the diary. Prompts for the type of entry
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2005 (day, weekly, monthly, yearly, anniversary, cyclic) and creates a new
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2006 entry in the diary, just like @kbd{i d} etc. would do in the calendar.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2007 The date is taken from the cursor position.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2008
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2009 @tsubheading{Calendar commands}
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2010 @kindex c
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2011 @item c
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2012 Open the Emacs calendar and move to the date at the agenda cursor.
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2013
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2014 @item c
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2015 When in the calendar, compute and show the Org-mode agenda for the
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2016 date at the cursor.
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2017
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2018 @kindex M
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2019 @item M
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2020 Show the phases of the moon for three month around current date.
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2021
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2022 @kindex S
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2023 @item S
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2024 Show sunrise and sunset times. The geographical location must be set
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2025 with calendar variables, see documentation of the Emacs calendar.
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2026
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2027 @kindex C
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2028 @item C
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2029 Convert the date at cursor into many other cultural and historic
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2030 calendars.
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2031
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2032 @kindex H
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2033 @item H
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2034 Show holidays for three month around the cursor date.
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2035
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2036 @tsubheading{Quit and Exit}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2037 @kindex q
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2038 @item q
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2039 Quit Agenda, remove the agenda buffer.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2040
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2041 @kindex x
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2042 @cindex agenda files, removing buffers
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2043 @item x
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2044 Exit agenda, remove the agenda buffer and all buffers loaded by Emacs
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2045 for the compilation of the agenda. Buffers created by the user to
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2046 visit org files will not be removed.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2047
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2048 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2049
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2050 @node Calendar/Diary integration, , Agenda commands, Timeline and Agenda
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2051 @section Calendar/Diary integration
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2052 @cindex calendar integration
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2053 @cindex diary integration
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2054
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2055 Emacs contains the calendar and diary by Edward M. Reingold. The
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2056 calendar displays a three-month calendar with holidays from different
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2057 countries and cultures. The diary allows to keep track of
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2058 anniversaries, lunar phases, sunrise/set, recurrent appointments
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2059 (weekly, monthly) and more. In this way, it is quite complementary to
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2060 Org-mode. It can be very useful to combine output from Org-mode with
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2061 the diary.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2062
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2063 The interaction between Org-mode and diary works both ways: You can
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2064 list entries from the diary in the Org-mode agenda, from which many
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2065 calendar and diary commands are directly accessible. Or you can
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2066 display entries from the org agenda in the Emacs diary.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2067
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2068 @menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2069 * Diary to agenda:: Agenda incorporates the diary
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2070 * Agenda to diary:: Diary incorporates the agenda
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2071 @end menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2072
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2073 @node Diary to agenda, Agenda to diary, Calendar/Diary integration, Calendar/Diary integration
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2074 @subsection Including the diary into the agenda
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2075 @cindex diary to agenda
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2076
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2077 In order to include entries from the Emacs diary into Org-mode's
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2078 agenda, you only need to customize the variable
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2079
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2080 @lisp
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2081 (setq org-agenda-include-diary t)
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2082 @end lisp
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2083 @noindent
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2084
61136
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2085 @noindent After that, everything will happen automatically. All diary
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2086 entries including holidays, anniversaries etc will be included in the
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2087 agenda buffer created by Org-mode. @key{SPC}, @key{TAB}, and
003dd96023ff updated to org-mode version 3.05
Carsten Dominik <dominik@science.uva.nl>
parents: 59542
diff changeset
2088 @key{RET} can be used from the agenda buffer to jump to the diary
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2089 file, in order to edit existing diary entries. The @kbd{i} command to
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2090 insert new entries for the current date works in the agenda buffer, as
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2091 well as the commands @kbd{S}, @kbd{M}, and @kbd{C} to display
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2092 Sunrise/Sunset times, show lunar phases and to convert to other
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2093 calendars, respectively. @kbd{c} can be used to switch back and forth
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2094 between calendar and agenda.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2095
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2096 @node Agenda to diary, , Diary to agenda, Calendar/Diary integration
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2097 @subsection Including the agenda into the diary
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2098
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2099 If you prefer to use the Emacs diary as your main instrument and if
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2100 you wish to include the Org-mode agenda into it, the following steps
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2101 are necessary: Autoload the function @command{org-diary} as shown
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2102 above under @ref{Installation and Activation}. You also need to use
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2103 @emph{fancy diary display} by setting in @file{.emacs}:
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2104
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2105 @lisp
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2106 (add-hook 'diary-display-hook 'fancy-diary-display)
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2107 @end lisp
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2108
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2109 Then include the following line into your @file{~/diary} file, in
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2110 order to get the entries from all files listed in the variable
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2111 @code{org-agenda-files}:
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2112
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2113 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2114 &%%(org-diary)
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2115 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2116 @noindent
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2117 You may also select specific files with
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2118
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2119 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2120 &%%(org-diary) ~/path/to/some/org-file.org
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2121 &%%(org-diary) ~/path/to/another/org-file.org
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2122 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2123
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2124 If you now launch the calendar and press @kbd{d} to display a diary,
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2125 the headlines of entries containing a timestamp, date range, schedule,
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2126 or deadline referring to the selected date will be listed. Just like
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2127 in Org-mode's agenda view, the diary for @emph{today} contains
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2128 additional entries for overdue deadlines and scheduled items. See
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2129 also the documentation of the @command{org-diary} function.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2130
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2131 @node Exporting, Miscellaneous, Timeline and Agenda, Top
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2132 @chapter Exporting
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2133 @cindex exporting
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2134 @cindex ASCII export
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2135 @cindex HTML export
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2136
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2137 @cindex headline levels, for exporting
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2138 For printing and sharing of notes, an Org-mode document can be
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2139 exported as an ASCII file, or as HTML. In the exported version, the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2140 first 3 outline levels will become headlines, defining a general
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2141 document structure. Additional levels will be exported as itemize
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2142 lists. If you want that transition to occur at a different level,
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2143 specify it with a prefix argument. For example,
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2144
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2145 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2146 @kbd{M-1 M-x org-export-as-html}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2147 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2148 @noindent
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2149 creates only top level headlines and does the rest as items.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2150
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2151 @menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2152 * Export commands:: Commands which export and display
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2153 * HTML formatting:: Interpretation of the buffer content
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2154 * Export options:: How to influence exports
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2155 * Comment lines:: Lines which will not be exported
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2156 @end menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2157
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2158 @node Export commands, HTML formatting, Exporting, Exporting
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2159 @section Export commands
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2160
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2161 @cindex region, active
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2162 @cindex active region
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2163 @cindex transient-mark-mode
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2164 @table @kbd
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
2165 @kindex C-c C-x a
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2166 @item C-c C-x a
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2167 Export as ASCII file. If there is an active region, only the region
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2168 will be exported. For an org file @file{myfile.org}, the ASCII file
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2169 will be @file{myfile.txt}. The file will be overwritten without
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2170 warning.
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
2171 @kindex C-c C-x h
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2172 @item C-c C-x h
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2173 Export as HTML file @file{myfile.html}.
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
2174 @kindex C-c C-x C-h
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2175 @item C-c C-x C-h
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2176 Export as HTML file and open it with a browser.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2177 @kindex C-c C-x t
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2178 @item C-c C-x t
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2179 Insert template with export options, see below.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2180 @kindex C-c :
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2181 @item C-c :
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2182 Toggle fixed-width for line or region, see below.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2183 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2184
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2185 @node HTML formatting, Export options, Export commands, Exporting
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2186 @section HTML formatting
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2187
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2188 Not all text is transferred literally to the exported HTML file. The
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2189 exporter implements the following interpretation:
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2190
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2191 @itemize @bullet
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2192 @cindex underlined text
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2193 @cindex bold text
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2194 @cindex italic text
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2195 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2196 You can make words @b{*bold*}, @i{/italic/}, and _underlined_
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2197
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2198 @cindex @TeX{} interpretation
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2199 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2200 Simple @TeX{}-like math constructs are interpreted:
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2201
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2202 @cindex completion, of @TeX{} symbols
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2203 @itemize @minus
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2204 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2205 @samp{10^22} and @samp{J_n} are super- and subscripts. You can quote
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2206 @samp{^} and @samp{_} with a backslash: @samp{\_} and @samp{\^}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2207 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2208 @samp{\alpha} indicates a Greek letter, @samp{\to} an arrow. You can
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2209 use completion for these macros, just type @samp{\} and maybe a few
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2210 letters, and press @kbd{M-@key{TAB}} to see possible completions.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2211 @end itemize
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2212
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2213 @cindex tables, export to HTML
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2214 @item
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2215 Tables are transformed into HTML tables. Data fields before the first
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2216 horizontal separator line will be formatted as table header fields.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2217
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2218 @cindex fixed width
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2219 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2220 Lines starting with @samp{:} are typeset in a fixed-width font, to
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
2221 allow quoting of computer code etc.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2222
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2223 @cindex HTML tags
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2224 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2225 If you want to include HTML tags which should be interpreted as such,
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2226 mark them with a @samp{@@} like in @samp{@@<b>bold text@@</b>}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2227 Plain @samp{<} and @samp{>} are always transformed to @samp{&lt;} and
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2228 @samp{&gt;} in HTML export.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2229 @end itemize
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2230
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2231 If these conversions conflict with your habits of typing ASCII text,
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2232 they can all be turned off with corresponding variables.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2233
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2234 @node Export options, Comment lines, HTML formatting, Exporting
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2235 @section Export options
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2236 @cindex options, for export
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2237
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2238 @cindex completion, of option keywords
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2239 The exporter recognizes special lines in the buffer which provide
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2240 additional information. These lines may be put anywhere in the file.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2241 The whole set of lines can be inserted into the buffer with @kbd{C-c
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2242 C-x t}. For individual lines, a good way to make sure the keyword is
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2243 correct it to type @samp{#+} and then use @kbd{M-@key{TAB}} completion
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
2244 (@pxref{Completion}).
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2245
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2246 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2247 #+TITLE: the title to be shown (default is the buffer name)
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2248 #+AUTHOR: the author (default taken from @code{user-full-name})
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2249 #+EMAIL: his/her email address (default from @code{user-mail-address})
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2250 #+LANGUAGE: language for HTML, e.g. @samp{en} (@code{org-export-default-language})
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2251 #+TEXT: Some descriptive text to be inserted at the beginning.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2252 #+TEXT: Several lines may be given.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2253 #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t *:nil TeX:t
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2254 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2255 @noindent
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2256 The OPTIONS line is a compact form to specify export settings. Here
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2257 you can
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2258 @cindex headline levels
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2259 @cindex section-numbers
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2260 @cindex table of contents
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2261 @cindex linebreak preservation
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2262 @cindex quoted html tags
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2263 @cindex fixed-width sections
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2264 @cindex tables
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2265 @cindex @TeX{}-like syntax for sub- and superscripts
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2266 @cindex emphasized text
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2267 @cindex @TeX{} macros
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2268 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2269 H: @r{set the number of headline levels for export}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2270 num: @r{turn on/off section-numbers}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2271 toc: @r{turn on/off table of contents}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2272 \n: @r{turn on/off linebreak-preservation}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2273 @@: @r{turn on/off quoted html tags}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2274 :: @r{turn on/off fixed-width sections}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2275 |: @r{turn on/off tables}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2276 ^: @r{turn on/off @TeX{}-like syntax for sub- and superscripts.}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2277 *: @r{turn on/off emphasized text (bold, italic, underlined)}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2278 TeX: @r{turn on/off @TeX{} macros}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2279 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2280
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2281 @node Comment lines, , Export options, Exporting
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2282 @section Comment lines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2283 @cindex comment lines
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2284 @cindex exporting, not
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2285
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2286 Lines starting with @samp{#} in column zero are treated as comments
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2287 and will never be exported. Also entire subtrees starting with the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2288 word @samp{COMMENT} will never be exported. Finally, any text before
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2289 the first headline will not be exported either.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2290
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2291 @table @kbd
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2292 @kindex C-c ;
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2293 @item C-c ;
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2294 Toggle the COMMENT keyword at the beginning of an entry.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2295 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2296
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2297 @node Miscellaneous, Index, Exporting, Top
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2298 @chapter Miscellaneous
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2299
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2300 @menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2301 * Completion:: M-TAB knows what you need
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2302 * Customization:: Adapting Org-mode to your taste
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2303 * FAQ:: Frequently asked questions
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2304 * Interaction:: Other Emacs packages
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2305 * Bugs:: Things which do not work perfectly
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2306 * Acknowledgments:: These people provided feedback and more
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2307 @end menu
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2308
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2309 @node Completion, Customization, Miscellaneous, Miscellaneous
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2310 @section Completion
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2311 @cindex completion, of @TeX{} symbols
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2312 @cindex completion, of TODO keywords
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2313 @cindex completion, of dictionary words
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2314 @cindex completion, of option keywords
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2315
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2316 Org-mode supports in-buffer completion. This type of completion does
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2317 not make use of the minibuffer. You simply type a few letters into
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2318 the buffer and use the key to complete text right there.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2319
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2320 @table @kbd
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2321 @kindex M-@key{TAB}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2322 @item M-@key{TAB}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2323 Complete word at point
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2324 @itemize @bullet
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2325 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2326 At the beginning of a headline, complete TODO keywords.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2327 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2328 After @samp{\}, complete @TeX{} symbols supported by the exporter.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2329 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2330 After @samp{#+}, complete the special keywords like @samp{TYP_TODO} or
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2331 @samp{OPTIONS} which set file-specific options for Org-mode. When the
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2332 option keyword is already complete, pressing @kbd{M-@key{TAB}} again
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2333 will insert example settings for this keyword.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2334 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2335 Elsewhere, complete dictionary words using ispell.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2336 @end itemize
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2337 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2338
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2339 @node Customization, FAQ, Completion, Miscellaneous
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2340 @section Customization
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2341 @cindex customization
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2342 @cindex options, for customization
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2343 @cindex variables, for customization
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2344
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2345 There is a large number of variables which can be used to customize
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2346 Org-mode. For the sake of compactness of the manual, we are not
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2347 describing the variables here. For an overview of customization
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2348 variables, use @kbd{M-x org-customize}. Or select @code{Browse Org
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2349 Group} from the @code{Org->Customization} menu.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2350
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2351 @node FAQ, Interaction, Customization, Miscellaneous
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2352 @section Frequently asked questions
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2353
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2354 @enumerate
64069
ff90f1b70996 Version 3.13
Carsten Dominik <dominik@science.uva.nl>
parents: 63833
diff changeset
2355 @item @b{Org-mode seems to be a useful default mode for the various
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2356 @file{README} files I have scattered through my directories. How do I
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2357 turn it on for all @file{README} files?}
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2358 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2359 (add-to-list 'auto-mode-alist '("README$" . org-mode))
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2360 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2361
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2362 @item @b{I would like to have two windows on the same Org-mode
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2363 file, but with different outline visibility. Is that possible?}@*
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2364 @cindex @code{make-indirect-buffer}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2365 @cindex indirect buffers
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2366 In GNU Emacs, you may use @emph{indirect buffers} which do exactly
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2367 this. See the documentation on the command
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2368 @code{make-indirect-buffer}. In XEmacs, this is currently not
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2369 possible because of the different outline implementation.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2370
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2371 @item @b{Is there an easy way to insert links to web locations?}@*
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2372 @cindex URL, paste into buffer
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2373 Sure, just type or paste them into the buffer. A plain-text URL-like
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2374 string is directly interpreted as a link.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2375
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2376 @item @b{When I export my TODO list, every TODO item becomes a
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2377 separate section. How do I enforce these items to be exported as an
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2378 itemized list?}@*
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2379 If you plan to use ASCII or HTML export, make sure things you want to
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2380 be exported as item lists are level 4 at least, even if that does mean
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2381 there is a level jump. For example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2382
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2383 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2384 * Todays top priorities
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2385 **** TODO write a letter to xyz
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2386 **** TODO Finish the paper
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2387 **** Pick up kids at the school
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2388 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2389
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2390 Alternatively, if you need a specific value for the heading/item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2391 transition in a particular file, use the @samp{+OPTIONS} line to
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2392 configure the @samp{H} switch.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2393
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2394 @example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2395 +OPTIONS: H:2; ...
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2396 @end example
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2397
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2398 @item @b{I would like to export only a subtree of my file to HTML. How?}@*
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2399 @cindex exporting a subtree
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2400 If you want to export a subtree, mark the subtree as region and then
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2401 export. Marking can be done with @kbd{C-c @@ C-x C-x}, for example.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2402
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2403 @item @b{Org-mode takes over the S-cursor keys. I also want to use
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2404 CUA-mode, is there a way to fix this conflict?}@*
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2405 Yes, see @ref{Interaction}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2406
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2407 @item @b{Is there an easy way to insert an empty table template with a
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2408 default number of rows and columns?}@*
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2409 @cindex table, empty template
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2410 To insert an empty table template, just type @samp{|-} and use
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2411 @key{TAB}. The default size can be changed with the variable
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2412 @code{org-table-default-size}. However, just starting to type the
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2413 first line is usually much easier.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2414
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2415 @item @b{One of my table columns has started to fill up with
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2416 @samp{#ERROR}. What is going on?}@*
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2417 Org-mode tried to compute the column from other fields using a
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2418 formula stored in the @samp{#+TBLFMT:} line just below the table, and
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2419 the evaluation of the formula fails. Fix the fields used in the
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2420 formula, or fix the formula, or remove it!
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2421
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2422 @item @b{When I am in the last column of a table and just above a
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2423 horizontal line in the table, pressing TAB creates a new table line
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2424 @i{before} the horizontal line. How can I quickly move to the line
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2425 @i{below} the horizontal line instead?}@*
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2426 Press @key{down} (to get on the separator line) and then @key{TAB}.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2427
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2428 @item @b{How can I change the indentation of an entire table without
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2429 fixing every line by hand?}@*
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2430 @cindex indentation, of tables
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2431 The indentation of a table is set by the first line. So just fix the
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2432 indentation of the first line and realign with @key{TAB}.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2433
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2434 @end enumerate
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2435
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2436
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2437 @node Interaction, Bugs, FAQ, Miscellaneous
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2438 @section Interaction with other packages
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2439 @cindex packages, interaction with other
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2440 Org-mode can cooperate with the following packages:
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2441
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2442 @table @asis
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2443 @cindex @file{table.el}
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2444 @item @file{table.el} by Takaaki Ota
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2445 Org mode cooperates with table.el, see @ref{table.el}.
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2446 @cindex @file{calc.el}
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2447 @item @file{calc.el} by Dave Gillespie
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2448 Org-mode uses the calc package for implementing spreadsheet
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2449 functionality in its tables (@pxref{Table calculations}). Org-modes
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2450 checks for the availability of calc by looking for the function
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2451 @code{calc-eval} which should be autoloaded in your setup if calc has
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2452 been installed properly. As of Emacs 22, calc is part of the Emacs
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2453 distribution. Another possibility for interaction between the two
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2454 packages is using calc for embedded calculations. @xref{Embedded Mode,
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
2455 , Embedded Mode, calc, GNU Emacs Calc Manual}.
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2456 @cindex @file{constants.el}
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2457 @item @file{constants.el} by Carsten Dominik
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2458 In a table formula (@pxref{Table calculations}), it is possible to use
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2459 names for natural constants or units. Instead of defining you own
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2460 constants in the variable @code{org-table-formula-constants}, install
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2461 the @file{constants} package which defines a large number of constants
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2462 and units, and lets you use unit prefixes like @samp{M} for
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2463 @samp{Mega} etc. You will need version 2.0 of this package, available
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2464 at @url{http://www.astro.uva.nl/~dominik/Tools}. Org-mode checks for
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2465 the function @code{constants-get}, which has to be autoloaded in your
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2466 setup. See the installation instructions in the file
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2467 @file{constants.el}.
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2468 @cindex @file{remember.el}
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2469 @cindex @file{CUA.el}
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2470 @item @file{CUA.el} by Kim. F. Storm
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2471 Keybindings in Org-mode conflict with the @kbd{S-<cursor>} keys
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2472 used by CUA-mode (as well as pc-select-mode and s-region-mode) to
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2473 select and extend the region. If you want to use one of these
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2474 packages along with Org-mode, configure the variable
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2475 @code{org-CUA-compatible}. When set, Org-mode will move the following
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2476 keybindings in org-mode files, and in the agenda buffer (but not
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2477 during date selection).
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2478 @example
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2479 S-UP -> M-p S-DOWN -> M-n
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2480 S-LEFT -> M-- S-RIGHT -> M-+
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2481 S-RET -> C-S-RET
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2482 @end example
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2483 Yes, these are unfortunately more difficult to remember. If you want
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2484 to have other replacement keys, look at the variable
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
2485 @code{org-disputed-keys}.
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2486 @item @file{remember.el} by John Wiegley
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2487 Org mode cooperates with remember, see @ref{Remember}.
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2488 @cindex @file{planner.el}
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2489 @item @file{planner.el} by John Wiegley
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2490 Planner is another tool to plan work and keep track of tasks. Planner
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2491 uses a multi-file approach with project pages and day pages. Is based
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2492 on Emacs-Wiki. If Planner is your primary tool, it can be useful to
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2493 display the agenda entries resulting from org files in day-pages of
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2494 the planner. This can be done through the diary of the calendar:
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2495 Integrate org files into the diary as described above, and then turn
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2496 on the diary support of planner.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2497 @end table
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2498
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2499 @node Bugs, Acknowledgments, Interaction, Miscellaneous
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2500 @section Bugs
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2501 @cindex bugs
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2502
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2503 Here is a list of things which should work differently, but which I
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2504 have found too hard to fix.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2505
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2506 @itemize @bullet
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
2507 @item
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2508 If you call @code{fill-paragraph} (bound to @kbd{M-q}) in a table, the
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2509 filling is correctly disabled. However, if some text directly
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
2510 (without an empty line in between) precedes or follows a table, calling
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2511 @code{fill-paragraph} in that text will also fill the table like
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2512 normal text. Also, @code{fill-region} does bypass the
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2513 @code{fill-paragraph} code and will fill tables like normal text.
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
2514 @item
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2515 When the application called by @kbd{C-c C-o} to open a file link fails
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2516 (for example because the application does not exits or refuses to open
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2517 the file), it does so silently. No error message is displayed.
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
2518 @item
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2519 Recalculating a table line applies the formulas from left to right.
64069
ff90f1b70996 Version 3.13
Carsten Dominik <dominik@science.uva.nl>
parents: 63833
diff changeset
2520 If a formula calculated fields further down the row, multiple
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2521 recalculation may be needed to get all fields consistent.
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2522 @item
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2523 Under XEmacs, if Org-mode entries are included into the diary, it is
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2524 not possible to jump back from the diary to the org file. Apparently,
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2525 the text properties are lost when the fancy-diary-display is used.
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2526 However, from Org-mode's timeline and agenda buffers (created with
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2527 @kbd{C-c C-r} and @kbd{C-c a}), things do work correctly.
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
2528 @item
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2529 Linux should also have a default viewer application, using mailcap.
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2530 Maybe we can use GNUS or VM mime code? Or dired's guessing commands?
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2531 Any hints (or even patches) are appreciated.
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
2532 @item
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2533 When you write @samp{x = a /b/ c}, b will be exported in italics.
63672
c90c20a1b568 (Remember): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 63362
diff changeset
2534 @item
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2535 The exporters work well, but could be made more efficient.
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2536 @end itemize
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2537
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2538 @page
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2539
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2540 @node Acknowledgments, , Bugs, Miscellaneous
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2541 @section Acknowledgments
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2542 @cindex acknowledgments
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2543
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2544 Org-mode was written by Carsten Dominik, who still maintains it at the
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
2545 Org-mode homepage @uref{http://www.astro.uva.nl/~dominik/Tools/org/}.
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
2546 The following people have helped the development along with ideas,
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
2547 suggestions and patches.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2548
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2549 @itemize @bullet
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2550 @item
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2551 Matthias Rempe (Oelde) provided ideas, a patch introducing Windows
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2552 NT/2000 support, and quality control.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2553 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2554 Kevin Rogers contributed code to access VM files on remote hosts.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2555 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2556 Juergen Vollmer contributed code generating the table of contents
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2557 in HTML output, and other export improvements.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2558 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2559 Christian Egli converted the documentation into TeXInfo format. He
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2560 also showed me his plans for a multifile summary for Org-mode. Some of
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2561 his ideas have found their way into the agenda.
61562
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2562 @item
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2563 Philip Rooke created the Org-mode reference card. He also helped with
6cd3b18f298e Update to version 3.06
Carsten Dominik <dominik@science.uva.nl>
parents: 61136
diff changeset
2564 beta testing and contributed a number of very useful ideas.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2565 @item
63833
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2566 Christian Schlauer proposed angular brackets around links, among other
addf44674c32 Version 3.12
Carsten Dominik <dominik@science.uva.nl>
parents: 63672
diff changeset
2567 things.
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2568 @item
64517
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
2569 David Wainberg suggested to implement an archiving mechanism and helped
098497d516e8 Version 3.14
Carsten Dominik <dominik@science.uva.nl>
parents: 64460
diff changeset
2570 testing.
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2571 @item
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2572 Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2573 @file{organizer-mode.el}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2574 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2575 Scheduling TODO items was inspired by John Wiegley's @file{planner.el}.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2576 @item
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2577 Sacha Chua, the current maintainer of Planner, offered linking code
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2578 from Planner. I made use of the offer for links to RMAIL and Wanderlust.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2579 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2580 Oliver Oppitz sent several useful suggestions.
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2581 @item
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2582 Carsten Wimmer suggested some changes and helped fix a bug in linking
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2583 to GNUS.
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
2584 @item
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2585 Pavel Chalmoviansky reported bugs and suggested improvements related
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2586 to the agenda treatment of items with specified time.
62548
55227ff1f8d5 Version 3.09
Carsten Dominik <dominik@science.uva.nl>
parents: 61923
diff changeset
2587 @item
61923
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
2588 Stefan Monnier provided a patch with lots of little fixes to keep the
88492f3ccffa *** empty log message ***
Carsten Dominik <dominik@science.uva.nl>
parents: 61562
diff changeset
2589 Emacs-Lisp compiler happy.
63362
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2590 @item
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2591 Kai Grossjohann pointed out that a number of key bindings in Org-mode
8a4e1b582425 Version 3.11
Carsten Dominik <dominik@science.uva.nl>
parents: 62713
diff changeset
2592 conflict with other packages.
58792
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2593 @end itemize
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2594
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2595 @node Index, Key Index, Miscellaneous, Top
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2596 @chapter Index
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2597
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2598 @printindex cp
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2599
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2600 @node Key Index, , Index, Top
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2601 @chapter Key Index
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2602
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2603 @printindex ky
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2604
265139cbc47c New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2605 @bye
64070
ac6ca3de0b38 Add arch tagline
Miles Bader <miles@gnu.org>
parents: 64069
diff changeset
2606
ac6ca3de0b38 Add arch tagline
Miles Bader <miles@gnu.org>
parents: 64069
diff changeset
2607 @ignore
ac6ca3de0b38 Add arch tagline
Miles Bader <miles@gnu.org>
parents: 64069
diff changeset
2608 arch-tag: 7893d1fe-cc57-4d13-b5e5-f494a1bcc7ac
ac6ca3de0b38 Add arch tagline
Miles Bader <miles@gnu.org>
parents: 64069
diff changeset
2609 @end ignore