aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Dominik2005-05-20 11:28:03 +0000
committerCarsten Dominik2005-05-20 11:28:03 +0000
commit9bc3d124027c320ca799cfb31380b108a84c443c (patch)
tree4ca881ab7e85c7d44a7723e5a972c1b896862e62
parent24e9a727ba9d150f2bdaf4cf67f27e3acb1ae93a (diff)
downloademacs-9bc3d124027c320ca799cfb31380b108a84c443c.tar.gz
emacs-9bc3d124027c320ca799cfb31380b108a84c443c.zip
Version 3.09
-rw-r--r--man/org.texi231
1 files changed, 120 insertions, 111 deletions
diff --git a/man/org.texi b/man/org.texi
index a131f5aadb3..444256762b8 100644
--- a/man/org.texi
+++ b/man/org.texi
@@ -4,8 +4,8 @@
4@setfilename ../info/org 4@setfilename ../info/org
5@settitle Org Mode Manual 5@settitle Org Mode Manual
6 6
7@set VERSION 3.08 7@set VERSION 3.09
8@set DATE April 2005 8@set DATE May 2005
9 9
10@dircategory Emacs 10@dircategory Emacs
11@direntry 11@direntry
@@ -156,7 +156,7 @@ Miscellaneous
156 156
157* Completion:: M-TAB knows what you need 157* Completion:: M-TAB knows what you need
158* Customization:: Adapting Org-mode to your taste 158* Customization:: Adapting Org-mode to your taste
159* Tips and Tricks:: An author-imposed FAQ, sort of 159* FAQ:: Frequently asked questions
160* Interaction:: Other Emacs packages 160* Interaction:: Other Emacs packages
161* Acknowledgments:: These people provided feedback and more 161* Acknowledgments:: These people provided feedback and more
162* Bugs:: Things which do not work perfectly 162* Bugs:: Things which do not work perfectly
@@ -224,19 +224,23 @@ and example files. This page is located at
224@cindex global keybindings 224@cindex global keybindings
225@cindex keybindings, global 225@cindex keybindings, global
226 226
227The instructions below assume that you have downloaded Org-mode from 227If Org-mode is part of the Emacs distribution or an XEmacs package,
228the web. If Org-mode is part of the Emacs distribution or an XEmacs 228you only need to copy the following lines to your @file{.emacs} file.
229package, you only need to add to @file{.emacs} the last three Lisp 229The last two lines define @emph{global} keys for the commands
230lines below - all the rest will be taken care of automatically. 230@command{org-store-link} and @command{org-agenda} - please choose
231suitable keys yourself.
231 232
232Byte-compile @file{org.el} and put it on your load path. If you'd 233@lisp
233like to use the Info documentation, copy the file @file{org} into the 234;; The following lines are always needed. Choose your own keys.
234directory containing info files and run the command @code{install-info 235(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
235org}. 236(define-key global-map "\C-cl" 'org-store-link)
237(define-key global-map "\C-ca" 'org-agenda)
238@end lisp
236 239
237Then copy the following lines into @file{.emacs}. The last two lines 240If you have downloaded Org-mode from the Web, you must byte-compile
238define @emph{global} keys for the commands @command{org-store-link} 241@file{org.el} and put it on your load path. In addition to the Emacs
239and @command{org-agenda} - please choose suitable keys yourself. 242Lisp lines above, you also need to add the following lines to
243@file{.emacs}:
240 244
241@lisp 245@lisp
242;; These lines only if org-mode is not part of the X/Emacs distribution. 246;; These lines only if org-mode is not part of the X/Emacs distribution.
@@ -246,17 +250,12 @@ and @command{org-agenda} - please choose suitable keys yourself.
246(autoload 'org-store-link "org" "Store a link to the current location" t) 250(autoload 'org-store-link "org" "Store a link to the current location" t)
247(autoload 'orgtbl-mode "org" "Org tables as a minor mode" t) 251(autoload 'orgtbl-mode "org" "Org tables as a minor mode" t)
248(autoload 'turn-on-orgtbl "org" "Org tables as a minor mode") 252(autoload 'turn-on-orgtbl "org" "Org tables as a minor mode")
249
250;; The following lines are always needed. Choose your own keys.
251(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
252(define-key global-map "\C-cl" 'org-store-link)
253(define-key global-map "\C-ca" 'org-agenda)
254@end lisp 253@end lisp
255 254
256@cindex org-mode, turning on 255@cindex org-mode, turning on
257@noindent 256With this setup, all files with extension @samp{.org} will be put into
258This will put all files with extension @samp{.org} into Org-mode. As 257Org-mode. As an alternative, make the first line of a file look like
259an alternative, make the first line of a file look like this: 258this:
260 259
261@example 260@example
262MY PROJECTS -*- mode: org; -*- 261MY PROJECTS -*- mode: org; -*-
@@ -290,7 +289,6 @@ with clear information about:
290@end enumerate 289@end enumerate
291@noindent Thanks for helping to improve this mode. 290@noindent Thanks for helping to improve this mode.
292 291
293
294@node Document Structure, Tables, Introduction, Top 292@node Document Structure, Tables, Introduction, Top
295@chapter Document Structure 293@chapter Document Structure
296@cindex document structure 294@cindex document structure
@@ -500,7 +498,8 @@ An important feature of Org-mode is the ability to construct
500@emph{sparse trees} for selected information in an outline tree. A 498@emph{sparse trees} for selected information in an outline tree. A
501sparse tree means that the entire document is folded as much as 499sparse tree means that the entire document is folded as much as
502possible, but the selected information is made visible along with the 500possible, but the selected information is made visible along with the
503headline structure above it. Just try it out and you will see 501headline structure above it@footnote{See also the variable
502@code{org-show-following-heading}}. Just try it out and you will see
504immediately how it works. 503immediately how it works.
505 504
506Org-mode contains several commands creating such trees. The most 505Org-mode contains several commands creating such trees. The most
@@ -1394,8 +1393,8 @@ commands}.
1394@cindex agenda 1393@cindex agenda
1395 1394
1396An agenda can be compiled from one or more org files. The main 1395An agenda can be compiled from one or more org files. The main
1397purpose of this command is to act like a planner, in order to show you 1396purpose of this command is to act like a paper agenda, showing you all
1398what tasks are up for the current week, similar to a paper agenda. 1397the tasks for the current day or week.
1399 1398
1400The Org-mode files to be processed in order to generate the agenda are 1399The Org-mode files to be processed in order to generate the agenda are
1401listed in the variable @code{org-agenda-files}. You can customize 1400listed in the variable @code{org-agenda-files}. You can customize
@@ -1441,7 +1440,7 @@ In the agenda buffer, each entry is preceded by a @emph{category},
1441which is derived from the file name. The category can also be set 1440which is derived from the file name. The category can also be set
1442with a special line anywhere in the buffer, looking like this: 1441with a special line anywhere in the buffer, looking like this:
1443@example 1442@example
1444#+CATEGORY: Cheops 1443#+CATEGORY: Thesis
1445@end example 1444@end example
1446@noindent 1445@noindent
1447After changing this line, press @kbd{C-c C-c} with the cursor still in 1446After changing this line, press @kbd{C-c C-c} with the cursor still in
@@ -1452,6 +1451,53 @@ Emacs.
1452The display in the agenda buffer looks best if the category is not 1451The display in the agenda buffer looks best if the category is not
1453longer than 10 characters. 1452longer than 10 characters.
1454 1453
1454@subsection Time Specifications
1455
1456Org-mode checks each agenda item for a time specification. The time
1457can be part of the time stamp that triggered inclusion into the agenda,
1458for example as in @w{@samp{<2005-05-10 Tue 19:00>}}. Time ranges can
1459be specified with two time stamps, like
1460@c
1461@w{@samp{<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>}}.
1462
1463In the headline of the entry itself, a time(range) may also appear as
1464plain text (like @samp{12:45} or a @samp{8:30-1pm}. If the agenda
1465integrates the Emacs diary (@pxref{Calendar/Diary integration}), time
1466specifications in diary entries are recognized as well.
1467
1468For agenda display, Org-mode extracts the time and displays it in a
1469standard 24 hour format as part of the prefix. The example times in
1470the previous paragraphs would end up in the agenda like this:
1471
1472@example
1473 8:30-13:00 Arthur Dent lies in front of the bulldozer
1474 12:45...... Ford Prefect arrives and takes Arthur to the pub
1475 19:00...... The Vogon reads his poem
1476 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
1477@end example
1478
1479If the agenda is in single-day mode, or for the display of today, the
1480timed entries are embedded in a time grid, like
1481
1482@example
1483 8:00...... ------------------
1484 8:30-13:00 Arthur Dent lies in front of the bulldozer
1485 10:00...... ------------------
1486 12:00...... ------------------
1487 12:45...... Ford Prefect arrives and takes Arthur to the pub
1488 14:00...... ------------------
1489 16:00...... ------------------
1490 18:00...... ------------------
1491 19:00...... The Vogon reads his poem
1492 20:00...... ------------------
1493 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
1494@end example
1495
1496The time grid can be turned on and off with the variable
1497@code{org-agenda-use-time-grid}, and can be configured with
1498@code{org-agenda-time-grid}.
1499
1500
1455@subsection Sorting of agenda items 1501@subsection Sorting of agenda items
1456@cindex sorting, of agenda items 1502@cindex sorting, of agenda items
1457@cindex priorities, of agenda items 1503@cindex priorities, of agenda items
@@ -1462,13 +1508,6 @@ These entries will be shown at the beginning of the list, as a
1462categories, in the sequence given by @code{org-agenda-files}. Within 1508categories, in the sequence given by @code{org-agenda-files}. Within
1463each category, items are sorted by priority (@pxref{Priorities}). 1509each category, items are sorted by priority (@pxref{Priorities}).
1464 1510
1465A time-of-day specification looks like @samp{12:45} or @samp{3pm} and
1466must appear in the headline. For example, a timestamp in a headline
1467that contains not only a date but also a time will trigger this
1468mechanism. Specifications of a time in diary entries are recognized
1469as well, so the schedule will be mixed from diary entries and Org-mode
1470files.
1471
1472The priority is a numerical quantity composed of the base priority 1511The priority is a numerical quantity composed of the base priority
1473(2000 for priority @samp{A}, 1000 for @samp{B}, and 0 for @samp{C}), 1512(2000 for priority @samp{A}, 1000 for @samp{B}, and 0 for @samp{C}),
1474plus additional increments for overdue scheduled or deadline items. 1513plus additional increments for overdue scheduled or deadline items.
@@ -1539,6 +1578,11 @@ Toggle between weekly and daily view.
1539@item d 1578@item d
1540Toggle the inclusion of diary entries. See @ref{Calendar/Diary integration}. 1579Toggle the inclusion of diary entries. See @ref{Calendar/Diary integration}.
1541 1580
1581@kindex g
1582@item g
1583Toggle the time grid on and off. See also the variables
1584@code{org-agenda-use-time-grid} and @code{org-agenda-time-grid}.
1585
1542@kindex r 1586@kindex r
1543@item r 1587@item r
1544Recreate the agenda buffer, for example to reflect the changes 1588Recreate the agenda buffer, for example to reflect the changes
@@ -1914,7 +1958,7 @@ Toggle the COMMENT keyword at the beginning of an entry.
1914@menu 1958@menu
1915* Completion:: M-TAB knows what you need 1959* Completion:: M-TAB knows what you need
1916* Customization:: Adapting Org-mode to your taste 1960* Customization:: Adapting Org-mode to your taste
1917* Tips and Tricks:: An author-imposed FAQ, sort of 1961* FAQ:: Frequently asked questions
1918* Interaction:: Other Emacs packages 1962* Interaction:: Other Emacs packages
1919* Acknowledgments:: These people provided feedback and more 1963* Acknowledgments:: These people provided feedback and more
1920* Bugs:: Things which do not work perfectly 1964* Bugs:: Things which do not work perfectly
@@ -1950,7 +1994,7 @@ Elsewhere, complete dictionary words using ispell.
1950@end itemize 1994@end itemize
1951@end table 1995@end table
1952 1996
1953@node Customization, Tips and Tricks, Completion, Miscellaneous 1997@node Customization, FAQ, Completion, Miscellaneous
1954@section Customization 1998@section Customization
1955@cindex customization 1999@cindex customization
1956@cindex options, for customization 2000@cindex options, for customization
@@ -1962,64 +2006,36 @@ describing the variables here. For an overview of customization
1962variables, use @kbd{M-x org-customize}. Or select @code{Browse Org 2006variables, use @kbd{M-x org-customize}. Or select @code{Browse Org
1963Group} from the @code{Org->Customization} menu. 2007Group} from the @code{Org->Customization} menu.
1964 2008
1965@node Tips and Tricks, Interaction, Customization, Miscellaneous 2009@node FAQ, Interaction, Customization, Miscellaneous
1966@section Tips and Tricks 2010@section Frequently asked questions
1967
1968@itemize @bullet
1969@cindex README files
1970@item
1971I find Org-mode very useful for the many @file{README} files I have
1972scattered through my directories. So I turn on @file{org-mode} for
1973all @file{README} files with
1974 2011
2012@enumerate
2013@item @b{Org-mode seems to be useful default mode for the various
2014@file{README} files I have scattered through my directories. How do I
2015turn it on for all @file{README} files?}
1975@example 2016@example
1976(add-to-list 'auto-mode-alist '("README$" . org-mode)) 2017(add-to-list 'auto-mode-alist '("README$" . org-mode))
1977@end example 2018@end example
1978 2019
1979@ignore 2020@item @b{I would like to have two windows on the same Org-mode
1980@cindex files, adding automatically 2021file, but with different outline visibility. Is that possible?}@*
1981@item
1982If you would like to add all org files you ever create to the list of
1983agenda files@footnote{Think twice. Do you @emph{really} want this?},
1984you could do so with
1985
1986@lisp
1987(add-hook 'org-mode-hook 'org-add-file)
1988@end lisp
1989
1990If you would like to add only a selection, for example everything
1991except the @file{README} files, this could be achieved in the
1992following way:
1993
1994@lisp
1995(add-hook 'org-mode-hook
1996 (lambda ()
1997 (or (string-match "README\\'" (buffer-file-name))
1998 (org-add-file))))
1999@end lisp
2000@end ignore
2001
2002@cindex @code{make-indirect-buffer} 2022@cindex @code{make-indirect-buffer}
2003@cindex indirect buffers 2023@cindex indirect buffers
2004@item 2024In GNU Emacs, you may use @emph{indirect buffers} which do exactly
2005It can be useful to have two different windows showing the same 2025this. See the documentation on the command
2006Org-mode file. However, a problem here is that changes to the 2026@code{make-indirect-buffer}. In XEmacs, this is currently not
2007visibility in one window immediately affect the other window. On 2027possible because of the different outline implementation., which visit
2008Emacs (not on XEmacs because it uses the old outline-mode) a way out 2028the same file, but have separate settings, also for outline
2009is the use of @emph{indirect buffers}, which visit the same file, but 2029visibility.
2010have separate settings, also for outline visibility. See the 2030
2011documentation on the command @code{make-indirect-buffer}. 2031@item @b{Is there an easy way to insert links to web locations?}@*
2012
2013@cindex URL, paste into buffer 2032@cindex URL, paste into buffer
2014@item 2033Sure, just paste them into the buffer. A plain-text URL-like string
2015Paste URLs into Org-mode whenever this seems useful. For example, if 2034is directly interpreted as a link.
2016you are writing notes about a paper which is available on the web, put
2017the corresponding URL there and a direct look at the paper is only a
2018mouse click away. If you have a local copy of the paper, use a
2019file:path link.
2020 2035
2021@cindex headline levels, for export 2036@item @b{When I export my TODO list, every TODO item becomes a
2022@item 2037separate section. How do I enforce these items to be exported as an
2038itemized list?}@*
2023If you plan to use ASCII or HTML export, make sure things you want to 2039If you plan to use ASCII or HTML export, make sure things you want to
2024be exported as item lists are level 4 at least, even if that does mean 2040be exported as item lists are level 4 at least, even if that does mean
2025there is a level jump. For example 2041there is a level jump. For example
@@ -2039,44 +2055,34 @@ configure the @samp{H} switch.
2039+OPTIONS: H:2; ... 2055+OPTIONS: H:2; ...
2040@end example 2056@end example
2041 2057
2058@item @b{I would like to export only a subtree of my file to HTML. How?}@*
2042@cindex exporting a subtree 2059@cindex exporting a subtree
2043@item
2044If you want to export a subtree, mark the subtree as region and then 2060If you want to export a subtree, mark the subtree as region and then
2045export. Marking can be done with @kbd{C-c @@ C-x C-x}, for example. 2061export. Marking can be done with @kbd{C-c @@ C-x C-x}, for example.
2046 2062
2063@item @b{Is there an easy way to insert an empty table template with a
2064default number of rows and columns?}@*
2047@cindex table, empty template 2065@cindex table, empty template
2048@item
2049To insert an empty table template, just type @samp{|-} and use 2066To insert an empty table template, just type @samp{|-} and use
2050@key{TAB}. 2067@key{TAB}. The default size can be changed with the variable
2051 2068@code{org-table-default-size}.
2052@item
2053In a table, to add a new column at the end, just type some text
2054anywhere after the final @samp{|}. Upon the next re-align, a new
2055column will be created.
2056 2069
2057@item 2070@item @b{When I am in the last column of a table and just above a
2058In tables, @key{TAB} creates new rows before horizontal separator lines. If 2071horizontal line in the table, pressing TAB creates a new table line
2059the cursor is at @samp{Age} in the following table, 2072@i{before} the horizontal line. How can I quickly move to the line
2060 2073@i{below} the horizontal line instead?}@*
2061@example 2074Press @key{down} (to get on the separator line) and then @key{TAB}.
2062| Name | Phone | Age |
2063|-------+-------+-----|
2064| | | |
2065@end example
2066
2067the next @key{TAB} would create a second header line. If you want
2068instead to go to the first empty field below the horizontal line,
2069press @key{down} (to get on the separator line) and then @key{TAB}.
2070 2075
2076@item @b{How can I change the indentation of an entire table without
2077fixing every line by hand?}@*
2071@cindex indentation, of tables 2078@cindex indentation, of tables
2072@item 2079The indentation of a table is set by the first line. So just fix the
2073To change the indentation of a table, just change the first line and 2080indentation of the first line and realign with @key{TAB}.
2074realign with @key{TAB}.
2075 2081
2076@end itemize 2082@end enumerate
2077 2083
2078 2084
2079@node Interaction, Acknowledgments, Tips and Tricks, Miscellaneous 2085@node Interaction, Acknowledgments, FAQ, Miscellaneous
2080@section Interaction with other packages 2086@section Interaction with other packages
2081@cindex packages, interaction with other 2087@cindex packages, interaction with other
2082@cindex @file{planner.el} 2088@cindex @file{planner.el}
@@ -2143,6 +2149,9 @@ Oliver Oppitz sent several useful suggestions.
2143Carsten Wimmer suggested some changes and helped fix a bug in linking 2149Carsten Wimmer suggested some changes and helped fix a bug in linking
2144to GNUS. 2150to GNUS.
2145@item 2151@item
2152Pavel Chalmoviansky reported bugs and suggested improvements related
2153to the agenda treatment of items with specifed time.
2154@item
2146Stefan Monnier provided a patch with lots of little fixes to keep the 2155Stefan Monnier provided a patch with lots of little fixes to keep the
2147Emacs-Lisp compiler happy. 2156Emacs-Lisp compiler happy.
2148@end itemize 2157@end itemize