faq.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4. lang="en" xml:lang="en">
  5. <head>
  6. <title>Org-mode Frequently Asked Questions</title>
  7. <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
  8. <meta name="generator" content="Org-mode"/>
  9. <meta name="generated" content="2008/02/05 20:14:52"/>
  10. <meta name="author" content="Carsten Dominik"/>
  11. <link rel=stylesheet href="freeshell2.css" type="text/css">
  12. </head><body>
  13. <h1 class="title">Org-mode Frequently Asked Questions</h1>
  14. <div id="table-of-contents">
  15. <h2>Table of Contents</h2>
  16. <ul>
  17. <li><a href="#sec-1">1 General</a>
  18. <ul>
  19. <li><a href="#sec-2">1.1 Use features in other modes</a></li>
  20. <li><a href="#sec-3">1.2 Visibility cycling in Outline-mode and Outline-minor-mode</a></li>
  21. </ul>
  22. </li>
  23. <li><a href="#sec-4">2 Errors</a>
  24. <ul>
  25. <li><a href="#sec-5">2.1 <code>(wrong-type-argument keymapp nil)</code></a></li>
  26. <li><a href="#sec-6">2.2 CUA mode does not work with Org-mode</a></li>
  27. <li><a href="#sec-7">2.3 <code>winddmove.el</code> does not work with Org-mode.</a></li>
  28. </ul>
  29. </li>
  30. <li><a href="#sec-8">3 Setup and Structure</a>
  31. <ul>
  32. <li><a href="#sec-9">3.1 Org-mode as default mode</a></li>
  33. <li><a href="#sec-10">3.2 Get rid of extra stars in outline</a></li>
  34. <li><a href="#sec-11">3.3 Two windows on same Org-mode file</a></li>
  35. <li><a href="#sec-12">3.4 Insert empty lines before new headings and plain list items</a></li>
  36. <li><a href="#sec-13">3.5 Amount of context in sparse trees</a></li>
  37. <li><a href="#sec-14">3.6 Stacking calls to org-occur</a></li>
  38. </ul>
  39. </li>
  40. <li><a href="#sec-15">4 Hyperlinks</a>
  41. <ul>
  42. <li><a href="#sec-16">4.1 Confirmation for shell and elisp links</a></li>
  43. <li><a href="#sec-17">4.2 Use RET or TAB to follow a link</a></li>
  44. <li><a href="#sec-18">4.3 Clicking on a link without activating it</a></li>
  45. </ul>
  46. </li>
  47. <li><a href="#sec-19">5 Remember</a></li>
  48. <li><a href="#sec-20">6 Export</a>
  49. <ul>
  50. <li><a href="#sec-21">6.1 Make TODO entries items, not headlines in HTML export</a></li>
  51. <li><a href="#sec-22">6.2 Export only a subtree</a></li>
  52. <li><a href="#sec-23">6.3 How to import org-mode calendar data into Mac OSX ical</a></li>
  53. </ul>
  54. </li>
  55. <li><a href="#sec-24">7 Tables</a>
  56. <ul>
  57. <li><a href="#sec-25">7.1 #ERROR fields in tables</a></li>
  58. <li><a href="#sec-26">7.2 Unwanted new lines in table</a></li>
  59. <li><a href="#sec-27">7.3 Automatic detection of formulas</a></li>
  60. <li><a href="#sec-28">7.4 Change indentation of a table</a></li>
  61. <li><a href="#sec-29">7.5 Performance issues with table alignment</a></li>
  62. <li><a href="#sec-30">7.6 Performance issues with table calculation</a></li>
  63. <li><a href="#sec-31">7.7 Incrementing numbers</a></li>
  64. </ul>
  65. </li>
  66. <li><a href="#sec-32">8 Agenda</a>
  67. <ul>
  68. <li><a href="#sec-33">8.1 Include Org-mode agenda into Emacs diary</a></li>
  69. </ul>
  70. </li>
  71. </ul>
  72. </div>
  73. <div class="outline-2">
  74. <h2 id="sec-1">1 General</h2>
  75. <div class="outline-3">
  76. <h3 id="sec-2">1.1 Use features in other modes</h3>
  77. <p><b>I would like to use editing features of org-mode in other modes, is this possible?</b>
  78. </p>
  79. <p>
  80. Not really. For tables there is <code>orgtbl-mode</code> which implements the
  81. table editor as a minor mode. For other features you need to switch to
  82. Org-mode temporarily, or prepare text in a different buffer.
  83. </p>
  84. </div>
  85. <div class="outline-3">
  86. <h3 id="sec-3">1.2 Visibility cycling in Outline-mode and Outline-minor-mode</h3>
  87. <p>
  88. <b>Can I get the visibility-cycling features in outline-mode and outline-minor-mode?</b>
  89. </p>
  90. <p>
  91. Yes, these functions are written in a way that they are independent of
  92. the outline setup. The following setup provides standard Org-mode
  93. functionality in outline-mode on <code>TAB</code> and <code>S-TAB</code>. For
  94. outline-minor-mode, we use <code>C-TAB</code> instead of <code>TAB</code>,
  95. because <code>TAB</code> usually has mode-specific tasks.
  96. </p>
  97. <p>
  98. <pre>
  99. (add-hook 'outline-minor-mode-hook
  100. (lambda ()
  101. (define-key outline-minor-mode-map [(control tab)] 'org-cycle)
  102. (define-key outline-minor-mode-map [(shift tab)] 'org-global-cycle)))
  103. (add-hook 'outline-mode-hook
  104. (lambda ()
  105. (define-key outline-mode-map [(tab)] 'org-cycle)
  106. (define-key outline-mode-map [(shift tab)] 'org-global-cycle)))
  107. </pre>
  108. </p>
  109. <p>
  110. Or check out <i>outline-magic.el</i>, which does this and also provides
  111. promotion and demotion functionality. <i>outline-magic.el</i> is
  112. available at <a href="http://www.astro.uva.nl/~dominik/Tools/OutlineMagic">Outline Magic</a>.
  113. </p>
  114. </div>
  115. </div>
  116. <div class="outline-2">
  117. <h2 id="sec-4">2 Errors</h2>
  118. <div class="outline-3">
  119. <h3 id="sec-5">2.1 <code>(wrong-type-argument keymapp nil)</code></h3>
  120. <p><b>When I try to use Org-mode, I always get the error message @code{(wrong-type-argument keymapp nil)}</b>
  121. </p>
  122. <p>
  123. This is a conflict with an outdated version of the <i>allout.el</i>, see
  124. the <a href="http://staff.science.uva.nl/~dominik/Tools/org/org.html#Conflicts">Conflicts</a> section in the manual
  125. </p>
  126. </div>
  127. <div class="outline-3">
  128. <h3 id="sec-6">2.2 CUA mode does not work with Org-mode</h3>
  129. <p>
  130. <b>Org-mode takes over the S-cursor keys. I also want to use CUA-mode, is there a way to fix this conflict?</b>
  131. </p>
  132. <p>
  133. Yes, see the <a href="http://staff.science.uva.nl/~dominik/Tools/org/org.html#Conflicts">Conflicts</a> section of the manual.
  134. </p>
  135. </div>
  136. <div class="outline-3">
  137. <h3 id="sec-7">2.3 <code>winddmove.el</code> does not work with Org-mode.</h3>
  138. <p>
  139. <b>Org-mode takes over the S-cursor keys. I also want to use windmove.el, is there a way to fix this conflict?</b>
  140. </p>
  141. <p>
  142. Yes, see the <a href="http://staff.science.uva.nl/~dominik/Tools/org/org.html#Conflicts">Conflicts</a> section of the manual.
  143. </p>
  144. </div>
  145. </div>
  146. <div class="outline-2">
  147. <h2 id="sec-8">3 Setup and Structure</h2>
  148. <div class="outline-3">
  149. <h3 id="sec-9">3.1 Org-mode as default mode</h3>
  150. <p>
  151. <b>Org-mode seems to be a useful default mode for the various README files I have scattered through my directories</b>. <b>How do I turn it on for all README files?</b>
  152. </p>
  153. <p>
  154. Add the following to your .emacs file:
  155. </p>
  156. <p>
  157. <pre>
  158. (add-to-list 'auto-mode-alist '("README$" . org-mode))
  159. </pre>
  160. </p>
  161. <p>
  162. You can even make it the default mode for any files with unspecified
  163. mode using
  164. </p>
  165. <p>
  166. <pre>
  167. (setq default-major-mode 'org-mode)
  168. </pre>
  169. </p>
  170. </div>
  171. <div class="outline-3">
  172. <h3 id="sec-10">3.2 Get rid of extra stars in outline</h3>
  173. <p>
  174. *All these stars are driving me mad, I just find the Emacs outlines
  175. unreadable. Can't you just put white space and a single star as a
  176. starter for headlines?*
  177. </p>
  178. <p>
  179. See the section <a href="http://staff.science.uva.nl/~dominik/Tools/org/org.html#Clean%20outline%20view">Clean outline view</a> in the manual.
  180. </p>
  181. </div>
  182. <div class="outline-3">
  183. <h3 id="sec-11">3.3 Two windows on same Org-mode file</h3>
  184. <p><b>I would like to have two windows on the same Org-mode file, but with different outline visibility. Is that possible?</b>
  185. </p>
  186. <p>
  187. You may use <i>indirect buffers</i> which do exactly this. See the
  188. documentation on the command <code>make-indirect-buffer</code>.
  189. </p>
  190. </div>
  191. <div class="outline-3">
  192. <h3 id="sec-12">3.4 Insert empty lines before new headings and plain list items</h3>
  193. <p>
  194. <b>I would like to have an empty line before each newly inserted headline, but not before each newly inserted plain-list item</b>.
  195. </p>
  196. <p>
  197. <pre>
  198. (setq org-blank-before-new-entry
  199. '((heading . t) (plain-list-item . nil))
  200. </pre>
  201. </p>
  202. </div>
  203. <div class="outline-3">
  204. <h3 id="sec-13">3.5 Amount of context in sparse trees</h3>
  205. <p>
  206. *Sparse tree show the headline hierarchy above each match, and also
  207. the headline following a match. I'd like to construct more compact
  208. trees, with less context.*
  209. </p>
  210. <p>
  211. Take a look at the variables <code>org-show-hierarchy-above</code> and
  212. <code>org-show-following-headline</code>.
  213. </p>
  214. </div>
  215. <div class="outline-3">
  216. <h3 id="sec-14">3.6 Stacking calls to org-occur</h3>
  217. <p>
  218. *Each call to org-occur starts again from OVERVIEW and exposes only
  219. the matches of the current call. I'd like to combine the effect of
  220. several calls*.
  221. </p>
  222. <p>
  223. You can construct a regular expression that matches all targets you
  224. want. Alternatively, use a <code>C-u</code> prefix with the second and any
  225. further calls to <code>org-occur</code> to keep the current visibility and
  226. highlighting in addition to the new ones.
  227. </p>
  228. </div>
  229. </div>
  230. <div class="outline-2">
  231. <h2 id="sec-15">4 Hyperlinks</h2>
  232. <div class="outline-3">
  233. <h3 id="sec-16">4.1 Confirmation for shell and elisp links</h3>
  234. <p>
  235. *When I am executing shell/elisp links I always get a confirmation
  236. prompt and need to type "yes RET", that's 4 key presses! Can I get
  237. rid of this?*
  238. </p>
  239. <p>
  240. The confirmation is there to protect you from unwantingly execute
  241. potentially dangerous commands. For example, imagine a link
  242. <pre>
  243. [[shell:rm -rf ~/*][ Google Search]]
  244. </pre>
  245. </p>
  246. <p>
  247. In an Org-mode buffer, this command would look like <i>Google Search</i>,
  248. but really it would remove your home directory. If you wish, you can
  249. make it easier to respond to the query by setting
  250. </p>
  251. <p>
  252. <pre>
  253. (setq org-confirm-shell-link-function 'y-or-n-p
  254. org-confirm-elisp-link-function 'y-or-n-p).
  255. </pre>
  256. </p>
  257. <p>
  258. Then a single keypress will be enough to confirm those links. It is
  259. also possible to turn off this check entirely, but I strongly recommend
  260. against this. Be warned.
  261. </p>
  262. </div>
  263. <div class="outline-3">
  264. <h3 id="sec-17">4.2 Use RET or TAB to follow a link</h3>
  265. <p>
  266. <b>From other packages like Emacs-wiki, I am used to follow links with =RET= when the cursor is on the link. Is this also possible in org-mode?</b>
  267. </p>
  268. <p>
  269. Yes, and you may also use TAB.
  270. </p>
  271. <p>
  272. <pre>
  273. (setq org-return-follows-link t)
  274. (setq org-tab-follows-link t)
  275. </pre>
  276. </p>
  277. </div>
  278. <div class="outline-3">
  279. <h3 id="sec-18">4.3 Clicking on a link without activating it</h3>
  280. <p>
  281. <b>Each time I click inside a link in order to set point to this location, Org-mode actually follows the link</b>
  282. </p>
  283. <p>
  284. Activating links with <code>mouse-1</code> is a new feature in Emacs 22, to make
  285. link behavior similar to other applications like web browsers. If you
  286. hold the mouse button down a bit longer, the cursor will be set
  287. without following the link. If you cannot get used to this behavior,
  288. you can (as in Emacs 21) use <code>mouse-2</code> to follow links and turn off
  289. link activation for <code>mouse-1</code> with
  290. </p>
  291. <p>
  292. <pre>
  293. (setq org-mouse-1-follows-link nil)
  294. </pre>
  295. </p>
  296. </div>
  297. </div>
  298. <div class="outline-2">
  299. <h2 id="sec-19">5 Remember</h2>
  300. <p>
  301. <b>Can I automatically start the clock when opening a remember template?</b>
  302. </p>
  303. <p>
  304. Yes, this is possible. Use the following code and make sure that
  305. after executing it, `my-start-clock-if-needed' is in
  306. `remember-mode-hook' <i>after</i> `org-remember-apply-template'.
  307. </p>
  308. <p>
  309. <pre>
  310. (add-hook 'remember-mode-hook 'my-start-clock-if-needed 'append)
  311. (defun my-start-clock-if-needed ()
  312. (save-excursion
  313. (goto-char (point-min))
  314. (when (re-search-forward " *CLOCK-IN *" nil t)
  315. (replace-match "")
  316. (org-clock-in))))
  317. </pre>
  318. </p>
  319. <p>
  320. Then, when a template contains the key string CLOCK-IN, the clock will
  321. be started. Starting with Org-mode version 5.20, the clock will
  322. automatically be stopped when storing the remember buffer.
  323. </p>
  324. </div>
  325. <div class="outline-2">
  326. <h2 id="sec-20">6 Export</h2>
  327. <div class="outline-3">
  328. <h3 id="sec-21">6.1 Make TODO entries items, not headlines in HTML export</h3>
  329. <p>
  330. *When I export my TODO list, every TODO item becomes a separate
  331. section. How do I enforce these items to be exported as an itemized
  332. list?*
  333. </p>
  334. <p>
  335. If you plan to use ASCII or HTML export, make sure things you want to
  336. be exported as item lists are level 4 at least, even if that does mean
  337. there is a level jump. For example:
  338. </p>
  339. <p>
  340. <pre>
  341. * Todays top priorities
  342. **** TODO write a letter to xyz
  343. **** TODO Finish the paper
  344. **** Pick up kids at the school
  345. </pre>
  346. </p>
  347. <p>
  348. Alternatively, if you need a specific value for the heading/item
  349. transition in a particular file, use the <code>#+OPTIONS</code> line to
  350. configure the H switch.
  351. </p>
  352. <p>
  353. <pre>
  354. #+OPTIONS: H:2; ...
  355. </pre>
  356. </p>
  357. </div>
  358. <div class="outline-3">
  359. <h3 id="sec-22">6.2 Export only a subtree</h3>
  360. <p>
  361. <b>I would like to export only a subtree of my file to HTML. How?</b>
  362. </p>
  363. <p>
  364. If you want to export a subtree, mark the subtree as region and then
  365. export. Marking can be done with <code>C-c @ C-x C-x</code>, for example.
  366. </p>
  367. </div>
  368. <div class="outline-3">
  369. <h3 id="sec-23">6.3 How to import org-mode calendar data into Mac OSX ical</h3>
  370. <p>
  371. <b>I would like my iCal program on Mac OSX to import the iCalendar file produced by Org-mode. How?</b>
  372. </p>
  373. <p>
  374. <i>This is for OSX 10.3, see below for 10.4:</i> When using iCal under
  375. Apple MacOS X, you can create a new calendar <i>OrgMode</i> (the default
  376. name for the calendar created by <code>C-c C-e c</code>, see the variables
  377. <code>org-icalendar-combined-name</code> and
  378. <code>org-combined-agenda-icalendar-file</code>). Then set Org-mode to overwrite
  379. the corresponding file <i>~/Library/Calendars/OrgMode.ics</i>. You may
  380. even use AppleScript to make iCal re-read the calendar files each time
  381. a new version of <i>OrgMode.ics</i> is produced. Here is the setup needed
  382. for this:
  383. </p>
  384. <p>
  385. <pre>
  386. (setq org-combined-agenda-icalendar-file
  387. "~/Library/Calendars/OrgMode.ics")
  388. (add-hook 'org-after-save-iCalendar-file-hook
  389. (lambda ()
  390. (shell-command
  391. "osascript -e 'tell application \"iCal\" to reload calendars'")))
  392. </pre>
  393. </p>
  394. <p>
  395. For Mac OS X 10.4, you need to write the ics file to
  396. <code>/Library/WebServer/Documents/</code> and then subscribe iCalendar to
  397. <code>http: //localhost/orgmode.ics</code>
  398. </p>
  399. </div>
  400. </div>
  401. <div class="outline-2">
  402. <h2 id="sec-24">7 Tables</h2>
  403. <div class="outline-3">
  404. <h3 id="sec-25">7.1 #ERROR fields in tables</h3>
  405. <p>
  406. <b>One of my table columns has started to fill up with =#ERROR=. What is going on?</b>
  407. </p>
  408. <p>
  409. Org-mode tried to compute the column from other fields using a
  410. formula stored in the <code>#+TBLFM:</code> line just below the table, and
  411. the evaluation of the formula fails. Fix the fields used in the
  412. formula, or fix the formula, or remove it!
  413. </p>
  414. </div>
  415. <div class="outline-3">
  416. <h3 id="sec-26">7.2 Unwanted new lines in table</h3>
  417. <p>
  418. *When I am in the last column of a table and just above a horizontal
  419. line in the table, pressing TAB creates a new table line before the
  420. horizontal line*. <b>How can I quickly move to the line below the horizontal line instead?</b>
  421. </p>
  422. <p>
  423. Press <code>down</code> (to get on the separator line) and then <code>TAB</code>.
  424. Or configure the variable
  425. </p>
  426. <p>
  427. <pre>
  428. (setq org-table-tab-jumps-over-hlines t)
  429. </pre>
  430. </p>
  431. </div>
  432. <div class="outline-3">
  433. <h3 id="sec-27">7.3 Automatic detection of formulas</h3>
  434. <p><b>I need to use fields in my table that start with "=", and each time I enter such a field, Org-mode thinks this is a formula</b>.
  435. </p>
  436. <p>
  437. With the setting
  438. </p>
  439. <p>
  440. <pre>
  441. (setq org-table-formula-evaluate-inline nil)
  442. </pre>
  443. </p>
  444. <p>
  445. this will no longer happen. You can still use formulas using the
  446. commands <tt>C-c =</tt> and <tt>C-u C-c =</tt>
  447. </p>
  448. </div>
  449. <div class="outline-3">
  450. <h3 id="sec-28">7.4 Change indentation of a table</h3>
  451. <p><b>How can I change the indentation of an entire table without fixing every line by hand?</b>
  452. </p>
  453. <p>
  454. The indentation of a table is set by the first line. So just fix the
  455. indentation of the first line and realign with <code>TAB</code>.
  456. </p>
  457. </div>
  458. <div class="outline-3">
  459. <h3 id="sec-29">7.5 Performance issues with table alignment</h3>
  460. <p><b>I have a huge table in a file, and the automatic realign of tables is just taking too long. What can I do?</b>
  461. </p>
  462. <p>
  463. Either split the table into several by inserting an empty line every
  464. 100 lines or so. Or turn off the automatic re-align with
  465. </p>
  466. <p>
  467. <pre>
  468. (setq org-table-automatic-realign nil)
  469. </pre>
  470. </p>
  471. <p>
  472. After this the only way to realign a table is to press <code>C-c C-c</code>. It
  473. will no longer happen automatically, removing the corresponding delays
  474. during editing.
  475. </p>
  476. </div>
  477. <div class="outline-3">
  478. <h3 id="sec-30">7.6 Performance issues with table calculation</h3>
  479. <p><b>I have a complex table with lots of formulas, and recomputing the table takes rather long. What can I do?</b>
  480. </p>
  481. <p>
  482. Nothing, really. The spreadsheet in org is mostly done to make
  483. calculations possible, not so much to make them fast. Since Org-mode
  484. is firmly committed to the ASCII format, nothing is stopping you from
  485. editing the table by hand. Therefore, there is no internal
  486. representation of the data. Each time Org-mode starts a computation,
  487. it must scan the table for special lines, find the fields etc. This
  488. is slow. Furthermore, Calc is slow compared to hardware computations.
  489. To make this work with normal editing, recalculation is not happening
  490. automatically, or only for the current line, so that the long wait for
  491. a full table iteration only happens when you ask for it.
  492. </p>
  493. <p>
  494. So for really complex tables, moving to a "real" spreadsheet may still
  495. be the best option.
  496. </p>
  497. <p>
  498. That said, there are some ways to optimize things in Org-mode, and I
  499. have been thinking about moving a bit further down this line.
  500. However, for my applications this has so far not been an issue at all.
  501. If you have a good case,you could try to convince me.
  502. </p>
  503. </div>
  504. <div class="outline-3">
  505. <h3 id="sec-31">7.7 Incrementing numbers</h3>
  506. <p>*When I press <code>S-RET</code> in a table field to copy its value down, the
  507. content is not copied as is, but it is increased by one.
  508. Is that a bug or a feature*
  509. </p>
  510. <p>
  511. Well, it is <i>supposed</i> to be a feature, to make it easy to create a
  512. column with increasing numbers. If this gets into your way, turn it
  513. off with
  514. </p>
  515. <p>
  516. <pre>
  517. (setq org-org-table-copy-increment nil)
  518. </pre>
  519. </p>
  520. </div>
  521. </div>
  522. <div class="outline-2">
  523. <h2 id="sec-32">8 Agenda</h2>
  524. <div class="outline-3">
  525. <h3 id="sec-33">8.1 Include Org-mode agenda into Emacs diary</h3>
  526. <p><b>Is it possible to include entries from org-mode files into my emacs diary?</b>
  527. </p>
  528. <p>
  529. Since the org-mode agenda is much more powerful and can contain the
  530. diary, you should think twice before deciding to do this. If you
  531. insist, however, integrating Org-mode information into the diary is
  532. possible. You need to turn on <i>fancy diary display</i> by setting in
  533. .emacs:
  534. </p>
  535. <p>
  536. <pre>
  537. (add-hook 'diary-display-hook 'fancy-diary-display)
  538. </pre>
  539. </p>
  540. <p>
  541. Then include the following line into your ~/diary file, in
  542. order to get the entries from all files listed in the variable
  543. <code>org-agenda-files</code>
  544. </p>
  545. <p>
  546. <pre>
  547. &amp;%%(org-diary)
  548. </pre>
  549. You may also select specific files with
  550. </p>
  551. <p>
  552. <pre>
  553. &amp;%%(org-diary) ~/path/to/some/org-file.org
  554. &amp;%%(org-diary) ~/path/to/another/org-file.org
  555. </pre>
  556. </p>
  557. <p>
  558. If you now launch the calendar and press <tt>d</tt> to display a diary, the
  559. headlines of entries containing a timestamp, date range, schedule, or
  560. deadline referring to the selected date will be listed. Just like
  561. Org-mode's agenda view, the diary for <i>today</i> contains additional
  562. entries for overdue deadlines and scheduled items. See also the
  563. documentation of the <code>org-diary</code> function. Under XEmacs, it is
  564. not possible to jump back from the diary to the org, this works only in
  565. the agenda buffer.
  566. </p>
  567. </div>
  568. </div>
  569. <div id="postamble"><p class="author"> Author: Carsten Dominik
  570. <a href="mailto:carsten.dominik@gmail.com">&lt;carsten.dominik@gmail.com&gt;</a>
  571. </p>
  572. <p class="date"> Date: 2008/02/05 20:14:52</p>
  573. </div></body>
  574. </html>