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