org 166 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959
  1. This is org, produced by makeinfo version 4.8 from org.texi.
  2. INFO-DIR-SECTION Emacs
  3. START-INFO-DIR-ENTRY
  4. * Org Mode: (org). outline-based notes management and organizer
  5. END-INFO-DIR-ENTRY
  6. This manual is for Org-mode (version 4.20).
  7. Copyright (C) 2004, 2005, 2006 Free Software Foundation
  8. Permission is granted to copy, distribute and/or modify this
  9. document under the terms of the GNU Free Documentation License,
  10. Version 1.1 or any later version published by the Free Software
  11. Foundation; with no Invariant Sections, with the Front-Cover texts
  12. being "A GNU Manual," and with the Back-Cover Texts as in (a)
  13. below. A copy of the license is included in the section entitled
  14. "GNU Free Documentation License."
  15. (a) The FSF's Back-Cover Text is: "You have freedom to copy and
  16. modify this GNU Manual, like GNU software. Copies published by
  17. the Free Software Foundation raise funds for GNU development."
  18. 
  19. File: org, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)
  20. Org Mode Manual
  21. ***************
  22. This manual is for Org-mode (version 4.20).
  23. Copyright (C) 2004, 2005, 2006 Free Software Foundation
  24. Permission is granted to copy, distribute and/or modify this
  25. document under the terms of the GNU Free Documentation License,
  26. Version 1.1 or any later version published by the Free Software
  27. Foundation; with no Invariant Sections, with the Front-Cover texts
  28. being "A GNU Manual," and with the Back-Cover Texts as in (a)
  29. below. A copy of the license is included in the section entitled
  30. "GNU Free Documentation License."
  31. (a) The FSF's Back-Cover Text is: "You have freedom to copy and
  32. modify this GNU Manual, like GNU software. Copies published by
  33. the Free Software Foundation raise funds for GNU development."
  34. * Menu:
  35. * Introduction:: Getting started
  36. * Document Structure:: A tree works like your brain
  37. * Tables:: Pure magic for quick formatting
  38. * Hyperlinks:: Notes in context
  39. * TODO items:: Every tree branch can be a TODO item
  40. * Timestamps:: Assign date and time to items
  41. * Tags:: Tagging headlines and matching sets of tags
  42. * Agenda Views:: Collecting information into views
  43. * Exporting:: Sharing and publishing of notes
  44. * Miscellaneous:: All the rest which did not fit elsewhere
  45. * Index:: The fast road to specific information
  46. * Key Index:: Key bindings and where they are described
  47. --- The Detailed Node Listing ---
  48. Introduction
  49. * Summary:: Brief summary of what Org-mode does
  50. * Installation and activation:: How to install Org-mode
  51. * Feedback:: Bug reports, ideas, patches etc.
  52. Document Structure
  53. * Outlines:: Org-mode is based on outline-mode
  54. * Headlines:: How to typeset org-tree headlines
  55. * Visibility cycling:: Show and hide, much simplified
  56. * Motion:: Jumping to other headlines
  57. * Structure editing:: Changing sequence and level of headlines
  58. * Archiving:: Move done task trees to a different place
  59. * Sparse trees:: Matches embedded in context
  60. * Plain Lists:: Editing hand-formatted lists
  61. Tables
  62. * Built-in table editor:: Simple tables
  63. * Narrow columns:: Stop wasting space in tables
  64. * Table calculations:: Compute a field from other fields
  65. * orgtbl-mode:: The table editor as minor mode
  66. * table.el:: Complex tables
  67. Calculations in tables
  68. * Formula syntax:: How to write a formula
  69. * Column formulas:: Formulas valid for all fields in a column
  70. * Advanced features:: Field names, parameters and automatic recalc
  71. * Named-field formulas:: Formulas valid in single fields
  72. * Editing/debugging formulas:: Changing a stored formula
  73. * Appetizer:: Taste the power of calc
  74. Hyperlinks
  75. * Link format:: How links in Org-mode are formatted
  76. * Internal links:: Links to other places in the current file
  77. * External links:: URL-like links to the world
  78. * Managing links:: Creating, inserting and following
  79. * Search Options:: Linking to a specific location
  80. * Remember:: Org-trees store quick notes
  81. Internal links
  82. * Radio targets:: Make targets trigger links in plain text.
  83. * CamelCase links:: Activating CamelCase words as links
  84. TODO items
  85. * TODO basics:: Marking and displaying TODO entries
  86. * Progress logging:: Document your productivity
  87. * TODO extensions:: Workflow and assignments
  88. * Priorities:: Some things are more important than others
  89. Extended use of TODO keywords
  90. * Workflow states:: From TODO to DONE in steps
  91. * TODO types:: I do this, Fred the rest
  92. * Per file keywords:: Different files, different requirements
  93. Timestamps
  94. * Time stamps:: Assigning a time to a tree entry
  95. * Creating timestamps:: Commands which insert timestamps
  96. Tags
  97. * Tag inheritance:: Tags use the tree structure of the outline
  98. * Setting tags:: How to assign tags to a headline
  99. * Tag searches:: Searching for combinations of tags
  100. Agenda Views
  101. * Agenda files:: Files being searched for agenda information
  102. * Agenda dispatcher:: Keyboard access to agenda views
  103. * Weekly/Daily Agenda:: The calendar page with current tasks
  104. * Global TODO list:: All unfinished action items
  105. * Matching headline tags:: Structured information with fine-tuned search
  106. * Timeline:: Time-sorted view for single file
  107. * Agenda commands:: Remote editing of org trees
  108. The weekly/daily agenda
  109. * Categories:: Not all tasks are equal
  110. * Time-of-day specifications:: How the agenda knows the time
  111. * Calendar/Diary integration:: Integrating Anniversaries and more
  112. * Sorting of agenda items:: The order of things
  113. Exporting
  114. * ASCII export:: Export as a structured ASCII file
  115. * HTML export:: Export as an HTML file
  116. * iCalendar export:: Create calendar entries.
  117. HTML export
  118. * HTML formatting:: Interpretation of the buffer content
  119. * Export options:: How to influence exports
  120. * Comment lines:: Lines which will not be exported
  121. Miscellaneous
  122. * Completion:: M-TAB knows what you need
  123. * Customization:: Adapting Org-mode to your taste
  124. * Clean view:: Getting rid of leading stars in the outline
  125. * TTY keys:: Using Org-mode on a tty
  126. * FAQ:: Frequently asked questions
  127. * Interaction:: Other Emacs packages
  128. * Bugs:: Things which do not work perfectly
  129. * Acknowledgments:: These people provided feedback and more
  130. 
  131. File: org, Node: Introduction, Next: Document Structure, Prev: Top, Up: Top
  132. 1 Introduction
  133. **************
  134. * Menu:
  135. * Summary:: Brief summary of what Org-mode does
  136. * Installation and activation:: How to install Org-mode
  137. * Feedback:: Bug reports, ideas, patches etc.
  138. 
  139. File: org, Node: Summary, Next: Installation and activation, Prev: Introduction, Up: Introduction
  140. 1.1 Summary
  141. ===========
  142. Org-mode is a mode for keeping notes, maintaining ToDo lists, and doing
  143. project planning with a fast and effective plain-text system.
  144. Org-mode develops organizational tasks around NOTES files that
  145. contain information about projects as plain text. Org-mode is
  146. implemented on top of outline-mode, which makes it possible to keep the
  147. content of large files well structured. Visibility cycling and
  148. structure editing help to work with the tree. Tables are easily
  149. created with a built-in table editor. Org-mode supports ToDo items,
  150. deadlines, time stamps, and scheduling. It dynamically compiles
  151. entries into an agenda that utilizes and smoothly integrates much of
  152. the Emacs calendar and diary. Plain text URL-like links connect to
  153. websites, emails, Usenet messages, BBDB entries, and any files related
  154. to the projects. For printing and sharing of notes, an Org-mode file
  155. can be exported as a structured ASCII file, as HTML, or (todo and
  156. agenda items only) as an iCalendar file.
  157. Org-mode keeps simple things simple. When first fired up, it should
  158. feel like a simple but easy to use outliner. Complexity is not
  159. imposed, but a large amount of functionality is available when you need
  160. it. Org-mode can be used on different levels and in different ways,
  161. for example:
  162. * as an outline extension with visibility cycling and structure editing
  163. * as an ASCII system and table editor for taking structured notes
  164. * as an ASCII table editor with spreadsheet-like capabilities
  165. * as a simple hypertext system, with HTML export
  166. * as a TODO list editor
  167. * as a full agenda and planner with deadlines and work scheduling
  168. The Org-mode table editor can be integrated into any major mode by
  169. activating the minor Orgtbl-mode.
  170. There is a website for Org-mode which provides links to the newest
  171. version of Org-mode, as well as additional information, screen shots
  172. and example files. This page is located at
  173. `http://www.astro.uva.nl/~dominik/Tools/org/'.
  174. 
  175. File: org, Node: Installation and activation, Next: Feedback, Prev: Summary, Up: Introduction
  176. 1.2 Installation and Activation
  177. ===============================
  178. If Org-mode is part of the Emacs distribution or an XEmacs package, you
  179. only need to copy the following lines to your `.emacs' file. The last
  180. two lines define _global_ keys for the commands `org-store-link' and
  181. `org-agenda' - please choose suitable keys yourself.
  182. ;; The following lines are always needed. Choose your own keys.
  183. (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
  184. (define-key global-map "\C-cl" 'org-store-link)
  185. (define-key global-map "\C-ca" 'org-agenda)
  186. If you have downloaded Org-mode from the Web, you must byte-compile
  187. `org.el' and put it on your load path. In addition to the Emacs Lisp
  188. lines above, you also need to add the following lines to `.emacs':
  189. ;; These lines only if org-mode is not part of the X/Emacs distribution.
  190. (autoload 'org-mode "org" "Org mode" t)
  191. (autoload 'org-diary "org" "Diary entries from Org mode")
  192. (autoload 'org-agenda "org" "Multi-file agenda from Org mode" t)
  193. (autoload 'org-store-link "org" "Store a link to the current location" t)
  194. (autoload 'orgtbl-mode "org" "Org tables as a minor mode" t)
  195. (autoload 'turn-on-orgtbl "org" "Org tables as a minor mode")
  196. With this setup, all files with extension `.org' will be put into
  197. Org-mode. As an alternative, make the first line of a file look like
  198. this:
  199. MY PROJECTS -*- mode: org; -*-
  200. which will select Org-mode for this buffer no matter what the file's
  201. name is. See also the variable `org-insert-mode-line-in-empty-file'.
  202. 
  203. File: org, Node: Feedback, Prev: Installation and activation, Up: Introduction
  204. 1.3 Feedback
  205. ============
  206. If you find problems with Org-mode, or if you have questions, remarks,
  207. or ideas about it, please contact the maintainer Carsten Dominik at
  208. <dominik@science.uva.nl>.
  209. For bug reports, please provide as much information as possible,
  210. including the version information of Emacs (`C-h v emacs-version
  211. <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
  212. Org-mode related setup in `.emacs'. If an error occurs, a traceback
  213. can be very useful. Often a small example file helps, along with clear
  214. information about:
  215. 1. What exactly did you do?
  216. 2. What did you expect to happen?
  217. 3. What happened instead?
  218. Thank you for helping to improve this mode.
  219. 
  220. File: org, Node: Document Structure, Next: Tables, Prev: Introduction, Up: Top
  221. 2 Document Structure
  222. ********************
  223. Org-mode is based on outline mode and provides flexible commands to
  224. edit the structure of the document.
  225. * Menu:
  226. * Outlines:: Org-mode is based on outline-mode
  227. * Headlines:: How to typeset org-tree headlines
  228. * Visibility cycling:: Show and hide, much simplified
  229. * Motion:: Jumping to other headlines
  230. * Structure editing:: Changing sequence and level of headlines
  231. * Archiving:: Move done task trees to a different place
  232. * Sparse trees:: Matches embedded in context
  233. * Plain Lists:: Editing hand-formatted lists
  234. 
  235. File: org, Node: Outlines, Next: Headlines, Prev: Document Structure, Up: Document Structure
  236. 2.1 Outlines
  237. ============
  238. Org-mode is implemented on top of outline-mode. Outlines allow to
  239. organize a document in a hierarchical structure, which (at least for
  240. me) is the best representation of notes and thoughts. Overview over
  241. this structure is achieved by folding (hiding) large parts of the
  242. document to show only the general document structure and the parts
  243. currently being worked on. Org-mode greatly simplifies the use of
  244. outlines by compressing the entire show/hide functionality into a
  245. single command `org-cycle', which is bound to the <TAB> key.
  246. 
  247. File: org, Node: Headlines, Next: Visibility cycling, Prev: Outlines, Up: Document Structure
  248. 2.2 Headlines
  249. =============
  250. Headlines define the structure of an outline tree. The headlines in
  251. Org-mode start with one or more stars, on the left margin. For example:
  252. * Top level headline
  253. ** Second level
  254. *** 3rd level
  255. some text
  256. *** 3rd level
  257. more text
  258. * Another top level headline
  259. Some people find the many stars too noisy and would prefer an outline
  260. that has whitespace followed by a single star as headline starters.
  261. *Note Clean view:: describes a setup to realize this.
  262. 
  263. File: org, Node: Visibility cycling, Next: Motion, Prev: Headlines, Up: Document Structure
  264. 2.3 Visibility cycling
  265. ======================
  266. Outlines make it possible to hide parts of the text in the buffer.
  267. Org-mode uses a single command bound to the <TAB> key to change the
  268. visibility in the buffer.
  269. `<TAB>'
  270. Rotate current subtree between the states
  271. ,-> FOLDED -> CHILDREN -> SUBTREE --.
  272. '-----------------------------------'
  273. At the beginning of the buffer (or when called with `C-u'), this
  274. does the same as the command `S-<TAB>' below.
  275. `S-<TAB>'
  276. Rotate the entire buffer between the states
  277. ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
  278. '--------------------------------------'
  279. Note that inside tables, `S-<TAB>' jumps to the previous field.
  280. `C-c C-a'
  281. Show all.
  282. When Emacs first visits an Org-mode file, the global state is set to
  283. OVERVIEW, i.e. only the top level headlines are visible. This can be
  284. configured through the variable `org-startup-folded', or on a per-file
  285. basis by adding one of the following lines anywhere in the buffer:
  286. #+STARTUP: fold
  287. #+STARTUP: nofold
  288. #+STARTUP: content
  289. 
  290. File: org, Node: Motion, Next: Structure editing, Prev: Visibility cycling, Up: Document Structure
  291. 2.4 Motion
  292. ==========
  293. The following commands jump to other headlines in the buffer.
  294. `C-c C-n'
  295. Next heading.
  296. `C-c C-p'
  297. Previous heading.
  298. `C-c C-f'
  299. Next heading same level.
  300. `C-c C-b'
  301. Previous heading same level.
  302. `C-c C-u'
  303. Backward to higher level heading.
  304. `C-c C-j'
  305. Jump to a different place without changing the current outline
  306. visibility. Shows the document structure in a temporary buffer,
  307. where you can use visibility cycling (<TAB>) to find your
  308. destination. After pressing <RET>, the cursor moves to the
  309. selected location in the original buffer, and the headings
  310. hierarchy above it is made visible.
  311. 
  312. File: org, Node: Structure editing, Next: Archiving, Prev: Motion, Up: Document Structure
  313. 2.5 Structure editing
  314. =====================
  315. `M-<RET>'
  316. Insert new heading with same level as current. If the cursor is
  317. in a plain list item, a new item is created. To force creation of
  318. a new headline, use a prefix arg, or first press <RET> to get to
  319. the beginning of the next line.
  320. `M-S-<RET>'
  321. Insert new TODO entry with same level as current heading.
  322. `M-<left>'
  323. Promote current heading by one level.
  324. `M-<right>'
  325. Demote current heading by one level.
  326. `M-S-<left>'
  327. Promote the current subtree by one level.
  328. `M-S-<right>'
  329. Demote the current subtree by one level.
  330. `M-S-<up>'
  331. Move subtree up (swap with previous subtree of same level).
  332. `M-S-<down>'
  333. Move subtree down (swap with next subtree of same level).
  334. `C-c C-x C-w'
  335. `C-c C-x C-k'
  336. Kill subtree, i.e. remove it from buffer but save in kill ring.
  337. `C-c C-x M-w'
  338. Copy subtree to kill ring.
  339. `C-c C-x C-y'
  340. Yank subtree from kill ring. This does modify the level of the
  341. subtree to make sure the tree fits in nicely at the yank position.
  342. The yank level can also be specified with a prefix arg, or by
  343. yanking after a headline marker like `****'.
  344. When there is an active region (transient-mark-mode), promotion and
  345. demotion work on all headlines in the region. To select a region of
  346. headlines, it is best to place both point and mark at the beginning of a
  347. line, mark at the beginning of the first headline, and point at the line
  348. just after the last headline to change. Note that when the cursor is
  349. inside a table (*note Tables::), the Meta-Cursor keys have different
  350. functionality.
  351. 
  352. File: org, Node: Archiving, Next: Sparse trees, Prev: Structure editing, Up: Document Structure
  353. 2.6 Archiving
  354. =============
  355. When a project represented by a (sub)tree is finished, you may want to
  356. move the tree to an archive place, either in the same file under a
  357. special top-level heading, or even to a different file.
  358. `C-c $'
  359. Archive the subtree starting at the cursor position to the location
  360. given by `org-archive-location'.
  361. The default archive is a file in the same directory as the current
  362. file, with the name derived by appending `_archive' to the current file
  363. name. For information and examples on how to change this, see the
  364. documentation string of the variable `org-archive-location'. If you
  365. are also using the Org-mode agenda, archiving to a different file is a
  366. good way to keep archived trees from contributing agenda items.
  367. 
  368. File: org, Node: Sparse trees, Next: Plain Lists, Prev: Archiving, Up: Document Structure
  369. 2.7 Sparse trees
  370. ================
  371. An important feature of Org-mode is the ability to construct _sparse
  372. trees_ for selected information in an outline tree. A sparse tree
  373. means that the entire document is folded as much as possible, but the
  374. selected information is made visible along with the headline structure
  375. above it(1). Just try it out and you will see immediately how it works.
  376. Org-mode contains several commands creating such trees. The most
  377. basic one is `org-occur':
  378. `C-c /'
  379. Occur. Prompts for a regexp and shows a sparse tree with all
  380. matches. If the match is in a headline, the headline is made
  381. visible. If the match is in the body of an entry, headline and
  382. body are made visible. In order to provide minimal context, also
  383. the full hierarchy of headlines above the match is shown, as well
  384. as the headline following the match. Each match is also
  385. highlighted, the highlights disappear when the buffer is changed
  386. with an editing command.
  387. For frequently used sparse trees of specific search strings, you can
  388. use the variable `org-agenda-custom-commands' to define fast keyboard
  389. access to specific sparse trees. These commands will then be
  390. accessible through the agenda dispatcher (*note Agenda dispatcher::).
  391. For example:
  392. (setq org-agenda-custom-commands
  393. '(("f" occur-tree "FIXME")))
  394. will define the key `C-c a f' as a shortcut for creating a sparse tree
  395. matching the string `FIXME'.
  396. Other commands are using sparse trees as well. For example `C-c
  397. C-v' creates a sparse TODO tree (*note TODO basics::).
  398. To print a sparse tree, you can use the Emacs command
  399. `ps-print-buffer-with-faces' which does not print invisible parts of
  400. the document (2). Or you can use the command `C-c C-x v' to copy the
  401. visible part of the document to another file (extension `.txt') which
  402. can then be printed in any desired way.
  403. ---------- Footnotes ----------
  404. (1) See also the variables `org-show-hierarchy-above' and
  405. `org-show-following-heading'.
  406. (2) This does not work under XEmacs, because XEmacs uses selective
  407. display for outlining, not text properties
  408. 
  409. File: org, Node: Plain Lists, Prev: Sparse trees, Up: Document Structure
  410. 2.8 Plain Lists
  411. ===============
  412. Headlines define both the structure of the Org-mode file, and also lists
  413. (for example, TODO items (*note TODO items::) should be created using
  414. headline levels). However, when taking notes, the plain text is
  415. sometimes easier to read with hand-formatted lists. Org-mode supports
  416. editing such lists, and the HTML exporter (*note Exporting::) does
  417. parse and format them.
  418. Org-mode knows ordered and unordered lists. Unordered list items
  419. start with `-', `+', or `*'(1) as bullets. Ordered list items start
  420. with `1.' or `1)'. Items belonging to the same list must have the same
  421. indentation on the first line. In particular, if an ordered list
  422. reaches number `10.', then the 2-digit numbers must be written
  423. left-aligned with the other numbers in the list. Indentation also
  424. determines the end of a list item. It ends before the next line that
  425. is indented like the bullet/number, or less. For example:
  426. ** Lord of the Rings
  427. My favorite scenes are (in this order)
  428. 1. Eowyns fight with the witch king
  429. + this was already my favorite scene in the book
  430. + I really like Miranda Otto.
  431. 2. The attack of the Rohirrim
  432. 3. Peter Jackson being shot by Legolas
  433. - on DVD only
  434. He makes a really funny face when it happens.
  435. Org-mode supports these lists by tuning filling and wrapping commands
  436. to correctly deal with them. Furthermore, the following commands act
  437. on items when the cursor is in the first line of an item (the line with
  438. the bullet or number).
  439. `<TAB>'
  440. Items can be folded just like headline levels if you set the
  441. variable `org-cycle-include-plain-lists'. The level of an item is
  442. then given by the indentation of the bullet/number. However,
  443. items are always subordinate to real headlines, the hierarchies
  444. remain completely separated.
  445. `M-<RET>'
  446. Insert new item at current level. With prefix arg, for a new
  447. heading.
  448. `M-S-<up>'
  449. `M-S-<down>'
  450. Move the item including subitems up/down (swap with previous/next
  451. item of same indentation). If the list is ordered, renumbering is
  452. automatic.
  453. `M-S-<left>'
  454. `M-S-<right>'
  455. Decrease/increase the indentation of the item, including subitems.
  456. Initially, the item tree is selected based on current indentation.
  457. When these commands are executed several times in direct
  458. succession, the initially selected region is used, even if the new
  459. indentation would imply a different hierarchy. To use the new
  460. hierarchy, break the command chain with a cursor motion or so.
  461. `C-c C-c'
  462. Renumber the ordered list at the cursor.
  463. ---------- Footnotes ----------
  464. (1) When using `*' as a bullet, lines must be indented or they will
  465. be seen as top-level headlines. Also, when you are hiding leading
  466. stars to get a clean outline view, plain list items starting with a
  467. star are visually indistinguishable from true headlines. In short:
  468. even though `*' is supported, it may be better to not use it for plain
  469. list items
  470. 
  471. File: org, Node: Tables, Next: Hyperlinks, Prev: Document Structure, Up: Top
  472. 3 Tables
  473. ********
  474. Org-mode has a very fast and intuitive table editor built-in.
  475. Spreadsheet-like calculations are supported in connection with the
  476. Emacs `calc' package.
  477. * Menu:
  478. * Built-in table editor:: Simple tables
  479. * Narrow columns:: Stop wasting space in tables
  480. * Table calculations:: Compute a field from other fields
  481. * orgtbl-mode:: The table editor as minor mode
  482. * table.el:: Complex tables
  483. 
  484. File: org, Node: Built-in table editor, Next: Narrow columns, Prev: Tables, Up: Tables
  485. 3.1 The built-in table editor
  486. =============================
  487. Org-mode makes it easy to format tables in plain ASCII. Any line with
  488. `|' as the first non-white character is considered part of a table.
  489. `|' is also the column separator. A table might look like this:
  490. | Name | Phone | Age |
  491. |-------+-------+-----|
  492. | Peter | 1234 | 17 |
  493. | Anna | 4321 | 25 |
  494. A table is re-aligned automatically each time you press <TAB> or
  495. <RET> or `C-c C-c' inside the table. <TAB> also moves to the next
  496. field (<RET> to the next row) and creates new table rows at the end of
  497. the table or before horizontal lines. The indentation of the table is
  498. set by the first line. Any line starting with `|-' is considered as a
  499. horizontal separator line and will be expanded on the next re-align to
  500. span the whole table width. So, to create the above table, you would
  501. only type
  502. |Name|Phone|Age
  503. |-
  504. and then press <TAB> to align the table and start filling in fields.
  505. When typing text into a field, Org-mode treats <DEL>, <Backspace>,
  506. and all character keys in a special way, so that inserting and deleting
  507. avoids shifting other fields. Also, when typing _immediately after the
  508. cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
  509. the field is automatically made blank. If this behavior is too
  510. unpredictable for you, configure the variables
  511. `org-enable-table-editor' and `org-table-auto-blank-field'.
  512. Creation and conversion
  513. .......................
  514. `C-c |'
  515. Convert the active region to table. If every line contains at
  516. least one TAB character, the function assumes that the material is
  517. tab separated. If not, lines are split at whitespace into fields.
  518. You can use a prefix argument to indicate the minimum number of
  519. consequtive spaces required to indentify a field separator
  520. (default: just one).
  521. If there is no active region, this command creates an empty
  522. Org-mode table. However, it's easier to just start typing, like
  523. `|Name|Phone|Age <RET> |- <TAB>'.
  524. Re-aligning and field motion
  525. ............................
  526. `C-c C-c'
  527. Re-align the table without moving the cursor.
  528. `<TAB>'
  529. Re-align the table, move to the next field. Creates a new row if
  530. necessary.
  531. `S-<TAB>'
  532. Re-align, move to previous field.
  533. `<RET>'
  534. Re-align the table and move down to next row. Creates a new row if
  535. necessary. At the beginning or end of a line, <RET> still does
  536. NEWLINE, so it can be used to split a table.
  537. Column and row editing
  538. ......................
  539. `M-<left>'
  540. `M-<right>'
  541. Move the current column left/right.
  542. `M-S-<left>'
  543. Kill the current column.
  544. `M-S-<right>'
  545. Insert a new column to the left of the cursor position.
  546. `M-<up>'
  547. `M-<down>'
  548. Move the current row up/down.
  549. `M-S-<up>'
  550. Kill the current row or horizontal line.
  551. `M-S-<down>'
  552. Insert a new row above (with arg: below) the current row.
  553. `C-c -'
  554. Insert a horizontal line below current row. With prefix arg, the
  555. line is created above the current line.
  556. `C-c ^'
  557. Sort the table lines in the region. Point and mark must be in the
  558. first and last line to be included, and must be in the column that
  559. should be used for sorting. The command prompts for numerical
  560. versus alphanumerical sorting.
  561. Regions
  562. .......
  563. `C-c C-x M-w'
  564. Copy a rectangular region from a table to a special clipboard.
  565. Point and mark determine edge fields of the rectangle. The
  566. process ignores horizontal separator lines.
  567. `C-c C-x C-w'
  568. Copy a rectangular region from a table to a special clipboard, and
  569. blank all fields in the rectangle. So this is the "cut" operation.
  570. `C-c C-x C-y'
  571. Paste a rectangular region into a table. The upper right corner
  572. ends up in the current field. All involved fields will be
  573. overwritten. If the rectangle does not fit into the present table,
  574. the table is enlarged as needed. The process ignores horizontal
  575. separator lines.
  576. `C-c C-q'
  577. Wrap several fields in a column like a paragraph. If there is an
  578. active region, and both point and mark are in the same column, the
  579. text in the column is wrapped to minimum width for the given
  580. number of lines. A prefix ARG may be used to change the number of
  581. desired lines. If there is no region, the current field is split
  582. at the cursor position and the text fragment to the right of the
  583. cursor is prepended to the field one line down. If there is no
  584. region, but you specify a prefix ARG, the current field is made
  585. blank, and the content is appended to the field above.
  586. Calculations
  587. ............
  588. `C-c ='
  589. Install a new formula for the current column and replace current
  590. field with the result of the formula.
  591. `C-u C-c ='
  592. Install a new formula for the current field, which must be a named
  593. field. Evaluate the formula and replace the field content with the
  594. result.
  595. `C-c ''
  596. Edit all formulas associated with the current table in a separate
  597. buffer.
  598. `C-c *'
  599. Recalculate the current row by applying the stored formulas from
  600. left to right. When called with a `C-u' prefix, recalculate the
  601. entire table, starting with the first non-header line (i.e. below
  602. the first horizontal separator line). For details, see *Note
  603. Table calculations::.
  604. `C-#'
  605. Rotate the calculation mark in first column through the states `',
  606. `#', `*', `!', `$'. For the meaning of these marks see *Note
  607. Advanced features::. When there is an active region, change all
  608. marks in the region.
  609. `C-c ?'
  610. Which table column is the cursor in? Displays number >0 in echo
  611. area.
  612. `C-c +'
  613. Sum the numbers in the current column, or in the rectangle defined
  614. by the active region. The result is shown in the echo area and can
  615. be inserted with `C-y'.
  616. `S-<RET>'
  617. When current field is empty, copy from first non-empty field above.
  618. When not empty, copy current field down to next row and move cursor
  619. along with it. Depending on the variable
  620. `org-table-copy-increment', integer field values will be
  621. incremented during copy. This key is also used by CUA-mode (*note
  622. Interaction::).
  623. Miscellaneous
  624. .............
  625. `C-c `'
  626. Edit the current field in a separate window. This is useful for
  627. fields that are not fully visible (*note Narrow columns::). When
  628. called with a `C-u' prefix, just make the full field visible, so
  629. that it can be edited in place.
  630. `C-c <TAB>'
  631. This is an alias for `C-u C-c `' to make the current field fully
  632. visible.
  633. `M-x org-table-import'
  634. Import a file as a table. The table should be TAB- or whitespace
  635. separated. Useful, for example, to import an Excel table or data
  636. from a database, because these programs generally can write
  637. TAB-separated text files. This command works by inserting the
  638. file into the buffer and then converting the region to a table.
  639. Any prefix argument is passed on to the converter, which uses it
  640. to determine the separator.
  641. `M-x org-table-export'
  642. Export the table as a TAB-separated file. Useful for data
  643. exchange with, for example, Excel or database programs.
  644. If you don't like the automatic table editor because it gets in your
  645. way on lines which you would like to start with `|', you can turn it
  646. off with
  647. (setq org-enable-table-editor nil)
  648. The only table command which then still works is `C-c C-c' to do a
  649. manual re-align.
  650. 
  651. File: org, Node: Narrow columns, Next: Table calculations, Prev: Built-in table editor, Up: Tables
  652. 3.2 Narrow columns
  653. ==================
  654. The width of columns is automatically determined by the table editor.
  655. Sometimes a single field or a few fields need to carry more text,
  656. leading to unconveniently wide columns. To limit(1) the width of a
  657. column, one field anywhere in the column must carry the string `<N>'
  658. where `N' is an integer specifying the width of the column in
  659. characters. The next re-align will then set the width of this column
  660. to no more than this value.
  661. |---+------------------------------| |---+--------|
  662. | | | | | <6> |
  663. | 1 | one | | 1 | one |
  664. | 2 | two | ----\ | 2 | two |
  665. | 3 | This is a long chunk of text | ----/ | 3 | This=> |
  666. | 4 | four | | 4 | four |
  667. |---+------------------------------| |---+--------|
  668. Fields that are wider become clipped and end in the string `=>'. Note
  669. that the full text is still in the buffer, it is only invisible. To
  670. see the full text, hold the mouse over the field - a tooltip window
  671. will show the full content. To edit such a field, use the command `C-c
  672. `' (that is `C-c' followed by the backquote). This will open a new
  673. window with the full field. Edit it and finish with `C-c C-c'.
  674. When visiting a file containing a table with narrowed columns, the
  675. necessary character hiding has not yet happened, and the table needs to
  676. be aligned before it looks nice. Setting the option
  677. `org-startup-align-all-tables' will realign all tables in a file upon
  678. visiting, but also slow down startup. You can also set this option on
  679. a per-file basis with:
  680. #+STARTUP: align
  681. #+STARTUP: noalign
  682. ---------- Footnotes ----------
  683. (1) This feature does not work on XEmacs.
  684. 
  685. File: org, Node: Table calculations, Next: orgtbl-mode, Prev: Narrow columns, Up: Tables
  686. 3.3 Calculations in tables
  687. ==========================
  688. The table editor makes use of the Emacs `calc' package to implement
  689. spreadsheet-like capabilities. Org-mode has two levels of complexity
  690. for table calculations. On the basic level, tables do only horizontal
  691. computations, so a field can be computed from other fields _in the same
  692. row_, and Org-mode assumes that there is only one formula for each
  693. column. This is very efficient to work with and enough for many tasks.
  694. On the complex level, columns and individual fields can be named for
  695. easier referencing in formulas, individual named fields can have their
  696. own formula associated with them, and recalculation can be automated.
  697. * Menu:
  698. * Formula syntax:: How to write a formula
  699. * Column formulas:: Formulas valid for all fields in a column
  700. * Advanced features:: Field names, parameters and automatic recalc
  701. * Named-field formulas:: Formulas valid in single fields
  702. * Editing/debugging formulas:: Changing a stored formula
  703. * Appetizer:: Taste the power of calc
  704. 
  705. File: org, Node: Formula syntax, Next: Column formulas, Prev: Table calculations, Up: Table calculations
  706. 3.3.1 Formula syntax
  707. --------------------
  708. A formula can be any algebraic expression understood by the Emacs
  709. `calc' package. Note that `calc' has the slightly non-standard
  710. convention that `/' has lower precedence than `*', so that `a/b*c' is
  711. interpreted as `a/(b*c)'. Before evaluation by `calc-eval' (*note
  712. calc-eval: (calc)Calling Calc from Your Lisp Programs.), variable
  713. substitution takes place:
  714. $ refers to the current field
  715. $3 refers to the field in column 3 of the current row
  716. $3..$7 a vector of the fields in columns 3-7 of current row
  717. $P1..$P3 vector of column range, using column names
  718. &2 second data field above the current, in same column
  719. &5-2 vector from fifth to second field above current
  720. &III-II vector of fields between 2nd and 3rd hline above
  721. &III vector of fields between third hline above and current field
  722. $name a named field, parameter or constant
  723. The range vectors can be directly fed into the calc vector functions
  724. like `vmean' and `vsum'.
  725. `$name' is interpreted as the name of a column, parameter or
  726. constant. Constants are defined globally through the variable
  727. `org-table-formula-constants'. If you have the `constants.el' package,
  728. it will also be used to resolve constants, including natural constants
  729. like `$h' for Planck's constant, and units like `$km' for kilometers.
  730. Column names and parameters can be specified in special table lines.
  731. These are described below, see *Note Advanced features::.
  732. A formula can contain an optional mode string after a semicolon.
  733. This string consists of flags to influence calc's modes(1) during
  734. execution, e.g. `p20' to switch the internal precision to 20 digits,
  735. `n3', `s3', `e2' or `f4' to switch to normal, scientific, engineering,
  736. or fixed display format, respectively, and `D', `R', `F', and `S' to
  737. turn on degrees, radians, fraction and symbolic modes, respectively.
  738. In addition, you may provide a `printf' format specifier to reformat
  739. the final result. A few examples:
  740. $1+$2 Sum of first and second field
  741. $1+$2;%.2f Same, format result to two decimals
  742. exp($2)+exp($1) Math functions can be used
  743. $;%.1f Reformat current cell to 1 decimal
  744. ($3-32)*5/9 Degrees F -> C conversion
  745. $c/$1/$cm Hz -> cm conversion, using `constants.el'
  746. tan($1);Dp3s1 Compute in degrees, precision 3, display SCI 1
  747. sin($1);Dp3%.1e Same, but use printf specifier for display
  748. vmean($2..$7) Compute column range mean, using vector function
  749. vsum(&III) Sum numbers from 3rd hline above, up to here
  750. taylor($3,x=7,2) taylor series of $3, at x=7, second degree
  751. ---------- Footnotes ----------
  752. (1) By default, Org-mode uses the standard calc modes (precision 12,
  753. angular units degrees, fraction and symbolic modes off). However, the
  754. display format has been changed to `(float 5)' to keep tables compact.
  755. The default settings can be configured using the variable
  756. `org-calc-default-modes'.
  757. 
  758. File: org, Node: Column formulas, Next: Advanced features, Prev: Formula syntax, Up: Table calculations
  759. 3.3.2 Column formulas
  760. ---------------------
  761. To apply a formula to a field, type it directly into the field,
  762. preceded by an equal sign, like `=$1+$2'. When you press <TAB> or
  763. <RET> or `C-c C-c' with the cursor still in the field, the formula will
  764. be stored as the formula for the current column, evaluated and the
  765. current field replaced with the result. If the field contains only
  766. `=', the previously stored formula for this column is used.
  767. For each column, Org-mode will remember the most recently used
  768. formula. The information is stored in a special line starting with
  769. `#+TBLFM' directly below the table. When adding/deleting/moving
  770. columns with the appropriate commands, the stored equations will be
  771. modified accordingly. When a column used in a calculation is removed,
  772. references to this column become invalid and will cause an error upon
  773. applying the equation.
  774. Instead of typing an equation into the field, you may also use the
  775. command `C-c ='. It prompts for a formula (with default taken from the
  776. `#+TBLFM:' line) and applies it to the current field. A numerical
  777. prefix (e.g. `C-5 C-c =') will apply it to that many subsequent fields
  778. in the current column.
  779. To recompute all the fields in a line, use the command `C-c *'. It
  780. re-applies all stored equations to the current row, from left to right.
  781. With a `C-u' prefix, this will be done to every line in the table, so
  782. use this command it you want to make sure the entire table is
  783. up-to-date. `C-u C-c C-c' is another way to update the entire table.
  784. Global updating does not touch the line(s) above the first horizontal
  785. separator line, assuming that this is the table header.
  786. 
  787. File: org, Node: Advanced features, Next: Named-field formulas, Prev: Column formulas, Up: Table calculations
  788. 3.3.3 Advanced features
  789. -----------------------
  790. If you want the recalculation of fields to happen automatically, or if
  791. you want to be able to assign a formula to an individual field (instead
  792. of an entire column) you need to reserve the first column of the table
  793. for special marking characters. Here is an example of a table that
  794. collects exam results of students and makes use of these features:
  795. |---+---------+--------+--------+--------+-------+------|
  796. | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
  797. |---+---------+--------+--------+--------+-------+------|
  798. | ! | | P1 | P2 | P3 | Tot | |
  799. | # | Maximum | 10 | 15 | 25 | 50 | 10.0 |
  800. | ^ | | m1 | m2 | m3 | mt | |
  801. |---+---------+--------+--------+--------+-------+------|
  802. | # | Peter | 10 | 8 | 23 | 41 | 8.2 |
  803. | # | Sara | 6 | 14 | 19 | 39 | 7.8 |
  804. | # | Sam | 2 | 4 | 3 | 9 | 1.8 |
  805. |---+---------+--------+--------+--------+-------+------|
  806. | | Average | | | | 29.7 | |
  807. | ^ | | | | | at | |
  808. | $ | max=50 | | | | | |
  809. |---+---------+--------+--------+--------+-------+------|
  810. #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(&II);%.1f
  811. Important: Please note that for these special tables, recalculating the
  812. table with `C-u C-c *' will only affect rows which are marked `#' or
  813. `*', and named fields. The column formulas are not applied in rows
  814. with empty first field.
  815. The marking characters have the following meaning:
  816. `!'
  817. The fields in this line define names for the columns, so that you
  818. may refer to a column as `$Tot' instead of `$6'.
  819. `^'
  820. This row defines names for the fields _above_ the row. With such
  821. a definition, any formula in the table may use `$m1' to refer to
  822. the value `10'. Also, named fields can have their own formula
  823. associated with them.
  824. `_'
  825. Similar to `^', but defines names for the fields in the row
  826. _below_.
  827. `$'
  828. Fields in this row can define _parameters_ for formulas. For
  829. example, if a field in a `$' row contains `max=50', then formulas
  830. in this table can refer to the value 50 using `$max'. Parameters
  831. work exactly like constants, only that they can be defined on a
  832. per-table basis. Changing a parameter and then recalculating the
  833. table can be useful.
  834. `#'
  835. Fields in this row are automatically recalculated when pressing
  836. <TAB> or <RET> or `S-<TAB>' in this row. Also, this row is
  837. selected for a global recalculation with `C-u C-c *'. Unmarked
  838. lines will be left alone by this command.
  839. `*'
  840. Selects this line for global recalculation with `C-u C-c *', but
  841. not for automatic recalculation. Use this when automatic
  842. recalculation slows down editing too much.
  843. `'
  844. Unmarked lines are exempt from recalculation with `C-u C-c *'.
  845. All lines that should be recalculated should be marked with `#' or
  846. `*'.
  847. 
  848. File: org, Node: Named-field formulas, Next: Editing/debugging formulas, Prev: Advanced features, Up: Table calculations
  849. 3.3.4 Named-field formulas
  850. --------------------------
  851. A named field can have its own formula associated with it. In the
  852. example above, this is used for the `at' field that contains the
  853. average result of the students. To enter a formula for a named field,
  854. just type it into the buffer, preceded by `:='. Or use `C-u C-c ='.
  855. This equation will be stored below the table like `$name=...'. Any
  856. recalculation in the table (even if only requested for the current
  857. line) will also update all named field formulas.
  858. 
  859. File: org, Node: Editing/debugging formulas, Next: Appetizer, Prev: Named-field formulas, Up: Table calculations
  860. 3.3.5 Editing and debugging formulas
  861. ------------------------------------
  862. To edit a column or field formula, use the commands `C-c =' and `C-u
  863. C-c =', respectively. The currently active expression is then
  864. presented as default in the minibuffer, where it may be edited.
  865. Note that making a table field blank does not remove the formula
  866. associated with the field - during the next recalculation the field
  867. will be filled again. To remove a formula from a field, you have to
  868. give an empty reply when prompted for the formula, or to edit the
  869. `#+TBLFM' line.
  870. You may edit the `#+TBLFM' directly and re-apply the changed
  871. equations with `C-c C-c' in that line, or with the normal recalculation
  872. commands in the table.
  873. In particular for large tables with many formulas, it is convenient
  874. to use the command `C-c '' to edit the formulas of the current table in
  875. a separate buffer. That buffer will show the formulas one per line,
  876. and you are free to edit, add and remove formulas. Press `C-c ?' on a
  877. `$...' expression to get information about its interpretation.
  878. Exiting the buffer with `C-c C-c' only stores the modified formulas
  879. below the table. Exiting with `C-u C-c C-c' also applies them to the
  880. entire table. `C-c C-q' exits without installing the changes.
  881. When the evaluation of a formula leads to an error, the field content
  882. becomes the string `#ERROR'. If you would like see what is going on
  883. during variable substitution and calculation in order to find a bug,
  884. turn on formula debugging in the menu and repeat the calculation, for
  885. example by pressing `C-c = <RET>' in a field. Detailed information
  886. will be displayed.
  887. 
  888. File: org, Node: Appetizer, Prev: Editing/debugging formulas, Up: Table calculations
  889. 3.3.6 Appetizer
  890. ---------------
  891. Finally, just to wet your appetite on what can be done with the
  892. fantastic `calc' package, here is a table that computes the Taylor
  893. series for a couple of functions (homework: try that with Excel :-)
  894. |---+-------------+---+-----+--------------------------------------|
  895. | | Func | n | x | Result |
  896. |---+-------------+---+-----+--------------------------------------|
  897. | # | exp(x) | 1 | x | 1 + x |
  898. | # | exp(x) | 2 | x | 1 + x + x^2 / 2 |
  899. | # | exp(x) | 3 | x | 1 + x + x^2 / 2 + x^3 / 6 |
  900. | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
  901. | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2 |
  902. | * | tan(x) | 3 | x | 0.0175 x + 1.77e-6 x^3 |
  903. |---+-------------+---+-----+--------------------------------------|
  904. #+TBLFM: $5=taylor($2,$4,$3);n3
  905. 
  906. File: org, Node: orgtbl-mode, Next: table.el, Prev: Table calculations, Up: Tables
  907. 3.4 The Orgtbl minor mode
  908. =========================
  909. If you like the intuitive way the Org-mode table editor works, you
  910. might want to use it also in other modes like text-mode or mail-mode.
  911. The minor mode Orgtbl-mode makes this possible. You can always toggle
  912. the mode with `M-x orgtbl-mode'. To turn it on by default, for example
  913. in mail mode, use
  914. (add-hook 'mail-mode-hook 'turn-on-orgtbl)
  915. 
  916. File: org, Node: table.el, Prev: orgtbl-mode, Up: Tables
  917. 3.5 The `table.el' package
  918. ==========================
  919. Complex ASCII tables with automatic line wrapping, column- and
  920. row-spanning, and alignment can be created using the Emacs table
  921. package by Takaaki Ota (`http://sourceforge.net/projects/table', and
  922. also part of Emacs 22). When <TAB> or `C-c C-c' is pressed in such a
  923. table, Org-mode will call `table-recognize-table' and move the cursor
  924. into the table. Inside a table, the keymap of Org-mode is inactive.
  925. In order to execute Org-mode-related commands, leave the table.
  926. `C-c C-c'
  927. Recognize `table.el' table. Works when the cursor is in a
  928. table.el table.
  929. `C-c ~'
  930. Insert a table.el table. If there is already a table at point,
  931. this command converts it between the table.el format and the
  932. Org-mode format. See the documentation string of the command
  933. `org-convert-table' for the restrictions under which this is
  934. possible.
  935. 
  936. File: org, Node: Hyperlinks, Next: TODO items, Prev: Tables, Up: Top
  937. 4 Hyperlinks
  938. ************
  939. Just like HMTL, Org-mode provides links inside a file, and external
  940. links to other files, Usenet articles, emails and much more.
  941. * Menu:
  942. * Link format:: How links in Org-mode are formatted
  943. * Internal links:: Links to other places in the current file
  944. * External links:: URL-like links to the world
  945. * Managing links:: Creating, inserting and following
  946. * Search Options:: Linking to a specific location
  947. * Remember:: Org-trees store quick notes
  948. 
  949. File: org, Node: Link format, Next: Internal links, Prev: Hyperlinks, Up: Hyperlinks
  950. 4.1 Link format
  951. ===============
  952. Org-mode will recognize plain URL-like links and activate them as
  953. clickable links. However, the general linkformat looks like this:
  954. [[link][description]] or alternatively [[link]]
  955. Once a link in the buffer is complete (all brackets present),
  956. Org-mode will change the display so that `description' is displayed
  957. instead of `[[link][description]]' and `link' is displayed instead of
  958. `[[link]]'. Links will be highlighted in the face `org-link', which by
  959. default is an underlined face. You can directly edit the visible part
  960. of a link. Note that this can be either the `link' part (if there is
  961. not description) or the `description' part. To edit also the invisible
  962. `link' part, use `C-c C-l' with the cursor on the link.
  963. If you place the cursor at the beginning or just behind the end of
  964. the displayed text and press <BACKSPACE>, you will remove the
  965. (invisible) bracket at that location. This makes the link incomplete
  966. and the internals are again displayed as plain text. Inserting the
  967. missing bracket does hide the link internals again. To show the
  968. internal structure of all links, use the menu entry
  969. `Org->Hyperlinks->Literal links'.
  970. 
  971. File: org, Node: Internal links, Next: External links, Prev: Link format, Up: Hyperlinks
  972. 4.2 Internal links
  973. ==================
  974. If the link text does not look like a URL, links are considered to be
  975. internal in the current file. Links such as `[[My Target]]' or `[[My
  976. Target][Find my target]]' lead to a text search in the current file.
  977. The link can be followed with `C-c C-o' when the cursor is on the link,
  978. or with a mouse click (*note Managing links::). The preferred match
  979. for such a link is a dedicated target: The same string in double
  980. angular brackets. Targets may be located anywhere, often it is
  981. convenient to put them into a comment line, for example
  982. # <<My Target>>
  983. If no dedicated target exists, Org-mode will search for the words in
  984. the link, often removing the need for a dedicated target. In the above
  985. example the search would be for `my target'. Links starting with a
  986. star like `*My Target' restrict the search to headlines. When
  987. searching, Org-mode will first try an exact match, but then move on to
  988. more and more lenient searches. For example, the link `[[*My
  989. Targets]]' will find any of the following:
  990. ** My targets
  991. ** TODO my targets are bright
  992. ** my 20 targets are
  993. To insert a link targeting a headline, in-buffer completion can be
  994. used. Just type a star followed by a few optional letters into the
  995. buffer and press `M-<TAB>'. All headlines in the current buffer will be
  996. offered as completions. *Note Managing links::, for more commands
  997. creating links.
  998. Following a link pushes a mark onto Org-mode's own mark ring. You
  999. can return to the previous position with `C-c &'. Using this command
  1000. several times in direct succession goes back to positions recorded
  1001. earlier.
  1002. * Menu:
  1003. * Radio targets:: Make targets trigger links in plain text.
  1004. * CamelCase links:: Activating CamelCase words as links
  1005. 
  1006. File: org, Node: Radio targets, Next: CamelCase links, Prev: Internal links, Up: Internal links
  1007. 4.2.1 Radio targets
  1008. -------------------
  1009. You can configure Org-mode to link any occurrences of certain target
  1010. names in normal text. So without explicitly creating a link, the text
  1011. connects to the target radioing its position. Radio targets are
  1012. enclosed by triple angular brackets. For example, a target `<<<My
  1013. Target>>>' causes each occurrence of `my target' in normal text to
  1014. become activated as a link. The Org-mode file is scanned automatically
  1015. for radio targets only when the file is first loaded into Emacs. To
  1016. update the target list during editing, press `C-c C-c' with the cursor
  1017. on or at a target.
  1018. 
  1019. File: org, Node: CamelCase links, Prev: Radio targets, Up: Internal links
  1020. 4.2.2 CamelCase words as links
  1021. ------------------------------
  1022. Org-mode also supports CamelCase words as links. This feature is not
  1023. turned on by default because of the inconsistencies this system suffers
  1024. from. To activate CamelCase words as links, you need to customize the
  1025. option `org-activate-links'. A CamelCase word then leads to a text
  1026. search such that `CamelCaseLink' is equivalent to `[[camel case link]]'.
  1027. 
  1028. File: org, Node: External links, Next: Managing links, Prev: Internal links, Up: Hyperlinks
  1029. 4.3 External links
  1030. ==================
  1031. Org-mode supports links to files, websites, Usenet and email messages;
  1032. and BBDB database entries. External links are URL-like locators. The
  1033. following list shows examples for each link type.
  1034. http://www.astro.uva.nl/~dominik on the web
  1035. file:/home/dominik/images/jupiter.jpg file, absolute path
  1036. file:papers/last.pdf file, relative path
  1037. news:comp.emacs Usenet link
  1038. mailto:adent@galaxy.net Mail link
  1039. vm:folder VM folder link
  1040. vm:folder#id VM message link
  1041. vm://myself@some.where.org/folder#id VM on remote machine
  1042. wl:folder WANDERLUST folder link
  1043. wl:folder#id WANDERLUST message link
  1044. mhe:folder MH-E folder link
  1045. mhe:folder#id MH-E message link
  1046. rmail:folder RMAIL folder link
  1047. rmail:folder#id RMAIL message link
  1048. gnus:group GNUS group link
  1049. gnus:group#id GNUS article link
  1050. bbdb:Richard Stallman BBDB link
  1051. shell:ls *.org A shell command
  1052. A link should be enclosed in double brackets and may contain a
  1053. descriptive text to be displayed instead of the url (*note Link
  1054. format::), for example:
  1055. [[http://www.gnu.org/software/emacs/][GNU Emacs]]
  1056. Org-mode also finds external links in the normal text and activates
  1057. them as links. If spaces must be part of the link (for example in
  1058. `bbdb:Richard Stallman') or to remove ambiguities about the end of the
  1059. link, enclose them in angular brackets.
  1060. 
  1061. File: org, Node: Managing links, Next: Search Options, Prev: External links, Up: Hyperlinks
  1062. 4.4 Managing links
  1063. ==================
  1064. Org-mode provides methods to create a link in the correct syntax, to
  1065. insert it into an org-mode file, and to follow the link.
  1066. `C-c l'
  1067. Store a link to the current location. This is a _global_ command
  1068. which can be used in any buffer to create a link. The link will be
  1069. stored for later insertion into an Org-mode buffer (see below).
  1070. For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers, the link
  1071. will point to the current article/entry. For W3 and W3M buffers,
  1072. the link goes to the current URL. For Org-mode files, the current
  1073. headline is targeted. For any other files, the link will point to
  1074. the file, with a search string (*note Search Options::) pointing
  1075. to the contents of the current line. If there is an active
  1076. region, the selected words will form the basis of the search
  1077. string. The key binding `C-c l' is only a suggestion - see *Note
  1078. Installation and activation::.
  1079. `C-c C-l'
  1080. Insert a link. This prompts for a link to be inserted into the
  1081. buffer. You can just type a link, using text for an internal
  1082. link, or one of the link type prefixes mentioned in the examples
  1083. above. Through completion, all links stored during the current
  1084. session can be accessed. The link will be formatted as given in
  1085. the variable `org-link-format' and inserted into the buffer, along
  1086. with a descriptive text. Note that you don't have to use this
  1087. command to insert a link. Links in Org-mode are plain text, and
  1088. you can type or paste them straight into the buffer. By using
  1089. this command, the links are automatically enclosed in double
  1090. brackets, and you will be asked for the optional descriptive text.
  1091. `C-u C-c C-l'
  1092. When `C-c C-l' is called with a `C-u' prefix argument, a link to a
  1093. file will be inserted and you may use file name completion to
  1094. select the name of the file. The path to the file is inserted
  1095. relative to the directory of the current org file, if the linked
  1096. file is in the current directory or in a subdirectory of it.
  1097. Otherwise an absolute path, if possible with `~/' for your home
  1098. directory is used. You can force an absolute path with two `C-u'
  1099. prefixes.
  1100. `C-c C-l with cursor on existing link'
  1101. When the cursor is on an existing link, `C-c C-l' allows to edit
  1102. the link and description parts of the link.
  1103. `C-c C-o'
  1104. Open link at point. This will launch a web browser for URLs (using
  1105. `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
  1106. the corresponding links, and execute the command in a shell link.
  1107. When the cursor is on an internal link, this commands runs the
  1108. corresponding search. When the cursor is on a TAGS list in a
  1109. headline, it creates the corresponding TAGS view. If the cursor
  1110. is on a time stamp, it compiles the agenda for that date.
  1111. Furthermore, it will visit text files in `file:' links with Emacs
  1112. and select a suitable application for non-text files.
  1113. Classification of files is based on file extension only. See
  1114. option `org-file-apps'. If you want to override the default
  1115. application and visit the file with Emacs, use a `C-u' prefix.
  1116. `mouse-2'
  1117. `mouse-1'
  1118. On links, `mouse-2' will open the link just like `C-c C-o' would.
  1119. Under Emacs 22, also `mouse-1' will follow a link.
  1120. `mouse-3'
  1121. Like `mouse-2', but force file links to be opened with Emacs.
  1122. `C-c %'
  1123. Push the current position onto the mark ring, to be able to return
  1124. easily. Commands following an internal link do this automatically.
  1125. `C-c &'
  1126. Jump back to a recorded position. A position is recorded by the
  1127. commands following internal links, and by `C-c %'. Using this
  1128. command several times in direct succession moves through a ring of
  1129. previously recorded positions.
  1130. 
  1131. File: org, Node: Search Options, Next: Remember, Prev: Managing links, Up: Hyperlinks
  1132. 4.5 Search options in file links
  1133. ================================
  1134. File links can contain additional information to make Emacs jump to a
  1135. particular location in the file when following a link. This can be a
  1136. line number or a search option after a double(1) colon. For example:
  1137. [[file:~/code/main.c::255]]
  1138. [[file:~/xx.org::My Target]]
  1139. [[file:~/xx.org::*My Target]]
  1140. [[file:~/xx.org::/regexp/]]
  1141. Here is what these options do.
  1142. `255'
  1143. Jump to line 255.
  1144. `My Target'
  1145. Search for a link target `<<My Target>>', or do a text search for
  1146. `my target', similar to the search in internal links, see *Note
  1147. Internal links::.
  1148. `*My Target'
  1149. In an Org-mode file, restrict search to headlines.
  1150. `/regexp/'
  1151. Do a regular expression search for `regexp'. This uses the Emacs
  1152. command `occur' to list all matches in a separate window. If the
  1153. target file is in Org-mode, `org-occur' is used to create a sparse
  1154. tree with the matches.
  1155. As a degenerate case, a file link with an empty file name can be used
  1156. to search the current file. For example, `<file:::find me>' does a
  1157. search for `find me' in the current file, just like `[[find me]]' would.
  1158. ---------- Footnotes ----------
  1159. (1) For backward compatibility, line numbers can also follow a
  1160. single colon.
  1161. 
  1162. File: org, Node: Remember, Prev: Search Options, Up: Hyperlinks
  1163. 4.6 Remember
  1164. ============
  1165. Another way to create org entries with links to other files is through
  1166. the _Remember_ package by John Wiegley. _Remember_ lets you store
  1167. quick notes with little interruption of your work flow. See
  1168. `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
  1169. information. The notes produced by _Remember_ can be stored in
  1170. different ways, and Org-mode files are a good target. Org-mode allows
  1171. to file away notes either to a default file, or directly to the correct
  1172. location in your Org-mode outline tree. The following customization(1)
  1173. will tell _Remember_ to use org files as target, and to create
  1174. annotations compatible with Org-mode links.
  1175. (setq org-directory "~/path/to/my/orgfiles/")
  1176. (setq org-default-notes-file "~/.notes")
  1177. (autoload 'org-remember-annotation "org")
  1178. (autoload 'org-remember-apply-template "org")
  1179. (autoload 'org-remember-handler "org")
  1180. (setq remember-annotation-functions '(org-remember-annotation))
  1181. (setq remember-handler-functions '(org-remember-handler))
  1182. (add-hook 'remember-mode-hook 'org-remember-apply-template)
  1183. In combination with Org-mode, you can use templates to generate
  1184. different types of remember notes. For example, if you would like to
  1185. use one template to create general TODO entries, and another one for
  1186. journal entries, you could use:
  1187. (setq org-remember-templates
  1188. '((?t "* TODO %?\n %i\n %a" "~/org/TODO.org")
  1189. (?j "* %U %?\n\n %i\n %a" "~/org/JOURNAL.org")))
  1190. In these entries, the character specifies how to select the template,
  1191. the first string specifies the template, and the (optional) second
  1192. string specifies a default file (overruling `org-default-notes-file')
  1193. as a target for this note.
  1194. When you call `M-x remember' to remember something, org will prompt
  1195. for a key to select the template and then prepare the buffer like
  1196. * TODO
  1197. <file:link to where you called remember>
  1198. or
  1199. * [2006-03-21 Tue 15:37]
  1200. <file:link to where you called remember>
  1201. See the variable `org-remember-templates' for more details.
  1202. When you are finished composing a note with remember, you have to
  1203. press `C-c C-c' to file the note away. The handler first prompts for a
  1204. target file - if you press <RET>, the value of `org-default-notes-file'
  1205. is used. Then the command offers the headings tree of the selected
  1206. file. You can either immediately press <RET> to get the note appended
  1207. to the file. Or you can use vertical cursor motion (<up> and <down>)
  1208. and visibility cycling (<TAB>) to find a better place. Pressing <RET>
  1209. or <left> or <right> leads to the following result.
  1210. Cursor Key Note gets inserted
  1211. position
  1212. buffer-start <RET> as level 2 heading at end of file
  1213. on headline <RET> as sublevel of the heading at cursor
  1214. <left> as same level, before current heading
  1215. <right> as same level, after current heading
  1216. not on <RET> at cursor position, level taken from context.
  1217. headline Or use prefix arg to specify level
  1218. manually.
  1219. So a fast way to store the note is to press `C-c C-c <RET> <RET>' to
  1220. append it to the default file. Even shorter would be `C-u C-c C-c',
  1221. which does the same without even showing the tree. But with little
  1222. extra effort, you can push it directly to the correct location.
  1223. Before inserting the text into a tree, the function ensures that the
  1224. text has a headline, i.e. a first line that starts with a `*'. If not,
  1225. a headline is constructed from the current date and some additional
  1226. data. If the variable `org-adapt-indentation' is non-nil, the entire
  1227. text is also indented so that it starts in the same column as the
  1228. headline (after the asterisks).
  1229. ---------- Footnotes ----------
  1230. (1) The three autoload forms are only necessary if `org.el' is not
  1231. part of the Emacs distribution or an XEmacs package.
  1232. 
  1233. File: org, Node: TODO items, Next: Timestamps, Prev: Hyperlinks, Up: Top
  1234. 5 TODO items
  1235. ************
  1236. Org-mode does not maintain TODO lists as a separate document. TODO
  1237. items are an integral part of the notes file, because TODO items
  1238. usually come up while taking notes! With Org-mode, you simply mark any
  1239. entry in a tree as being a TODO item. In this way, the information is
  1240. not duplicated, and the entire context from which the item emerged is
  1241. always present when you check.
  1242. Of course, this technique causes TODO items to be scattered
  1243. throughout your file. Org-mode provides methods to give you an
  1244. overview over all things you have to do.
  1245. * Menu:
  1246. * TODO basics:: Marking and displaying TODO entries
  1247. * Progress logging:: Document your productivity
  1248. * TODO extensions:: Workflow and assignments
  1249. * Priorities:: Some things are more important than others
  1250. 
  1251. File: org, Node: TODO basics, Next: Progress logging, Prev: TODO items, Up: TODO items
  1252. 5.1 Basic TODO functionality
  1253. ============================
  1254. Any headline can become a TODO item by starting it with the word TODO,
  1255. for example:
  1256. *** TODO Write letter to Sam Fortune
  1257. The most important commands to work with TODO entries are:
  1258. `C-c C-t'
  1259. Rotate the TODO state of the current item between
  1260. ,-> (unmarked) -> TODO -> DONE --.
  1261. '--------------------------------'
  1262. The same rotation can also be done "remotely" from the timeline and
  1263. agenda buffers with the `t' command key (*note Agenda commands::).
  1264. `C-c C-v'
  1265. View TODO items in a _sparse tree_ (*note Sparse trees::). Folds
  1266. the entire buffer, but shows all TODO items and the headings
  1267. hierarchy above them. With prefix arg, show also the DONE
  1268. entries. With numerical prefix N, show the tree for the Nth
  1269. keyword in the variable `org-todo-keywords'.
  1270. `C-c a t'
  1271. Show the global TODO list. This collects the TODO items from all
  1272. agenda files (*note Agenda Views::) into a single buffer. The
  1273. buffer is in `agenda-mode', so there are commands to examine and
  1274. manipulate the TODO entries directly from that buffer (*note
  1275. Agenda commands::). *Note Global TODO list::, for more
  1276. information.
  1277. ``org-agenda-include-all-todo''
  1278. If you would like to have all your TODO items listed as part of
  1279. your agenda, customize the variable `org-agenda-include-all-todo'.
  1280. 
  1281. File: org, Node: Progress logging, Next: TODO extensions, Prev: TODO basics, Up: TODO items
  1282. 5.2 Progress Logging
  1283. ====================
  1284. If you want to keep track of _when_ a certain TODO item was finished,
  1285. turn on logging with
  1286. (setq org-log-done t)
  1287. Then each time you turn a TODO entry into DONE using either `C-c C-t'
  1288. in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
  1289. [timestamp]' will be inserted just after the headline. If you turn the
  1290. entry back into a TODO item again through further state cycling, that
  1291. line will be removed again. In the timeline (*note Timeline::) and in
  1292. the agenda (*note Weekly/Daily Agenda::), you can then use the `L' key
  1293. to display the TODO items closed on each day, giving you an overview of
  1294. what has been done on a day.
  1295. 
  1296. File: org, Node: TODO extensions, Next: Priorities, Prev: Progress logging, Up: TODO items
  1297. 5.3 Extended use of TODO keywords
  1298. =================================
  1299. The default implementation of TODO entries is just two states: TODO and
  1300. DONE. You can, however, use the TODO feature for more complicated
  1301. things by configuring the variables `org-todo-keywords' and
  1302. `org-todo-interpretation'. Using special setup, you can even use TODO
  1303. keywords in different ways in different org files.
  1304. Note that tags are another way to classify headlines in general and
  1305. TODO items in particular (*note Tags::).
  1306. * Menu:
  1307. * Workflow states:: From TODO to DONE in steps
  1308. * TODO types:: I do this, Fred the rest
  1309. * Per file keywords:: Different files, different requirements
  1310. 
  1311. File: org, Node: Workflow states, Next: TODO types, Prev: TODO extensions, Up: TODO extensions
  1312. 5.3.1 TODO keywords as workflow states
  1313. --------------------------------------
  1314. You can use TODO keywords to indicate different states in the process
  1315. of working on an item, for example:
  1316. (setq org-todo-keywords '("TODO" "FEEDBACK" "VERIFY" "DONE")
  1317. org-todo-interpretation 'sequence)
  1318. Changing these variables becomes only effective in a new Emacs
  1319. session. With this setup, the command `C-c C-t' will cycle an entry
  1320. from TODO to FEEDBACK, then to VERIFY, and finally to DONE. You may
  1321. also use a prefix argument to quickly select a specific state. For
  1322. example `C-3 C-c C-t' will change the state immediately to VERIFY. If
  1323. you define many keywords, you can use in-buffer completion (see *Note
  1324. Completion::) to insert these words into the buffer.
  1325. 
  1326. File: org, Node: TODO types, Next: Per file keywords, Prev: Workflow states, Up: TODO extensions
  1327. 5.3.2 TODO keywords as types
  1328. ----------------------------
  1329. The second possibility is to use TODO keywords to indicate different
  1330. types of action items. For example, you might want to indicate that
  1331. items are for "work" or "home". If you are into David Allen's _Getting
  1332. Things DONE_, you might want to use todo types `NEXTACTION', `WAITING',
  1333. `MAYBE'. Or, when you work with several people on a single project,
  1334. you might want to assign action items directly to persons, by using
  1335. their names as TODO keywords. This would be set up like this:
  1336. (setq org-todo-keywords '("Fred" "Sara" "Lucy" "Mike" "DONE")
  1337. org-todo-interpretation 'type)
  1338. In this case, different keywords do not indicate a sequence, but
  1339. rather different types. So it is normally not useful to change from
  1340. one type to another. Therefore, in this case the behavior of the
  1341. command `C-c C-t' is changed slightly(1). When used several times in
  1342. succession, it will still cycle through all names. But when you return
  1343. to the item after some time and execute `C-c C-t' again, it will switch
  1344. from each name directly to DONE. Use prefix arguments or completion to
  1345. quickly select a specific name. You can also review the items of a
  1346. specific TODO type in a sparse tree by using a numeric prefix to `C-c
  1347. C-v'. For example, to see all things Lucy has to do, you would use
  1348. `C-3 C-c C-v'. To collect Lucy's items from all agenda files into a
  1349. single buffer, you would use the prefix arg as well when creating the
  1350. global todo list: `C-3 C-c t'.
  1351. ---------- Footnotes ----------
  1352. (1) This is also true for the `t' command in the timeline and agenda
  1353. buffers.
  1354. 
  1355. File: org, Node: Per file keywords, Prev: TODO types, Up: TODO extensions
  1356. 5.3.3 Setting up TODO keywords for individual files
  1357. ---------------------------------------------------
  1358. It can be very useful to use different aspects of the TODO mechanism in
  1359. different files, which is not possible with the global settings
  1360. described above. For file-local settings, you need to add special
  1361. lines to the file which set the keywords and interpretation for that
  1362. file only. For example, to set one of the two examples discussed
  1363. above, you need one of the following lines, starting in column zero
  1364. anywhere in the file:
  1365. #+SEQ_TODO: TODO FEEDBACK VERIFY DONE
  1366. #+TYP_TODO: Fred Sara Lucy Mike DONE
  1367. To make sure you are using the correct keyword, type `#+' into the
  1368. buffer and then use `M-<TAB>' completion.
  1369. Remember that the last keyword must always mean that the item is DONE
  1370. (you may use a different word, though). Also note that in each file,
  1371. only one of the two aspects of TODO keywords can be used. After
  1372. changing one of these lines, use `C-c C-c' with the cursor still in the
  1373. line to make the changes known to Org-mode(1).
  1374. If you want to use very many keywords, for example when working with
  1375. a large group of people, you may split the names over several lines:
  1376. #+TYP_TODO: Fred Sara Lucy Mike
  1377. #+TYP_TODO: Luis George Jules Jessica
  1378. #+TYP_TODO: Kim Arnold Peter
  1379. #+TYP_TODO: DONE
  1380. ---------- Footnotes ----------
  1381. (1) Org-mode parses these lines only when Org-mode is activated
  1382. after visiting a file. `C-c C-c' with the cursor in a line starting
  1383. with `#+' is simply restarting Org-mode, making sure that these changes
  1384. will be respected.
  1385. 
  1386. File: org, Node: Priorities, Prev: TODO extensions, Up: TODO items
  1387. 5.4 Priorities
  1388. ==============
  1389. If you use Org-mode extensively to organize your work, you may end up
  1390. with a number of TODO entries so large that you'd like to prioritize
  1391. them. This can be done by placing a _priority cookie_ into the
  1392. headline, like this
  1393. *** TODO [#A] Write letter to Sam Fortune
  1394. With its standard setup, Org-mode supports priorities `A', `B', and
  1395. `C'. `A' is the highest priority. An entry without a cookie is
  1396. treated as priority `B'. Priorities make a difference only in the
  1397. agenda (*note Weekly/Daily Agenda::).
  1398. `C-c ,'
  1399. Set the priority of the current item. The command prompts for a
  1400. priority character `A', `B' or `C'. When you press <SPC> instead,
  1401. the priority cookie is removed from the headline. The priorities
  1402. can also be changed "remotely" from the timeline and agenda buffer
  1403. with the `,' command (*note Agenda commands::).
  1404. `S-<up>'
  1405. `S-<down>'
  1406. Increase/decrease priority of current item. Note that these keys
  1407. are also used to modify time stamps (*note Creating timestamps::).
  1408. Furthermore, these keys are also used by CUA-mode (*note
  1409. Interaction::).
  1410. 
  1411. File: org, Node: Timestamps, Next: Tags, Prev: TODO items, Up: Top
  1412. 6 Timestamps
  1413. ************
  1414. Items can be labeled with timestamps to make them useful for project
  1415. planning.
  1416. * Menu:
  1417. * Time stamps:: Assigning a time to a tree entry
  1418. * Creating timestamps:: Commands which insert timestamps
  1419. 
  1420. File: org, Node: Time stamps, Next: Creating timestamps, Prev: Timestamps, Up: Timestamps
  1421. 6.1 Time stamps, deadlines and scheduling
  1422. =========================================
  1423. A time stamp is a specification of a date (possibly with time) in a
  1424. special format, either `<2003-09-16 Tue>' or `<2003-09-16 Tue 09:39>'.
  1425. A time stamp can appear anywhere in the headline or body of an org-tree
  1426. entry. Its presence allows entries to be shown on specific dates in
  1427. the agenda (*note Weekly/Daily Agenda::). We distinguish:
  1428. TIMESTAMP
  1429. A simple time stamp just assigns a date/time to an item. In the
  1430. timeline and agenda displays, the headline of the entry will be
  1431. shown exactly on that date.
  1432. TIMERANGE
  1433. Two time stamps connected by `--' denote a time range. The
  1434. headline will be shown on the first and last day of the range, and
  1435. on any dates that are displayed and fall in the range. Here is an
  1436. example:
  1437. ** Meeting in Amsterdam
  1438. <2004-08-23 Mon>--<2004-08-26 Thu>
  1439. DEADLINE
  1440. If a time stamp is preceded by the word `DEADLINE:', the task
  1441. (most likely a TODO item) is supposed to be finished on that date,
  1442. and it will be listed then. In addition, the compilation for
  1443. _today_ will carry a warning about the approaching or missed
  1444. deadline, starting `org-deadline-warning-days' before the due
  1445. date, and continuing until the entry is marked DONE. An example:
  1446. *** TODO write article about the Earth for the Guide
  1447. The editor in charge is <bbdb:Ford Prefect>
  1448. DEADLINE: <2004-02-29 Sun>
  1449. SCHEDULED
  1450. If a time stamp is preceded by the word `SCHEDULED:', it means you
  1451. are planning to start working on that task on the given date. The
  1452. headline will be listed under the given date. In addition, a
  1453. reminder that the scheduled date has passed will be present in the
  1454. compilation for _today_, until the entry is marked DONE. I.e., the
  1455. task will automatically be forwarded.
  1456. 
  1457. File: org, Node: Creating timestamps, Prev: Time stamps, Up: Timestamps
  1458. 6.2 Creating timestamps
  1459. =======================
  1460. For Org-mode to recognize time stamps, they need to be in the specific
  1461. format. All commands listed below produce time stamps in the correct
  1462. format.
  1463. `C-c .'
  1464. Prompt for a date and insert a corresponding time stamp. When the
  1465. cursor is at a previously used time stamp, it is updated to NOW.
  1466. When this command is used twice in succession, a time range is
  1467. inserted.
  1468. `C-u C-c .'
  1469. Like `C-c .', but use the alternative format which contains date
  1470. and time. The default time can be rounded to multiples of 5
  1471. minutes, see the option `org-time-stamp-rounding-minutes'.
  1472. `C-c !'
  1473. Like `C-c .', but insert an inactive time stamp not triggering the
  1474. agenda.
  1475. `C-c <'
  1476. Insert a time stamp corresponding to the cursor date in the
  1477. Calendar.
  1478. `C-c >'
  1479. Access the Emacs calendar for the current date. If there is a
  1480. timestamp in the current line, goto the corresponding date instead.
  1481. `C-c C-o'
  1482. Access the agenda for the date given by the time stamp at point
  1483. (*note Weekly/Daily Agenda::).
  1484. `C-c C-d'
  1485. Insert `DEADLINE' keyword along with a stamp.
  1486. `C-c C-w'
  1487. Create a sparse tree with all deadlines that are either past-due,
  1488. or which will become due within `org-deadline-warning-days'. With
  1489. `C-u' prefix, show all deadlines in the file. With a numeric
  1490. prefix, check that many days. For example, `C-1 C-c C-w' shows
  1491. all deadlines due tomorrow.
  1492. `C-c C-s'
  1493. Insert `SCHEDULED' keyword along with a stamp.
  1494. `S-<left>'
  1495. `S-<right>'
  1496. Change date at cursor by one day. These key bindings conflict with
  1497. CUA-mode (*note Interaction::).
  1498. `S-<up>'
  1499. `S-<down>'
  1500. Change the item under the cursor in a timestamp. The cursor can
  1501. be on a year, month, day, hour or minute. Note that if the cursor
  1502. is not at a time stamp, these same keys modify the priority of an
  1503. item. (*note Priorities::). The key bindings also conflict with
  1504. CUA-mode (*note Interaction::).
  1505. `C-c C-y'
  1506. Evaluate a time range by computing the difference between start and
  1507. end. With prefix arg, insert result after the time range (in a
  1508. table: into the following column).
  1509. When Org-mode prompts for a date/time, the function reading your
  1510. input will replace anything you choose not to specify with the current
  1511. date and time. For details, see the documentation string of
  1512. `org-read-date'. Also, a calender will pop up to allow selecting a
  1513. date. The calendar can be fully controlled from the minibuffer, and a
  1514. date can be selected with the following commands:
  1515. `<'
  1516. Scroll calendar backwards by one month.
  1517. `>'
  1518. Scroll calendar forwards by one month.
  1519. `mouse-1'
  1520. Select date by clicking on it.
  1521. `S-<right>'
  1522. One day forward.
  1523. `S-<left>'
  1524. One day back.
  1525. `S-<down>'
  1526. One week forward.
  1527. `S-<up>'
  1528. One week back.
  1529. `M-S-<right>'
  1530. One month forward.
  1531. `M-S-<left>'
  1532. One month back.
  1533. `<RET>'
  1534. Choose date in calendar (only if nothing typed into minibuffer).
  1535. 
  1536. File: org, Node: Tags, Next: Agenda Views, Prev: Timestamps, Up: Top
  1537. 7 Tags
  1538. ******
  1539. If you wish to implement a system to cross-correlate information, an
  1540. excellent way is to assign tags to headline. Org-mode has extensive
  1541. support for using tags.
  1542. Every headline can contain a list of tags, at the end of the
  1543. headline. Tags are normal words containing letters, numbers, `_', and
  1544. `@'. Tags must be preceded and followed by a single colon; like
  1545. `:WORK:'. Several tags can be specified like `:WORK:URGENT:'.
  1546. * Menu:
  1547. * Tag inheritance:: Tags use the tree structure of the outline
  1548. * Setting tags:: How to assign tags to a headline
  1549. * Tag searches:: Searching for combinations of tags
  1550. 
  1551. File: org, Node: Tag inheritance, Next: Setting tags, Prev: Tags, Up: Tags
  1552. 7.1 Tag inheritance
  1553. ===================
  1554. Tags make use of the hierarchical structure of outline trees. If a
  1555. heading has a certain tag, all subheadings will inherit the tag as
  1556. well. For example, in the list
  1557. * Meeting with the French group :WORK:
  1558. ** Summary by Frank :BOSS:NOTES:
  1559. *** TODO Prepare slides for him :ACTION:
  1560. the final heading will have the tags `:WORK:', `:BOSS:', `:NOTES:', and
  1561. `:ACTION:'. When executing tag searches and Org-mode finds that a
  1562. certain headline matches the search criterion, it will not check any
  1563. sublevel headline, assuming that these likely also match, and that the
  1564. list of matches can become very long. However, this may not be what
  1565. you want, and you can influence inheritance and searching using the
  1566. variables `org-use-tag-inheritance' and `org-tags-match-list-sublevels'.
  1567. 
  1568. File: org, Node: Setting tags, Next: Tag searches, Prev: Tag inheritance, Up: Tags
  1569. 7.2 Setting tags
  1570. ================
  1571. As Org-mode deals with plain text files, tags can simply be typed into
  1572. the buffer. After a colon, `M-<TAB>' offers completion on all tags
  1573. being used in the current buffer. There is also a special command for
  1574. inserting tags:
  1575. `C-c C-c'
  1576. Enter new tags for the current headline. The minibuffer will
  1577. prompt for a list of tags and offer completion with respect to all
  1578. other tags used in the current buffer. Several tags, separated by
  1579. colons, may be specified at the prompt. After pressing <RET>, the
  1580. tags will be inserted and aligned to `org-tags-column'. When
  1581. called with a `C-u' prefix, all tags in the current buffer will be
  1582. aligned to that column, just to make things look nice. TAGS are
  1583. automatically realigned after promotion, demotion, and TODO state
  1584. changes (*note TODO basics::).
  1585. 
  1586. File: org, Node: Tag searches, Prev: Setting tags, Up: Tags
  1587. 7.3 Tag searches
  1588. ================
  1589. Once a tags system has been set up, it can be used to collect related
  1590. information into special lists.
  1591. `C-c \'
  1592. Create a sparse tree with all headlines matching a tags search.
  1593. `C-c a m'
  1594. Create a global list of tag matches from all agenda files. *Note
  1595. Matching headline tags::.
  1596. `C-c a M'
  1597. Create a global list of tag matches from all agenda files, but
  1598. check only TODO items and force checking subitems (see variable
  1599. `org-tags-match-list-sublevels').
  1600. A tags search string can use Boolean operators `&' for AND and `|'
  1601. for OR. `&' binds more strongly than `|'. Parenthesis are currently
  1602. not implemented. A tag may also be preceded by `-', to select against
  1603. it, and `+' is syntactic sugar for positive selection. The AND
  1604. operator `&' is optional when `+' or `-' is present. For example,
  1605. `+WORK-BOSS' would select all headlines that are tagged `:WORK:', but
  1606. discard those also tagged `:BOSS:'. The search string `WORK|LAPTOP'
  1607. selects all lines tagged `:WORK:' or `:LAPTOP:'. The string
  1608. `WORK|LAPTOP&NIGHT' requires that the `:LAPTOP:' lines are also tagged
  1609. `NIGHT'.
  1610. 
  1611. File: org, Node: Agenda Views, Next: Exporting, Prev: Tags, Up: Top
  1612. 8 Agenda Views
  1613. **************
  1614. Due to the way Org-mode works, TODO items, time-stamped items, and
  1615. tagged headlines can be scattered throughout a file or even a number of
  1616. files. To get an overview over open action items, or over events that
  1617. are important for a particular date, this information must be collected,
  1618. sorted and displayed in an organized way.
  1619. Org-mode can select items based on various criteria, and display them
  1620. in a separate buffer. Three different views are provided:
  1621. * an _agenda_ that is like a calendar and shows information for
  1622. specific dates
  1623. * a _TODO list_ that covers all unfinished action items, and
  1624. * a _tags view_ that shows information based on the tags associated
  1625. with headlines in the outline tree.
  1626. The extracted information is displayed in a special _agenda buffer_.
  1627. This buffer is read-only, but provides commands to visit the
  1628. corresponding locations in the original Org-mode files, and even to
  1629. edit these files remotely.
  1630. * Menu:
  1631. * Agenda files:: Files being searched for agenda information
  1632. * Agenda dispatcher:: Keyboard access to agenda views
  1633. * Weekly/Daily Agenda:: The calendar page with current tasks
  1634. * Global TODO list:: All unfinished action items
  1635. * Matching headline tags:: Structured information with fine-tuned search
  1636. * Timeline:: Time-sorted view for single file
  1637. * Agenda commands:: Remote editing of org trees
  1638. 
  1639. File: org, Node: Agenda files, Next: Agenda dispatcher, Prev: Agenda Views, Up: Agenda Views
  1640. 8.1 Agenda files
  1641. ================
  1642. The information to be shown is collected from all _agenda files_, the
  1643. files listed in the variable `org-agenda-files'(1). Thus even if you
  1644. only work with a single Org-mode file, this file should be put into
  1645. that list(2). You can customize `org-agenda-files', but the easiest
  1646. way to maintain it is through the following commands
  1647. `C-c ['
  1648. Add current file to the list of agenda files. The file is added to
  1649. the front of the list. If it was already in the list, it is moved
  1650. to the front. With prefix arg, file is added/moved to the end.
  1651. `C-c ]'
  1652. Remove current file from the list of agenda files.
  1653. `C-,'
  1654. Cycle through agenda file list, visiting one file after the other.
  1655. The Org menu contains the current list of files and can be used to
  1656. visit any of them.
  1657. ---------- Footnotes ----------
  1658. (1) If the value of that variable is not a list, but a single file
  1659. name, then the list of agenda files will be maintained in that external
  1660. file.
  1661. (2) When using the dispatcher pressing `1' before selecting a
  1662. command will actually limit the command to the current file, and ignore
  1663. `org-agenda-files' until the next dispatcher command.
  1664. 
  1665. File: org, Node: Agenda dispatcher, Next: Weekly/Daily Agenda, Prev: Agenda files, Up: Agenda Views
  1666. 8.2 The agenda dispatcher
  1667. =========================
  1668. The views are created through a dispatcher that should be bound to a
  1669. global key, for example `C-c a' (*note Installation and activation::).
  1670. In the following we will assume that `C-c a' is indeed how the
  1671. dispatcher is accessed and list keyboard access to commands
  1672. accordingly. After pressing `C-c a', an additional letter is required
  1673. to execute a command. The dispatcher offers the following default
  1674. commands:
  1675. `a'
  1676. Create the calendar-like agenda (*note Weekly/Daily Agenda::).
  1677. `t / T'
  1678. Create a list of all TODO items (*note Global TODO list::).
  1679. `m / M'
  1680. Create a list of headlines matching a TAGS expression (*note
  1681. Matching headline tags::).
  1682. You can also define custom commands that will be accessible through
  1683. the dispatcher, just like the default commands. Custom commands are
  1684. global searches for tags and specific TODO keywords, or a variety of
  1685. sparse tree creating commands (*note Sparse trees::). As sparse trees
  1686. are only defined for a single org-mode file, these latter commands act
  1687. on the current buffer instead of the list of agenda files.
  1688. Custom commands are configured in the variable
  1689. `org-agenda-custom-commands'. You can customize this variable, for
  1690. example by pressing `C-c a C'. You can also directly set it with Emacs
  1691. Lisp in `.emacs'. For example:
  1692. (setq org-agenda-custom-commands
  1693. '(("w" todo "WAITING")
  1694. ("u" tags "+BOSS-URGENT")
  1695. ("U" tags-tree "+BOSS-URGENT")
  1696. ("f" occur-tree "\\<FIXME\\>")))
  1697. will define `C-c a w' as a global search for TODO entries with
  1698. `WAITING' as the TODO keyword, `C-c a u' as a global tags search for
  1699. headlines marked `:BOSS:' but not `:URGENT:', `C-c a U' to do the same
  1700. search but only in the current buffer and display the result as a
  1701. sparse tree, and `C-c a f' to create a sparse tree with all entries
  1702. containing the word `FIXME'. For more information, look at the
  1703. documentation string of the variable `org-agenda-custom-commands'.
  1704. 
  1705. File: org, Node: Weekly/Daily Agenda, Next: Global TODO list, Prev: Agenda dispatcher, Up: Agenda Views
  1706. 8.3 The weekly/daily agenda
  1707. ===========================
  1708. The purpose of the weekly/daily _agenda_ is to act like a page of a
  1709. paper agenda, showing all the tasks for the current week or day.
  1710. `C-c a a'
  1711. Compile an agenda for the current week from a list of org files.
  1712. The agenda shows the entries for each day. With a `C-u' prefix (or
  1713. when the variable `org-agenda-include-all-todo' is `t'), all
  1714. unfinished TODO items (including those without a date) are also
  1715. listed at the beginning of the buffer, before the first date.
  1716. Remote editing from the agenda buffer means, for example, that you
  1717. can change the dates of deadlines and appointments from the agenda
  1718. buffer. The commands available in the Agenda buffer are listed in
  1719. *Note Agenda commands::.
  1720. * Menu:
  1721. * Categories:: Not all tasks are equal
  1722. * Time-of-day specifications:: How the agenda knows the time
  1723. * Calendar/Diary integration:: Integrating Anniversaries and more
  1724. * Sorting of agenda items:: The order of things
  1725. 
  1726. File: org, Node: Categories, Next: Time-of-day specifications, Prev: Weekly/Daily Agenda, Up: Weekly/Daily Agenda
  1727. 8.3.1 Categories
  1728. ----------------
  1729. In the agenda buffer, each entry is preceded by a _category_, which is
  1730. derived from the file name. The category can also be set with a
  1731. special line anywhere in the buffer, looking like this:
  1732. #+CATEGORY: Thesis
  1733. If there are several such lines in a file, each specifies the
  1734. category for the text below it (but the first category also applies to
  1735. any text before the first CATEGORY line). The display in the agenda
  1736. buffer looks best if the category is not longer than 10 characters.
  1737. 
  1738. File: org, Node: Time-of-day specifications, Next: Calendar/Diary integration, Prev: Categories, Up: Weekly/Daily Agenda
  1739. 8.3.2 Time-of-Day Specifications
  1740. --------------------------------
  1741. Org-mode checks each agenda item for a time-of-day specification. The
  1742. time can be part of the time stamp that triggered inclusion into the
  1743. agenda, for example as in `<2005-05-10 Tue 19:00>'. Time ranges can be
  1744. specified with two time stamps, like
  1745. `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
  1746. In the headline of the entry itself, a time(range) may also appear as
  1747. plain text (like `12:45' or a `8:30-1pm'. If the agenda integrates the
  1748. Emacs diary (*note Calendar/Diary integration::), time specifications
  1749. in diary entries are recognized as well.
  1750. For agenda display, Org-mode extracts the time and displays it in a
  1751. standard 24 hour format as part of the prefix. The example times in
  1752. the previous paragraphs would end up in the agenda like this:
  1753. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  1754. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  1755. 19:00...... The Vogon reads his poem
  1756. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  1757. If the agenda is in single-day mode, or for the display of today, the
  1758. timed entries are embedded in a time grid, like
  1759. 8:00...... ------------------
  1760. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  1761. 10:00...... ------------------
  1762. 12:00...... ------------------
  1763. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  1764. 14:00...... ------------------
  1765. 16:00...... ------------------
  1766. 18:00...... ------------------
  1767. 19:00...... The Vogon reads his poem
  1768. 20:00...... ------------------
  1769. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  1770. The time grid can be turned on and off with the variable
  1771. `org-agenda-use-time-grid', and can be configured with
  1772. `org-agenda-time-grid'.
  1773. 
  1774. File: org, Node: Calendar/Diary integration, Next: Sorting of agenda items, Prev: Time-of-day specifications, Up: Weekly/Daily Agenda
  1775. 8.3.3 Calendar/Diary integration
  1776. --------------------------------
  1777. Emacs contains the calendar and diary by Edward M. Reingold. The
  1778. calendar displays a three-month calendar with holidays from different
  1779. countries and cultures. The diary allows you to keep track of
  1780. anniversaries, lunar phases, sunrise/set, recurrent appointments
  1781. (weekly, monthly) and more. In this way, it is quite complementary to
  1782. Org-mode. It can be very useful to combine output from Org-mode with
  1783. the diary.
  1784. In order to include entries from the Emacs diary into Org-mode's
  1785. agenda, you only need to customize the variable
  1786. (setq org-agenda-include-diary t)
  1787. After that, everything will happen automatically. All diary entries
  1788. including holidays, anniversaries etc will be included in the agenda
  1789. buffer created by Org-mode. <SPC>, <TAB>, and <RET> can be used from
  1790. the agenda buffer to jump to the diary file in order to edit existing
  1791. diary entries. The `i' command to insert new entries for the current
  1792. date works in the agenda buffer, as well as the commands `S', `M', and
  1793. `C' to display Sunrise/Sunset times, show lunar phases and to convert
  1794. to other calendars, respectively. `c' can be used to switch back and
  1795. forth between calendar and agenda.
  1796. 
  1797. File: org, Node: Sorting of agenda items, Prev: Calendar/Diary integration, Up: Weekly/Daily Agenda
  1798. 8.3.4 Sorting of agenda items
  1799. -----------------------------
  1800. The entries for each day are sorted. The default order is to first
  1801. collect all items containing an explicit time-of-day specification.
  1802. These entries will be shown at the beginning of the list, as a
  1803. _schedule_ for the day. After that, items remain grouped in
  1804. categories, in the sequence given by `org-agenda-files'. Within each
  1805. category, items are sorted by priority (*note Priorities::).
  1806. The priority is a numerical quantity composed of the base priority
  1807. (2000 for priority `A', 1000 for `B', and 0 for `C'), plus additional
  1808. increments for overdue scheduled or deadline items.
  1809. Sorting can be customized using the variable
  1810. `org-agenda-sorting-strategy'.
  1811. 
  1812. File: org, Node: Global TODO list, Next: Matching headline tags, Prev: Weekly/Daily Agenda, Up: Agenda Views
  1813. 8.4 The global TODO list
  1814. ========================
  1815. The global TODO list contains all unfinished TODO items, formatted and
  1816. collected into a single place.
  1817. `C-c a t'
  1818. Show the global TODO list. This collects the TODO items from all
  1819. agenda files (*note Agenda Views::) into a single buffer. The
  1820. buffer is in `agenda-mode', so there are commands to examine and
  1821. manipulate the TODO entries directly from that buffer (*note
  1822. Agenda commands::). *Note Global TODO list::, for more
  1823. information.
  1824. `C-c a T'
  1825. Like the above, but allows selection of a specific TODO keyword.
  1826. You can also do this by specifying a prefix argument to `C-c a t'.
  1827. With a `C-u' prefix you are prompted for a keyword. With a
  1828. numeric prefix, the Nth keyword in `org-todo-keywords' is selected. The
  1829. `r' key in the agenda buffer regenerates it, and you can give a
  1830. prefix argument to this command to change the selected TODO
  1831. keyword, for example `3 r'. If you often need a search for a
  1832. specific keyword, define a custom command for it (*note Agenda
  1833. dispatcher::).
  1834. Remote editing of TODO items means that you can change the state of a
  1835. TODO entry with a single key press. The commands available in the TODO
  1836. list are described in *Note Agenda commands::.
  1837. 
  1838. File: org, Node: Matching headline tags, Next: Timeline, Prev: Global TODO list, Up: Agenda Views
  1839. 8.5 Matching headline tags
  1840. ==========================
  1841. If headlines in the agenda files are marked with _tags_ (*note Tags::),
  1842. you can select headlines based on the tags that apply to them and
  1843. collect them into an agenda buffer.
  1844. `C-c a m'
  1845. Produce a list of all headlines that match a given set of tags.
  1846. The command prompts for a selection criterion, which is a boolean
  1847. logic expression with tags, like `+WORK+URGENT-WITHBOSS' or
  1848. `WORK|HOME' (*note Tags::). If you often need a specific search,
  1849. define a custom command for it (*note Agenda dispatcher::).
  1850. `C-c a M'
  1851. Like `C-c a m', but only select headlines that are also TODO items
  1852. and force checking subitems (see variable
  1853. `org-tags-match-list-sublevels'.
  1854. The commands available in the tags list are described in *Note
  1855. Agenda commands::.
  1856. 
  1857. File: org, Node: Timeline, Next: Agenda commands, Prev: Matching headline tags, Up: Agenda Views
  1858. 8.6 Timeline for a single file
  1859. ==============================
  1860. The timeline is not really an agenda view, because it only summarizes
  1861. items from a single Org-mode file. But it also uses the agenda buffer
  1862. and provides similar commands, so we discuss it here. The timeline
  1863. shows all time-stamped items in a single Org-mode file (or the selected
  1864. part of it), in a _time-sorted view_. The main purpose of this command
  1865. is to give an overview over events in a project.
  1866. `C-c C-r'
  1867. Show a time-sorted view of the org file, with all time-stamped
  1868. items. When called with a `C-u' prefix, all unfinished TODO
  1869. entries (scheduled or not) are also listed under the current date.
  1870. The commands available in the timeline buffer are listed in *Note
  1871. Agenda commands::.
  1872. 
  1873. File: org, Node: Agenda commands, Prev: Timeline, Up: Agenda Views
  1874. 8.7 Commands in the agenda buffer
  1875. =================================
  1876. Entries in the agenda buffer are linked back to the org file or diary
  1877. file where they originate. You are not allowed to edit the agenda
  1878. buffer itself, but commands are provided to show and jump to the
  1879. original entry location, and to edit the org-files "remotely" from the
  1880. agenda buffer. In this way, all information is stored only once,
  1881. removing the risk that your agenda and note files may diverge.
  1882. Some commands can be executed with mouse clicks on agenda lines. For
  1883. the other commands, the cursor needs to be in the desired line.
  1884. Motion
  1885. ......
  1886. `n'
  1887. Next line (same as <up>).
  1888. `p'
  1889. Previous line (same as <down>).
  1890. View/GoTo org file
  1891. ..................
  1892. `mouse-3'
  1893. `<SPC>'
  1894. Display the original location of the item in another window.
  1895. `L'
  1896. Display original location and recenter that window.
  1897. `mouse-2'
  1898. `mouse-1'
  1899. `<TAB>'
  1900. Go to the original location of the item in another window. Under
  1901. Emacs 22, `mouse-1' will also works for this.
  1902. `<RET>'
  1903. Go to the original location of the item and delete other windows.
  1904. `f'
  1905. Toggle Follow mode. In Follow mode, as you move the cursor through
  1906. the agenda buffer, the other window always shows the corresponding
  1907. location in the org file.
  1908. `l'
  1909. Toggle Logbook mode. In Logbook mode, entries that where marked
  1910. DONE while logging was on (variable `org-log-done') are shown in
  1911. the agenda.
  1912. Change display
  1913. ..............
  1914. `o'
  1915. Delete other windows.
  1916. `w'
  1917. Switch to weekly view (7 days displayed together).
  1918. `d'
  1919. Switch to daily view (just one day displayed).
  1920. `D'
  1921. Toggle the inclusion of diary entries. See *Note Calendar/Diary
  1922. integration::.
  1923. `g'
  1924. Toggle the time grid on and off. See also the variables
  1925. `org-agenda-use-time-grid' and `org-agenda-time-grid'.
  1926. `r'
  1927. Recreate the agenda buffer, for example to reflect the changes
  1928. after modification of the time stamps of items with S-<left> and
  1929. S-<right>. When the buffer is the global todo list, a prefix
  1930. argument is interpreted to create a selective list for a specific
  1931. TODO keyword.
  1932. `<right>'
  1933. Display the following `org-agenda-ndays' days. For example, if
  1934. the display covers a week, switch to the following week. With
  1935. prefix arg, go forward that many times `org-agenda-ndays' days.
  1936. `<left>'
  1937. Display the previous dates.
  1938. `.'
  1939. Goto today.
  1940. Remote editing
  1941. ..............
  1942. `0-9'
  1943. Digit argument.
  1944. `t'
  1945. Change the TODO state of the item, both in the agenda and in the
  1946. original org file.
  1947. `T'
  1948. Show all tags associated with the current item. Because of
  1949. inheritance, this may be more than the tags listed in the line
  1950. itself.
  1951. `:'
  1952. Set tags for the current headline.
  1953. `,'
  1954. Set the priority for the current item. Org-mode prompts for the
  1955. priority character. If you reply with <SPC>, the priority cookie
  1956. is removed from the entry.
  1957. `p'
  1958. Display weighted priority of current item.
  1959. `+'
  1960. `S-<up>'
  1961. Increase the priority of the current item. The priority is
  1962. changed in the original buffer, but the agenda is not resorted.
  1963. Use the `r' key for this.
  1964. `-'
  1965. `S-<down>'
  1966. Decrease the priority of the current item.
  1967. `S-<right>'
  1968. Change the time stamp associated with the current line by one day
  1969. into the future. With prefix argument, change it by that many
  1970. days. For example, `3 6 5 S-<right>' will change it by a year.
  1971. The stamp is changed in the original org file, but the change is
  1972. not directly reflected in the agenda buffer. Use the `r' key to
  1973. update the buffer.
  1974. `S-<left>'
  1975. Change the time stamp associated with the current line by one day
  1976. into the past.
  1977. `>'
  1978. Change the time stamp associated with the current line to today.
  1979. The key `>' has been chosen, because it is the same as `S-.' on my
  1980. keyboard.
  1981. `i'
  1982. Insert a new entry into the diary. Prompts for the type of entry
  1983. (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
  1984. new entry in the diary, just like `i d' etc. would do in the
  1985. calendar. The date is taken from the cursor position.
  1986. Calendar commands
  1987. .................
  1988. `c'
  1989. Open the Emacs calendar and move to the date at the agenda cursor.
  1990. `c'
  1991. When in the calendar, compute and show the Org-mode agenda for the
  1992. date at the cursor.
  1993. `M'
  1994. Show the phases of the moon for the three months around current
  1995. date.
  1996. `S'
  1997. Show sunrise and sunset times. The geographical location must be
  1998. set with calendar variables, see documentation of the Emacs
  1999. calendar.
  2000. `C'
  2001. Convert the date at cursor into many other cultural and historic
  2002. calendars.
  2003. `H'
  2004. Show holidays for three month around the cursor date.
  2005. `C-c C-x C-c'
  2006. Export a single iCalendar file containing entries from all agenda
  2007. files.
  2008. Quit and Exit
  2009. .............
  2010. `q'
  2011. Quit agenda, remove the agenda buffer.
  2012. `x'
  2013. Exit agenda, remove the agenda buffer and all buffers loaded by
  2014. Emacs for the compilation of the agenda. Buffers created by the
  2015. user to visit org files will not be removed.
  2016. 
  2017. File: org, Node: Exporting, Next: Miscellaneous, Prev: Agenda Views, Up: Top
  2018. 9 Exporting
  2019. ***********
  2020. For printing and sharing of notes, Org-mode documents can be exported
  2021. as ASCII or HTML files. To incorporate entries with associated times
  2022. like deadlines or appointments into a desktop calendar program like
  2023. iCal, Org-mode can also produce extracts in the iCalendar format.
  2024. * Menu:
  2025. * ASCII export:: Export as a structured ASCII file
  2026. * HTML export:: Export as an HTML file
  2027. * iCalendar export:: Create calendar entries.
  2028. 
  2029. File: org, Node: ASCII export, Next: HTML export, Prev: Exporting, Up: Exporting
  2030. 9.1 ASCII export
  2031. ================
  2032. `C-c C-x a'
  2033. Export as ASCII file. If there is an active region, only the
  2034. region will be exported. For an org file `myfile.org', the ASCII
  2035. file will be `myfile.txt'. The file will be overwritten without
  2036. warning.
  2037. In the exported version, the first 3 outline levels will become
  2038. headlines, defining a general document structure. Additional levels
  2039. will be exported as itemized lists. If you want that transition to
  2040. occur at a different level, specify it with a prefix argument. For
  2041. example,
  2042. C-1 C-c C-x a org-export-as-ascii
  2043. creates only top level headlines and does the rest as items. Lines
  2044. starting with `#' and subtrees starting with the word `COMMENT' will
  2045. not be exported.
  2046. 
  2047. File: org, Node: HTML export, Next: iCalendar export, Prev: ASCII export, Up: Exporting
  2048. 9.2 HTML export
  2049. ===============
  2050. Org-mode contains an HTML exporter with extensive HTML formatting, in
  2051. ways similar to John Grubers _markdown_ language, but with additional
  2052. support for tables.
  2053. `C-c C-x h'
  2054. Export as HTML file `myfile.html'.
  2055. `C-c C-x b'
  2056. Export as HTML file and open it with a browser.
  2057. `C-c C-x t'
  2058. Insert template with export options, see below.
  2059. `C-c :'
  2060. Toggle fixed-width for entry (QUOTE) or region, see below.
  2061. In the exported version, the first 3 outline levels will become
  2062. headlines, defining a general document structure. Additional levels
  2063. will be exported as itemized lists. If you want that transition to
  2064. occur at a different level, specify it with a prefix argument. For
  2065. example,
  2066. C-2 C-c C-x b
  2067. creates two levels of headings and does the rest as items.
  2068. * Menu:
  2069. * HTML formatting:: Interpretation of the buffer content
  2070. * Export options:: How to influence exports
  2071. * Comment lines:: Lines which will not be exported
  2072. 
  2073. File: org, Node: HTML formatting, Next: Export options, Prev: HTML export, Up: HTML export
  2074. 9.2.1 HTML formatting
  2075. ---------------------
  2076. Not all text is transferred literally to the exported HTML file. The
  2077. exporter implements the following interpretation:
  2078. * Hand-formatted lists with `-', `*' or `+' as bullet, or with `1.'
  2079. or `2)' as enumerator will be recognized and transformed into HTML
  2080. lists. See *Note Plain Lists::.
  2081. * You can make words *bold*, /italic/, and _underlined_
  2082. * Simple TeX-like math constructs are interpreted:
  2083. - `10^22' and `J_n' are super- and subscripts. You can quote
  2084. `^' and `_' with a backslash: `\_' and `\^'
  2085. - `\alpha' indicates a Greek letter, `\to' an arrow. You can
  2086. use completion for these macros, just type `\' and maybe a few
  2087. letters, and press `M-<TAB>' to see possible completions.
  2088. * Tables are transformed into HTML tables. Data fields before the
  2089. first horizontal separator line will be formatted as table header
  2090. fields.
  2091. * If a headline starts with the word `QUOTE', the text below the
  2092. headline will be typeset as fixed-width, to allow quoting of
  2093. computer codes etc. Lines starting with `:' are also typeset in
  2094. fixed-width font.
  2095. * If you want to include HTML tags which should be interpreted as
  2096. such, mark them with a `@' like in `@<b>bold text@</b>'. Plain
  2097. `<' and `>' are always transformed to `&lt;' and `&gt;' in HTML
  2098. export.
  2099. If these conversions conflict with your habits of typing ASCII text,
  2100. they can all be turned off with corresponding variables.
  2101. 
  2102. File: org, Node: Export options, Next: Comment lines, Prev: HTML formatting, Up: HTML export
  2103. 9.2.2 Export options
  2104. --------------------
  2105. The exporter recognizes special lines in the buffer which provide
  2106. additional information. These lines may be put anywhere in the file.
  2107. The whole set of lines can be inserted into the buffer with `C-c C-x
  2108. t'. For individual lines, a good way to make sure the keyword is
  2109. correct is to type `#+' and then use `M-<TAB>' completion (*note
  2110. Completion::).
  2111. #+TITLE: the title to be shown (default is the buffer name)
  2112. #+AUTHOR: the author (default taken from `user-full-name')
  2113. #+EMAIL: his/her email address (default from `user-mail-address')
  2114. #+LANGUAGE: language for HTML, e.g. `en' (`org-export-default-language')
  2115. #+TEXT: Some descriptive text to be inserted at the beginning.
  2116. #+TEXT: Several lines may be given.
  2117. #+OPTIONS: H:2 num:t toc:t \n:nil t ::t |:t ^:t *:nil TeX:t
  2118. The OPTIONS line is a compact form to specify export settings. Here
  2119. you can:
  2120. H: set the number of headline levels for export
  2121. num: turn on/off section-numbers
  2122. toc: turn on/off table of contents
  2123. \n: turn on/off linebreak-preservation
  2124. @: turn on/off quoted html tags
  2125. :: turn on/off fixed-width sections
  2126. |: turn on/off tables
  2127. ^: turn on/off TeX-like syntax for sub- and superscripts.
  2128. *: turn on/off emphasized text (bold, italic, underlined)
  2129. TeX: turn on/off TeX macros
  2130. You can also give style information for the exported file. The
  2131. default specification can be configured through the option
  2132. `org-export-html-style'. If you want to use a file-local style, you
  2133. may use file variables, best wrapped into a COMMENT section at the end
  2134. of the outline tree. For example:
  2135. * COMMENT HTML style specifications
  2136. # Local Variables:
  2137. # org-export-html-style: " <style type=\"text/css\">
  2138. p {font-weight: normal; color: gray; }
  2139. h1 {color: black; }
  2140. </style>"
  2141. # End: ***
  2142. Remember to execute `M-x normal-mode' after changing this to make
  2143. the new style visible to Emacs.
  2144. 
  2145. File: org, Node: Comment lines, Prev: Export options, Up: HTML export
  2146. 9.2.3 Comment lines
  2147. -------------------
  2148. Lines starting with `#' in column zero are treated as comments and will
  2149. never be exported. Also entire subtrees starting with the word
  2150. `COMMENT' will never be exported. Finally, any text before the first
  2151. headline will not be exported either. This applies also for ASCII
  2152. export.
  2153. `C-c ;'
  2154. Toggle the COMMENT keyword at the beginning of an entry.
  2155. 
  2156. File: org, Node: iCalendar export, Prev: HTML export, Up: Exporting
  2157. 9.3 iCalendar export
  2158. ====================
  2159. Some people like to use Org-mode for keeping track of projects, but
  2160. still prefer a standard calendar application for anniversaries and
  2161. appointments. In this case it can be useful to have deadlines and
  2162. other time-stamped items in Org-mode files show up in the calendar
  2163. application. Org-mode can export calendar information in the standard
  2164. iCalendar format.
  2165. `C-c C-x i'
  2166. Create iCalendar entries for the current file and store them in
  2167. the same directory, using a file extension `.ics'.
  2168. `C-c C-x C-i'
  2169. Like `C-c C-x i', but do this for all files in `org-agenda-files'.
  2170. For each of these files, a separate iCalendar file will be
  2171. written.
  2172. `C-c C-x c'
  2173. Create a single large iCalendar file from all files in
  2174. `org-agenda-files' and write it to the file given by
  2175. `org-combined-agenda-icalendar-file'.
  2176. How this calendar is best read and updated, depends on the
  2177. application you are using. For example, when using iCal under Apple
  2178. MacOS X, you could create a new calendar `OrgMode' (the default name
  2179. for the calendar created by `C-c C-x c', see the variables
  2180. `org-icalendar-combined-name' and
  2181. `org-combined-agenda-icalendar-file'). Then set Org-mode to overwrite
  2182. the corresponding file `~/Library/Calendars/OrgMode.ics'. You may even
  2183. use AppleScript to make iCal re-read the calendar files each time a new
  2184. version of `OrgMode.ics' is produced. Here is the setup needed for
  2185. this:
  2186. (setq org-combined-agenda-icalendar-file
  2187. "~/Library/Calendars/OrgMode.ics")
  2188. (add-hook 'org-after-save-iCalendar-file-hook
  2189. (lambda ()
  2190. (shell-command
  2191. "osascript -e 'tell application \"iCal\" to reload calendars'")))
  2192. 
  2193. File: org, Node: Miscellaneous, Next: Index, Prev: Exporting, Up: Top
  2194. 10 Miscellaneous
  2195. ****************
  2196. * Menu:
  2197. * Completion:: M-TAB knows what you need
  2198. * Customization:: Adapting Org-mode to your taste
  2199. * Clean view:: Getting rid of leading stars in the outline
  2200. * TTY keys:: Using Org-mode on a tty
  2201. * FAQ:: Frequently asked questions
  2202. * Interaction:: Other Emacs packages
  2203. * Bugs:: Things which do not work perfectly
  2204. * Acknowledgments:: These people provided feedback and more
  2205. 
  2206. File: org, Node: Completion, Next: Customization, Prev: Miscellaneous, Up: Miscellaneous
  2207. 10.1 Completion
  2208. ===============
  2209. Org-mode supports in-buffer completion. This type of completion does
  2210. not make use of the minibuffer. You simply type a few letters into the
  2211. buffer and use the key to complete text right there.
  2212. `M-<TAB>'
  2213. Complete word at point
  2214. * At the beginning of a headline, complete TODO keywords.
  2215. * After `\', complete TeX symbols supported by the exporter.
  2216. * After `*', complete CamelCase versions of all headlines in the
  2217. buffer.
  2218. * After `:', complete tags used elsewhere in the buffer.
  2219. * After `#+', complete the special keywords like `TYP_TODO' or
  2220. `OPTIONS' which set file-specific options for Org-mode. When
  2221. the option keyword is already complete, pressing `M-<TAB>'
  2222. again will insert example settings for this keyword.
  2223. * Elsewhere, complete dictionary words using ispell.
  2224. 
  2225. File: org, Node: Customization, Next: Clean view, Prev: Completion, Up: Miscellaneous
  2226. 10.2 Customization
  2227. ==================
  2228. There are more than 100 variables that can be used to customize
  2229. Org-mode. For the sake of compactness of the manual, we are not
  2230. describing the variables here. A structured overview of customization
  2231. variables is available with `M-x org-customize'. Or select `Browse Org
  2232. Group' from the `Org->Customization' menu.
  2233. 
  2234. File: org, Node: Clean view, Next: TTY keys, Prev: Customization, Up: Miscellaneous
  2235. 10.3 A cleaner outline view
  2236. ===========================
  2237. Some people find it noisy and distracting that the Org-mode headlines
  2238. are starting with a potentially large number of stars. For example the
  2239. tree from *Note Headlines:::
  2240. * Top level headline
  2241. ** Second level
  2242. *** 3rd level
  2243. some text
  2244. *** 3rd level
  2245. more text
  2246. * Another top level headline
  2247. Unfortunately this is deeply ingrained into the code of Org-mode and
  2248. cannot be easily changed. You can, however, modify the display in such
  2249. a way that all leading stars become invisible and the outline more easy
  2250. to read. To do this, customize the variable `org-hide-leading-stars'
  2251. like this:
  2252. (setq org-hide-leading-stars t)
  2253. or change this on a per-file basis with one of the lines (anywhere in
  2254. the buffer)
  2255. #+STARTUP: showstars
  2256. #+STARTUP: hidestars
  2257. Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
  2258. modifications.
  2259. With stars hidden, the tree becomes:
  2260. * Top level headline
  2261. * Second level
  2262. * 3rd level
  2263. some text
  2264. * 3rd level
  2265. more text
  2266. * Another top level headline
  2267. Note that the leading stars are not truly replaced by whitespace, they
  2268. are only fontified with the face `org-hide' that uses the background
  2269. color as font color. If are are not using either white or black
  2270. background, you may have to customize this face to get the wanted
  2271. effect. Another possibility is to set this font such that the extra
  2272. stars are almost invisible, for example using the color `grey90' on a
  2273. white background.
  2274. Things become cleaner still if you skip all the even levels and use
  2275. only odd levels 1, 3, 5..., effectively adding two stars to go from one
  2276. outline level to the next:
  2277. * Top level headline
  2278. * Second level
  2279. * 3rd level
  2280. some text
  2281. * 3rd level
  2282. more text
  2283. * Another top level headline
  2284. In order to make the structure editing and export commands handle this
  2285. convention correctly, use
  2286. (setq org-odd-levels-only t)
  2287. or set this on a per-file basis with one of the following lines (don't
  2288. forget to press `C-c C-c' with the cursor in the startup line to
  2289. activate changes immediately).
  2290. #+STARTUP: odd
  2291. #+STARTUP: oddeven
  2292. You can convert an Org-mode file from single-star-per-level to the
  2293. double-star-per-level convention with `M-x org-convert-to-odd-levels
  2294. RET' in that file. There is no command for the back conversion because
  2295. such a command might merge levels and in this way destroy the structure
  2296. of the tree.
  2297. 
  2298. File: org, Node: TTY keys, Next: FAQ, Prev: Clean view, Up: Miscellaneous
  2299. 10.4 Using org-mode on a tty
  2300. ============================
  2301. Org-mode uses a number of keys that are not accessible on a tty. This
  2302. applies to most special keys like cursor keys, <TAB> and <RET>, when
  2303. these are combined with modifier keys like <Meta> and/or <Shift>.
  2304. Org-mode uses these bindings because it needs to provide keys for a
  2305. large number of commands, and because these keys appeared particularly
  2306. easy to remember. In order to still be able to access the core
  2307. functionality of Org-mode on a tty, alternative bindings are provided.
  2308. Here is a complete list of these bindings, which are obviously more
  2309. cumbersome to use. Note that sometimes a work-around can be better.
  2310. For example changing a time stamp is really only fun with `S-<cursor>'
  2311. keys. On a tty you would rather use `C-c .' to re-insert the
  2312. timestamp.
  2313. Default Alternative 1 Alternative 2
  2314. `S-<TAB>' `C-u <TAB>'
  2315. `M-<left>' `C-c C-x l' `<Esc> <left>'
  2316. `M-S-<left>'`C-c C-x L'
  2317. `M-<right>' `C-c C-x r' `<Esc>
  2318. <right>'
  2319. `M-S-<right>'`C-c C-x R'
  2320. `M-<up>' `C-c C-x u' `<Esc> <up>'
  2321. `M-S-<up>' `C-c C-x U'
  2322. `M-<down>' `C-c C-x d' `<Esc> <down>'
  2323. `M-S-<down>'`C-c C-x D'
  2324. `S-<RET>' `C-c C-x c'
  2325. `M-<RET>' `C-c C-x m' `<Esc> <RET>'
  2326. `M-S-<RET>' `C-c C-x M'
  2327. `S-<left>' `C-c C-x
  2328. <left>'
  2329. `S-<right>' `C-c C-x
  2330. <right>'
  2331. `S-<up>' `C-c C-x
  2332. <up>'
  2333. `S-<down>' `C-c C-x
  2334. <down>'
  2335. 
  2336. File: org, Node: FAQ, Next: Interaction, Prev: TTY keys, Up: Miscellaneous
  2337. 10.5 Frequently asked questions
  2338. ===============================
  2339. 1. Org-mode seems to be a useful default mode for the various
  2340. `README' files I have scattered through my directories. How do I
  2341. turn it on for all `README' files?
  2342. (add-to-list 'auto-mode-alist '("README$" . org-mode))
  2343. 2. Some of my links stopped working after I upgraded to a version
  2344. 4.20 or later. Why is this, and how can I fix it?
  2345. These must be links in plain text, containing white space, such as
  2346. `bbdb:Richard Stallman'. You need to protect these links by
  2347. putting double brackets around them, like `[[bbdb:Richard
  2348. Stallman]]'.
  2349. 3. I see that Org-mode now creates links using the double bracket
  2350. convention that hides the link part and the brackets, only showing
  2351. the description part. How can I convert my old links to this new
  2352. format?
  2353. Execute once in each Org-mode file: `M-x org-upgrade-old-links'.
  2354. The replaces angular brackets with the link format.
  2355. 4. I don't care if you find the new bracket links great, I am
  2356. attached to the old style using angular brackets and no hiding of
  2357. the link text. Please give them back to me, don't tell me it is
  2358. not possible!
  2359. Would I let you down like that? If you must (even if I don't
  2360. understand why), you can do this
  2361. (setq org-link-style 'plain
  2362. org-link-format "<%s>")
  2363. 5. When I am executing shell links I always get a confirmation prompt
  2364. and need to type `yes <RET>', thats 4 key presses! Can I get rid
  2365. of this?
  2366. The confirmation is there to protect you from unwantingly execute
  2367. potentially dangerous commands. For example, imagine a link
  2368. `[[shell:rm -rf ~/*][Google Search]]'. In an Org-mode buffer, this
  2369. command would look like `Google Search', but really it would remove
  2370. your home directory. If you wish, you can make it easier to
  2371. respond to the query by setting `org-confirm-shell-links' to
  2372. `y-or-n-p'. Then a single `y' keypress will be enough to confirm
  2373. shell links. It is also possible to turn off this check entirely,
  2374. but I do not recommend to do this. Be warned.
  2375. 6. All these stars are driving me mad, I just find the Emacs outlines
  2376. unreadable. Can't you just put white space and a single star as a
  2377. starter for headlines?
  2378. See *Note Clean view::.
  2379. 7. I would like to have two windows on the same Org-mode file, but
  2380. with different outline visibility. Is that possible?
  2381. In GNU Emacs, you may use _indirect buffers_ which do exactly this.
  2382. See the documentation on the command `make-indirect-buffer'. In
  2383. XEmacs, this is currently not possible because of the different
  2384. outline implementation.
  2385. 8. When I export my TODO list, every TODO item becomes a separate
  2386. section. How do I enforce these items to be exported as an
  2387. itemized list?
  2388. If you plan to use ASCII or HTML export, make sure things you want
  2389. to be exported as item lists are level 4 at least, even if that
  2390. does mean there is a level jump. For example:
  2391. * Todays top priorities
  2392. **** TODO write a letter to xyz
  2393. **** TODO Finish the paper
  2394. **** Pick up kids at the school
  2395. Alternatively, if you need a specific value for the heading/item
  2396. transition in a particular file, use the `+OPTIONS' line to
  2397. configure the `H' switch.
  2398. +OPTIONS: H:2; ...
  2399. 9. I would like to export only a subtree of my file to HTML. How?
  2400. If you want to export a subtree, mark the subtree as region and
  2401. then export. Marking can be done with `C-c @ C-x C-x', for
  2402. example.
  2403. 10. Org-mode takes over the S-cursor keys. I also want to use
  2404. CUA-mode, is there a way to fix this conflict?
  2405. Yes, see *Note Interaction::.
  2406. 11. One of my table columns has started to fill up with `#ERROR'.
  2407. What is going on?
  2408. Org-mode tried to compute the column from other fields using a
  2409. formula stored in the `#+TBLFMT:' line just below the table, and
  2410. the evaluation of the formula fails. Fix the fields used in the
  2411. formula, or fix the formula, or remove it!
  2412. 12. When I am in the last column of a table and just above a
  2413. horizontal line in the table, pressing TAB creates a new table line
  2414. before the horizontal line. How can I quickly move to the line
  2415. below the horizontal line instead?
  2416. Press <down> (to get on the separator line) and then <TAB>. Or
  2417. configure the variable `org-table-tab-jumps-over-hlines'.
  2418. 13. How can I change the indentation of an entire table without fixing
  2419. every line by hand?
  2420. The indentation of a table is set by the first line. So just fix
  2421. the indentation of the first line and realign with <TAB>.
  2422. 14. Is it possible to include entries from org-mode files into my
  2423. emacs diary?
  2424. Since the org-mode agenda is much more powerful and can contain the
  2425. diary (*note Calendar/Diary integration::), you should think twice
  2426. before deciding to do this. Integrating Org-mode information into
  2427. the diary is, however, possible. The following steps are
  2428. necessary: Autoload the function `org-diary' as shown above under
  2429. *Note Installation and activation::. You also need to use _fancy
  2430. diary display_ by setting in `.emacs':
  2431. (add-hook 'diary-display-hook 'fancy-diary-display)
  2432. Then include the following line into your `~/diary' file, in order
  2433. to get the entries from all files listed in the variable
  2434. `org-agenda-files':
  2435. &%%(org-diary)
  2436. You may also select specific files with
  2437. &%%(org-diary) ~/path/to/some/org-file.org
  2438. &%%(org-diary) ~/path/to/another/org-file.org
  2439. If you now launch the calendar and press `d' to display a diary,
  2440. the headlines of entries containing a timestamp, date range,
  2441. schedule, or deadline referring to the selected date will be
  2442. listed. Just like in Org-mode's agenda view, the diary for
  2443. _today_ contains additional entries for overdue deadlines and
  2444. scheduled items. See also the documentation of the `org-diary'
  2445. function.
  2446. 
  2447. File: org, Node: Interaction, Next: Bugs, Prev: FAQ, Up: Miscellaneous
  2448. 10.6 Interaction with other packages
  2449. ====================================
  2450. Org-mode can cooperate with the following packages:
  2451. `org-mouse.el' by Piotr Zielinski
  2452. This package implements extended mouse functionality for Org-mode.
  2453. It allows you to cycle visibility and to edit the document
  2454. structure with the mouse. It also provides a context-sensitive
  2455. menu that changes depending on the context of a mouse-click. Use
  2456. a search engine to find this package on the web.
  2457. `table.el' by Takaaki Ota
  2458. Org mode cooperates with table.el, see *Note table.el::.
  2459. `table.el' is part of Emacs 22.
  2460. `calc.el' by Dave Gillespie
  2461. Org-mode uses the calc package for implementing spreadsheet
  2462. functionality in its tables (*note Table calculations::).
  2463. Org-modes checks for the availability of calc by looking for the
  2464. function `calc-eval' which should be autoloaded in your setup if
  2465. calc has been installed properly. As of Emacs 22, calc is part of
  2466. the Emacs distribution. Another possibility for interaction
  2467. between the two packages is using calc for embedded calculations.
  2468. *Note Embedded Mode: (calc)Embedded Mode.
  2469. `constants.el' by Carsten Dominik
  2470. In a table formula (*note Table calculations::), it is possible to
  2471. use names for natural constants or units. Instead of defining
  2472. your own constants in the variable `org-table-formula-constants',
  2473. install the `constants' package which defines a large number of
  2474. constants and units, and lets you use unit prefixes like `M' for
  2475. `Mega' etc. You will need version 2.0 of this package, available
  2476. at `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for
  2477. the function `constants-get', which has to be autoloaded in your
  2478. setup. See the installation instructions in the file
  2479. `constants.el'.
  2480. `CUA.el' by Kim. F. Storm
  2481. Keybindings in Org-mode conflict with the `S-<cursor>' keys used
  2482. by CUA-mode (as well as pc-select-mode and s-region-mode) to
  2483. select and extend the region. If you want to use one of these
  2484. packages along with Org-mode, configure the variable
  2485. `org-CUA-compatible'. When set, Org-mode will move the following
  2486. keybindings in org-mode files, and in the agenda buffer (but not
  2487. during date selection).
  2488. S-UP -> M-p S-DOWN -> M-n
  2489. S-LEFT -> M-- S-RIGHT -> M-+
  2490. S-RET -> C-S-RET
  2491. Yes, these are unfortunately more difficult to remember. If you
  2492. want to have other replacement keys, look at the variable
  2493. `org-disputed-keys'.
  2494. `remember.el' by John Wiegley
  2495. Org mode cooperates with remember, see *Note Remember::.
  2496. `Remember.el' is not part of Emacs, find it on the web.
  2497. 
  2498. File: org, Node: Bugs, Next: Acknowledgments, Prev: Interaction, Up: Miscellaneous
  2499. 10.7 Bugs
  2500. =========
  2501. Here is a list of things that should work differently, but which I have
  2502. found too hard to fix.
  2503. * If a table field starts with a link, and if the corresponding table
  2504. column is narrowed (*note Narrow columns::) to a width too small to
  2505. display the link, the field would look entirely empty even though
  2506. it is not. To prevent this, Org-mode throws an error. The
  2507. work-around is to make the column wide enough to fit the link, or
  2508. to add some text (at least 2 characters) before the link in the
  2509. same field.
  2510. * Narrowing table columns does not work on XEmacs, because the
  2511. `format' function does not transport text properties.
  2512. * Text in an entry protected with the `QUOTE' keyword should not
  2513. autowrap.
  2514. * When the application called by `C-c C-o' to open a file link fails
  2515. (for example because the application does not exits or refuses to
  2516. open the file), it does so silently. No error message is
  2517. displayed.
  2518. * Plain list items should be able to hold a TODO item.
  2519. Unfortunately this has so many technical problems that I will only
  2520. consider this change for the next major release (5.0).
  2521. * The remote-editing commands in the agenda buffer cannot be undone
  2522. with `undo' called from within the agenda buffer. But you can go
  2523. to the corresponding buffer (using <TAB> or <RET> and execute
  2524. `undo' there.
  2525. * Recalculating a table line applies the formulas from left to right.
  2526. If a formula uses _calculated_ fields further down the row,
  2527. multiple recalculation may be needed to get all fields consistent.
  2528. * Under XEmacs, if Org-mode entries are included into the diary, it
  2529. is not possible to jump back from the diary to the org file.
  2530. Apparently, the text properties are lost when the
  2531. fancy-diary-display is used. However, from Org-mode's timeline
  2532. and agenda buffers (created with `C-c C-r' and `C-c a'), things do
  2533. work correctly.
  2534. * You can only make a single word boldface or italic. To emphasize
  2535. several words in a row, each must have the emphasize markers, like
  2536. in `*three* *bold* *words*'.
  2537. * The exporters work well, but could be made more efficient.
  2538. 
  2539. File: org, Node: Acknowledgments, Prev: Bugs, Up: Miscellaneous
  2540. 10.8 Acknowledgments
  2541. ====================
  2542. Org-mode was written by Carsten Dominik, who still maintains it at the
  2543. Org-mode homepage `http://www.astro.uva.nl/~dominik/Tools/org/'. The
  2544. following people (in alphabetic order) have helped the development
  2545. along with ideas, suggestions and patches. Many thanks to all of you,
  2546. Org-mode would not be what it is without your input.
  2547. * Thomas Baumann contributed the code for links to the MH-E email
  2548. system.
  2549. * Alex Bochannek provided a patch for rounding time stamps.
  2550. * Charles Caves' suggestion sparked the implementation of templates
  2551. for Remember.
  2552. * Pavel Chalmoviansky influenced the agenda treatment of items with
  2553. specified time.
  2554. * Sacha Chua suggested to copy some linking code from Planner.
  2555. * Christian Egli converted the documentation into TeXInfo format,
  2556. patched CSS formatting into the HTML exporter, and inspired the
  2557. agenda.
  2558. * Nic Ferrier contributed mailcap and XML support.
  2559. * Kai Grossjohann pointed out key-binding conflicts caused by
  2560. Org-mode.
  2561. * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
  2562. happy.
  2563. * Tim O'Callaghan suggested in-file links, search options for
  2564. general file links, and TAGS.
  2565. * Oliver Oppitz suggested multi-state TODO items.
  2566. * Scott Otterson sparked the introduction of descriptive text for
  2567. links, among other things.
  2568. * Pete Phillips helped the development of the TAGS feature.
  2569. * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
  2570. control.
  2571. * Kevin Rogers contributed code to access VM files on remote hosts.
  2572. * Philip Rooke created the Org-mode reference card and provided lots
  2573. of feedback.
  2574. * Christian Schlauer proposed angular brackets around links, among
  2575. other things.
  2576. * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
  2577. `organizer-mode.el'.
  2578. * Ju"rgen Vollmer contributed code generating the table of contents
  2579. in HTML output.
  2580. * Chris Wallace provided a patch implementing the `QUOTE' keyword.
  2581. * David Wainberg suggested archiving, and improvements to the linking
  2582. system.
  2583. * John Wiegley wrote `emacs-wiki.el' and `planner.el'. The
  2584. development of Org-mode was fully independent, and both systems are
  2585. really different beasts in their basic ideas and implementation
  2586. details. However, I have later looked at John's code and learned
  2587. from his implementation of (i) links where the link itself is
  2588. hidden and only a description is shown, and (ii) popping up a
  2589. calendar to select a date.
  2590. * Carsten Wimmer suggested some changes and helped fix a bug in
  2591. linking to GNUS.
  2592. * Roland Winkler requested additional keybindings to make Org-mode
  2593. work on a tty.
  2594. * Piotr Zielinski wrote `org-mouse.el' and showed how to follow links
  2595. with mouse-1.
  2596. 
  2597. File: org, Node: Index, Next: Key Index, Prev: Miscellaneous, Up: Top
  2598. 11 Index
  2599. ********
  2600. �[index�]
  2601. * Menu:
  2602. * acknowledgments: Acknowledgments. (line 6)
  2603. * active region <1>: HTML export. (line 10)
  2604. * active region <2>: ASCII export. (line 6)
  2605. * active region <3>: Built-in table editor.
  2606. (line 165)
  2607. * active region: Structure editing. (line 46)
  2608. * agenda: Weekly/Daily Agenda. (line 6)
  2609. * agenda commands, custom: Agenda dispatcher. (line 6)
  2610. * agenda dispatcher: Agenda dispatcher. (line 6)
  2611. * agenda files, removing buffers: Agenda commands. (line 187)
  2612. * agenda views: Agenda Views. (line 6)
  2613. * agenda, for single file: Timeline. (line 6)
  2614. * angular brackets, around links: External links. (line 35)
  2615. * applescript, for calendar update: iCalendar export. (line 38)
  2616. * archive locations: Archiving. (line 13)
  2617. * archiving: Archiving. (line 6)
  2618. * ASCII export: ASCII export. (line 6)
  2619. * author: Feedback. (line 6)
  2620. * autoload: Installation and activation.
  2621. (line 6)
  2622. * BBDB links: External links. (line 6)
  2623. * bold text: HTML formatting. (line 13)
  2624. * bug reports: Feedback. (line 6)
  2625. * bugs: Bugs. (line 6)
  2626. * calc package: Table calculations. (line 6)
  2627. * calc.el: Interaction. (line 17)
  2628. * calculations, in tables <1>: Table calculations. (line 6)
  2629. * calculations, in tables: Built-in table editor.
  2630. (line 135)
  2631. * calendar integration: Calendar/Diary integration.
  2632. (line 6)
  2633. * calendar, for selecting date: Creating timestamps. (line 68)
  2634. * CamelCase link completion: Completion. (line 6)
  2635. * CamelCase links: Internal links. (line 6)
  2636. * CamelCase links, completion of: CamelCase links. (line 6)
  2637. * category: Categories. (line 6)
  2638. * children, subtree visibility state: Visibility cycling. (line 10)
  2639. * clean outline view: Clean view. (line 6)
  2640. * column formula: Column formulas. (line 6)
  2641. * commands, in agenda buffer: Agenda commands. (line 6)
  2642. * comment lines: Comment lines. (line 6)
  2643. * completion, of CamelCase links <1>: Completion. (line 6)
  2644. * completion, of CamelCase links: CamelCase links. (line 6)
  2645. * completion, of dictionary words: Completion. (line 6)
  2646. * completion, of file names: Managing links. (line 36)
  2647. * completion, of links: Managing links. (line 23)
  2648. * completion, of option keywords <1>: Completion. (line 6)
  2649. * completion, of option keywords: Export options. (line 6)
  2650. * Completion, of option keywords: Per file keywords. (line 17)
  2651. * completion, of tags <1>: Completion. (line 6)
  2652. * completion, of tags: Setting tags. (line 12)
  2653. * completion, of TeX symbols <1>: Completion. (line 6)
  2654. * completion, of TeX symbols: HTML formatting. (line 17)
  2655. * completion, of TODO keywords <1>: Completion. (line 6)
  2656. * completion, of TODO keywords: Workflow states. (line 12)
  2657. * constants, in calculations: Formula syntax. (line 26)
  2658. * constants.el: Interaction. (line 27)
  2659. * contents, global visibility state: Visibility cycling. (line 19)
  2660. * copying, of subtrees: Structure editing. (line 6)
  2661. * creating timestamps: Creating timestamps. (line 6)
  2662. * CUA.el: Interaction. (line 39)
  2663. * custom agenda commands: Agenda dispatcher. (line 6)
  2664. * customization: Customization. (line 6)
  2665. * cutting, of subtrees: Structure editing. (line 6)
  2666. * cycling, of TODO states: TODO basics. (line 13)
  2667. * cycling, visibility: Visibility cycling. (line 6)
  2668. * dangerous commands: FAQ. (line 37)
  2669. * date stamps: Time stamps. (line 6)
  2670. * date, reading in minibuffer: Creating timestamps. (line 68)
  2671. * DEADLINE keyword: Time stamps. (line 27)
  2672. * deadlines: Time stamps. (line 6)
  2673. * demotion, of subtrees: Structure editing. (line 6)
  2674. * diary entries, creating from agenda: Agenda commands. (line 145)
  2675. * diary integration: Calendar/Diary integration.
  2676. (line 6)
  2677. * dictionary word completion: Completion. (line 6)
  2678. * dispatching agenda commands: Agenda dispatcher. (line 6)
  2679. * document structure: Document Structure. (line 6)
  2680. * DONE, final TODO keyword: Per file keywords. (line 20)
  2681. * editing tables: Tables. (line 6)
  2682. * editing, of table formulas: Editing/debugging formulas.
  2683. (line 6)
  2684. * emphasized text: Export options. (line 22)
  2685. * evaluate time range: Creating timestamps. (line 63)
  2686. * exporting: Exporting. (line 6)
  2687. * exporting a subtree: FAQ. (line 78)
  2688. * exporting, not: Comment lines. (line 6)
  2689. * extended TODO keywords: TODO extensions. (line 6)
  2690. * external links: External links. (line 6)
  2691. * FAQ: FAQ. (line 6)
  2692. * feedback: Feedback. (line 6)
  2693. * file links: External links. (line 6)
  2694. * file links, searching: Search Options. (line 6)
  2695. * file name completion: Managing links. (line 36)
  2696. * files, adding to agenda list: Agenda files. (line 12)
  2697. * filing subtrees: Archiving. (line 6)
  2698. * fixed width: HTML formatting. (line 28)
  2699. * fixed-width sections: Export options. (line 22)
  2700. * folded, subtree visibility state: Visibility cycling. (line 10)
  2701. * folding, sparse trees: Sparse trees. (line 6)
  2702. * following links: Managing links. (line 50)
  2703. * format specifier: Formula syntax. (line 34)
  2704. * format, of links: Link format. (line 6)
  2705. * formula editing: Editing/debugging formulas.
  2706. (line 6)
  2707. * formula syntax: Formula syntax. (line 6)
  2708. * formula, for named table field: Named-field formulas.
  2709. (line 6)
  2710. * formula, for table column: Column formulas. (line 6)
  2711. * formula, in tables: Built-in table editor.
  2712. (line 135)
  2713. * global keybindings: Installation and activation.
  2714. (line 6)
  2715. * global TODO list: Global TODO list. (line 6)
  2716. * global visibility states: Visibility cycling. (line 19)
  2717. * GNUS links: External links. (line 6)
  2718. * hand-formatted lists: HTML formatting. (line 9)
  2719. * headline levels: Export options. (line 22)
  2720. * headline levels, for exporting <1>: HTML export. (line 22)
  2721. * headline levels, for exporting: ASCII export. (line 12)
  2722. * headline navigation: Motion. (line 6)
  2723. * headline tagging: Tags. (line 6)
  2724. * headline, promotion and demotion: Structure editing. (line 6)
  2725. * headlines: Headlines. (line 6)
  2726. * hide text: Visibility cycling. (line 6)
  2727. * hiding leading stars: Clean view. (line 6)
  2728. * HTML export: HTML export. (line 6)
  2729. * HTML tags: HTML formatting. (line 33)
  2730. * hyperlinks: Hyperlinks. (line 6)
  2731. * iCalendar export: iCalendar export. (line 6)
  2732. * indentation, of tables: FAQ. (line 102)
  2733. * indirect buffers: FAQ. (line 54)
  2734. * inheritance, of tags: Tag inheritance. (line 6)
  2735. * inserting links: Managing links. (line 23)
  2736. * installation: Installation and activation.
  2737. (line 6)
  2738. * internal links: Internal links. (line 6)
  2739. * introduction: Introduction. (line 6)
  2740. * italic text: HTML formatting. (line 13)
  2741. * jumping, to headlines: Motion. (line 6)
  2742. * keybindings, global: Installation and activation.
  2743. (line 6)
  2744. * keyword options: Per file keywords. (line 6)
  2745. * linebreak preservation: Export options. (line 22)
  2746. * link completion: Managing links. (line 23)
  2747. * link format: Link format. (line 6)
  2748. * links, external: External links. (line 6)
  2749. * links, internal: Internal links. (line 6)
  2750. * links, returning to: Managing links. (line 76)
  2751. * lists, hand-formatted: HTML formatting. (line 9)
  2752. * lists, ordered: Plain Lists. (line 6)
  2753. * lists, plain: Plain Lists. (line 6)
  2754. * logging, of progress: Progress logging. (line 6)
  2755. * maintainer: Feedback. (line 6)
  2756. * make-indirect-buffer: FAQ. (line 54)
  2757. * mark ring: Managing links. (line 72)
  2758. * marking characters, tables: Advanced features. (line 34)
  2759. * matching, of tags: Matching headline tags.
  2760. (line 6)
  2761. * matching, tags: Tags. (line 6)
  2762. * MH-E links: External links. (line 6)
  2763. * minor mode for tables: orgtbl-mode. (line 6)
  2764. * mode, for calc: Formula syntax. (line 34)
  2765. * motion, between headlines: Motion. (line 6)
  2766. * name, of column or field: Formula syntax. (line 26)
  2767. * named field formula: Named-field formulas.
  2768. (line 6)
  2769. * names as TODO keywords: TODO types. (line 6)
  2770. * narrow columns in tables: Narrow columns. (line 6)
  2771. * occur, command: Sparse trees. (line 6)
  2772. * option keyword completion: Completion. (line 6)
  2773. * options, for customization: Customization. (line 6)
  2774. * options, for export: Export options. (line 6)
  2775. * ordered lists: Plain Lists. (line 6)
  2776. * org-agenda, command: Weekly/Daily Agenda. (line 9)
  2777. * org-mode, turning on: Installation and activation.
  2778. (line 28)
  2779. * org-mouse.el: Interaction. (line 8)
  2780. * orgtbl-mode: orgtbl-mode. (line 6)
  2781. * outline tree: Headlines. (line 6)
  2782. * outline-mode: Outlines. (line 6)
  2783. * outlines: Outlines. (line 6)
  2784. * overview, global visibility state: Visibility cycling. (line 19)
  2785. * packages, interaction with other: Interaction. (line 6)
  2786. * pasting, of subtrees: Structure editing. (line 6)
  2787. * per file keywords: Per file keywords. (line 6)
  2788. * plain lists: Plain Lists. (line 6)
  2789. * plain text external links: External links. (line 35)
  2790. * printing sparse trees: Sparse trees. (line 39)
  2791. * priorities: Priorities. (line 6)
  2792. * priorities, of agenda items: Sorting of agenda items.
  2793. (line 6)
  2794. * progress logging: Progress logging. (line 6)
  2795. * promotion, of subtrees: Structure editing. (line 6)
  2796. * quoted html tags: Export options. (line 22)
  2797. * ranges, time: Time stamps. (line 6)
  2798. * recomputing table fields: Column formulas. (line 27)
  2799. * region, active <1>: HTML export. (line 10)
  2800. * region, active <2>: ASCII export. (line 6)
  2801. * region, active <3>: Built-in table editor.
  2802. (line 165)
  2803. * region, active: Structure editing. (line 46)
  2804. * remember.el <1>: Interaction. (line 39)
  2805. * remember.el: Remember. (line 6)
  2806. * RMAIL links: External links. (line 6)
  2807. * SCHEDULED keyword: Time stamps. (line 39)
  2808. * scheduling: Time stamps. (line 6)
  2809. * search option in file links: Search Options. (line 6)
  2810. * section-numbers: Export options. (line 22)
  2811. * setting tags: Setting tags. (line 6)
  2812. * SHELL links: External links. (line 6)
  2813. * shell links, confirmation: FAQ. (line 37)
  2814. * show all, command: Visibility cycling. (line 27)
  2815. * show all, global visibility state: Visibility cycling. (line 19)
  2816. * show hidden text: Visibility cycling. (line 6)
  2817. * single file summary: Timeline. (line 6)
  2818. * sorting, of agenda items: Sorting of agenda items.
  2819. (line 6)
  2820. * sparse tree, for deadlines: Creating timestamps. (line 38)
  2821. * sparse tree, for TODO: TODO basics. (line 20)
  2822. * sparse tree, tag based: Tags. (line 6)
  2823. * sparse trees: Sparse trees. (line 6)
  2824. * spreadsheet capabilities: Table calculations. (line 6)
  2825. * storing links: Managing links. (line 9)
  2826. * structure editing: Structure editing. (line 6)
  2827. * structure of document: Document Structure. (line 6)
  2828. * subtree visibility states: Visibility cycling. (line 10)
  2829. * subtree, cut and paste: Structure editing. (line 6)
  2830. * subtree, subtree visibility state: Visibility cycling. (line 10)
  2831. * subtrees, cut and paste: Structure editing. (line 6)
  2832. * summary: Summary. (line 6)
  2833. * syntax, of formulas: Formula syntax. (line 6)
  2834. * table editor, builtin: Built-in table editor.
  2835. (line 6)
  2836. * table editor, table.el: table.el. (line 6)
  2837. * table of contents: Export options. (line 22)
  2838. * table.el <1>: Interaction. (line 13)
  2839. * table.el: table.el. (line 6)
  2840. * tables <1>: Export options. (line 22)
  2841. * tables: Tables. (line 6)
  2842. * tables, export to HTML: HTML formatting. (line 24)
  2843. * tag completion: Completion. (line 6)
  2844. * tag searches: Tag searches. (line 6)
  2845. * tags: Tags. (line 6)
  2846. * tags view: Matching headline tags.
  2847. (line 6)
  2848. * templates, for remember: Remember. (line 26)
  2849. * TeX interpretation: HTML formatting. (line 15)
  2850. * TeX macros: Export options. (line 22)
  2851. * TeX symbol completion: Completion. (line 6)
  2852. * TeX-like syntax for sub- and superscripts: Export options. (line 22)
  2853. * thanks: Acknowledgments. (line 6)
  2854. * time stamps: Time stamps. (line 6)
  2855. * time, reading in minibuffer: Creating timestamps. (line 68)
  2856. * time-sorted view: Timeline. (line 6)
  2857. * timeline, single file: Timeline. (line 6)
  2858. * timerange: Time stamps. (line 18)
  2859. * timestamp: Time stamps. (line 12)
  2860. * timestamps, creating: Creating timestamps. (line 6)
  2861. * TODO items: TODO items. (line 6)
  2862. * TODO keywords completion: Completion. (line 6)
  2863. * TODO list, global: Global TODO list. (line 6)
  2864. * TODO types: TODO types. (line 6)
  2865. * TODO workflow: Workflow states. (line 6)
  2866. * transient-mark-mode <1>: HTML export. (line 10)
  2867. * transient-mark-mode <2>: ASCII export. (line 6)
  2868. * transient-mark-mode <3>: Built-in table editor.
  2869. (line 165)
  2870. * transient-mark-mode: Structure editing. (line 46)
  2871. * trees, sparse: Sparse trees. (line 6)
  2872. * trees, visibility: Visibility cycling. (line 6)
  2873. * tty keybindings: TTY keys. (line 6)
  2874. * types as TODO keywords: TODO types. (line 6)
  2875. * underlined text: HTML formatting. (line 13)
  2876. * URL links: External links. (line 6)
  2877. * USENET links: External links. (line 6)
  2878. * variables, for customization: Customization. (line 6)
  2879. * vectors, in table calculations: Formula syntax. (line 23)
  2880. * visibility cycling: Visibility cycling. (line 6)
  2881. * visible text, printing: Sparse trees. (line 39)
  2882. * VM links: External links. (line 6)
  2883. * WANDERLUST links: External links. (line 6)
  2884. * workflow states as TODO keywords: Workflow states. (line 6)
  2885. 
  2886. File: org, Node: Key Index, Prev: Index, Up: Top
  2887. 12 Key Index
  2888. ************
  2889. �[index�]
  2890. * Menu:
  2891. * +: Agenda commands. (line 118)
  2892. * ,: Agenda commands. (line 110)
  2893. * -: Agenda commands. (line 124)
  2894. * .: Agenda commands. (line 89)
  2895. * :: Agenda commands. (line 107)
  2896. * <: Creating timestamps. (line 75)
  2897. * <left>: Agenda commands. (line 86)
  2898. * <RET> <1>: Agenda commands. (line 41)
  2899. * <RET> <2>: Creating timestamps. (line 100)
  2900. * <RET>: Built-in table editor.
  2901. (line 64)
  2902. * <right>: Agenda commands. (line 81)
  2903. * <SPC>: Agenda commands. (line 28)
  2904. * <TAB> <1>: Agenda commands. (line 35)
  2905. * <TAB> <2>: Built-in table editor.
  2906. (line 57)
  2907. * <TAB> <3>: Plain Lists. (line 37)
  2908. * <TAB>: Visibility cycling. (line 10)
  2909. * > <1>: Agenda commands. (line 140)
  2910. * >: Creating timestamps. (line 76)
  2911. * C: Agenda commands. (line 170)
  2912. * c: Agenda commands. (line 154)
  2913. * C-#: Built-in table editor.
  2914. (line 155)
  2915. * C-,: Agenda files. (line 18)
  2916. * C-c !: Creating timestamps. (line 21)
  2917. * C-c $: Archiving. (line 9)
  2918. * C-c %: Managing links. (line 72)
  2919. * C-c &: Managing links. (line 76)
  2920. * C-c ' <1>: Editing/debugging formulas.
  2921. (line 20)
  2922. * C-c ': Built-in table editor.
  2923. (line 144)
  2924. * C-c *: Built-in table editor.
  2925. (line 148)
  2926. * C-c +: Built-in table editor.
  2927. (line 165)
  2928. * C-c ,: Priorities. (line 18)
  2929. * C-c -: Built-in table editor.
  2930. (line 92)
  2931. * C-c .: Creating timestamps. (line 10)
  2932. * C-c /: Sparse trees. (line 15)
  2933. * C-c :: HTML export. (line 17)
  2934. * C-c ;: Comment lines. (line 12)
  2935. * C-c <: Creating timestamps. (line 25)
  2936. * C-c <TAB>: Built-in table editor.
  2937. (line 187)
  2938. * C-c =: Built-in table editor.
  2939. (line 135)
  2940. * C-c >: Creating timestamps. (line 29)
  2941. * C-c ? <1>: Editing/debugging formulas.
  2942. (line 20)
  2943. * C-c ?: Built-in table editor.
  2944. (line 161)
  2945. * C-c [: Agenda files. (line 12)
  2946. * C-c \: Tag searches. (line 9)
  2947. * C-c ]: Agenda files. (line 15)
  2948. * C-c ^: Built-in table editor.
  2949. (line 96)
  2950. * C-c `: Built-in table editor.
  2951. (line 181)
  2952. * C-c a a: Weekly/Daily Agenda. (line 9)
  2953. * C-c a C: Agenda dispatcher. (line 30)
  2954. * C-c a M: Matching headline tags.
  2955. (line 15)
  2956. * C-c a m: Matching headline tags.
  2957. (line 10)
  2958. * C-c a M: Tag searches. (line 14)
  2959. * C-c a m: Tag searches. (line 10)
  2960. * C-c a T: Global TODO list. (line 15)
  2961. * C-c a t <1>: Global TODO list. (line 9)
  2962. * C-c a t: TODO basics. (line 27)
  2963. * C-c C-a: Visibility cycling. (line 27)
  2964. * C-c C-b: Motion. (line 15)
  2965. * C-c C-c <1>: Setting tags. (line 11)
  2966. * C-c C-c <2>: table.el. (line 6)
  2967. * C-c C-c <3>: Editing/debugging formulas.
  2968. (line 16)
  2969. * C-c C-c <4>: Built-in table editor.
  2970. (line 54)
  2971. * C-c C-c: Plain Lists. (line 61)
  2972. * C-c C-d: Creating timestamps. (line 37)
  2973. * C-c C-f: Motion. (line 12)
  2974. * C-c C-j: Motion. (line 21)
  2975. * C-c C-l: Managing links. (line 23)
  2976. * C-c C-n: Motion. (line 8)
  2977. * C-c C-o <1>: Creating timestamps. (line 33)
  2978. * C-c C-o: Managing links. (line 50)
  2979. * C-c C-p: Motion. (line 9)
  2980. * C-c C-q <1>: Editing/debugging formulas.
  2981. (line 20)
  2982. * C-c C-q: Built-in table editor.
  2983. (line 119)
  2984. * C-c C-r: Timeline. (line 13)
  2985. * C-c C-s: Creating timestamps. (line 47)
  2986. * C-c C-t: TODO basics. (line 13)
  2987. * C-c C-u: Motion. (line 18)
  2988. * C-c C-v: TODO basics. (line 20)
  2989. * C-c C-w: Creating timestamps. (line 38)
  2990. * C-c C-x a: ASCII export. (line 6)
  2991. * C-c C-x b: HTML export. (line 11)
  2992. * C-c C-x c: iCalendar export. (line 20)
  2993. * C-c C-x C-c: Agenda commands. (line 177)
  2994. * C-c C-x C-i: iCalendar export. (line 15)
  2995. * C-c C-x C-k: Structure editing. (line 31)
  2996. * C-c C-x C-w <1>: Built-in table editor.
  2997. (line 108)
  2998. * C-c C-x C-w: Structure editing. (line 31)
  2999. * C-c C-x C-y <1>: Built-in table editor.
  3000. (line 112)
  3001. * C-c C-x C-y: Structure editing. (line 38)
  3002. * C-c C-x h: HTML export. (line 10)
  3003. * C-c C-x i: iCalendar export. (line 13)
  3004. * C-c C-x M-w <1>: Built-in table editor.
  3005. (line 105)
  3006. * C-c C-x M-w: Structure editing. (line 35)
  3007. * C-c C-x t: HTML export. (line 14)
  3008. * C-c C-x v: Sparse trees. (line 39)
  3009. * C-c C-y: Creating timestamps. (line 63)
  3010. * C-c l: Managing links. (line 9)
  3011. * C-c |: Built-in table editor.
  3012. (line 40)
  3013. * C-c ~: table.el. (line 18)
  3014. * C-u C-c .: Creating timestamps. (line 16)
  3015. * C-u C-c =: Built-in table editor.
  3016. (line 139)
  3017. * C-u C-c C-l: Managing links. (line 36)
  3018. * D: Agenda commands. (line 66)
  3019. * d: Agenda commands. (line 63)
  3020. * f: Agenda commands. (line 44)
  3021. * g: Agenda commands. (line 70)
  3022. * H: Agenda commands. (line 174)
  3023. * i: Agenda commands. (line 145)
  3024. * l: Agenda commands. (line 49)
  3025. * L: Agenda commands. (line 32)
  3026. * M: Agenda commands. (line 161)
  3027. * M-<down>: Built-in table editor.
  3028. (line 82)
  3029. * M-<left> <1>: Built-in table editor.
  3030. (line 72)
  3031. * M-<left>: Structure editing. (line 13)
  3032. * M-<RET> <1>: Plain Lists. (line 42)
  3033. * M-<RET>: Structure editing. (line 6)
  3034. * M-<right> <1>: Built-in table editor.
  3035. (line 72)
  3036. * M-<right>: Structure editing. (line 16)
  3037. * M-<TAB> <1>: Completion. (line 10)
  3038. * M-<TAB> <2>: Setting tags. (line 6)
  3039. * M-<TAB>: Per file keywords. (line 17)
  3040. * M-<up>: Built-in table editor.
  3041. (line 82)
  3042. * M-S-<down> <1>: Built-in table editor.
  3043. (line 89)
  3044. * M-S-<down> <2>: Plain Lists. (line 46)
  3045. * M-S-<down>: Structure editing. (line 28)
  3046. * M-S-<left> <1>: Creating timestamps. (line 97)
  3047. * M-S-<left> <2>: Built-in table editor.
  3048. (line 76)
  3049. * M-S-<left> <3>: Plain Lists. (line 52)
  3050. * M-S-<left>: Structure editing. (line 19)
  3051. * M-S-<RET>: Structure editing. (line 10)
  3052. * M-S-<right> <1>: Creating timestamps. (line 94)
  3053. * M-S-<right> <2>: Built-in table editor.
  3054. (line 79)
  3055. * M-S-<right> <3>: Plain Lists. (line 52)
  3056. * M-S-<right>: Structure editing. (line 22)
  3057. * M-S-<up> <1>: Built-in table editor.
  3058. (line 86)
  3059. * M-S-<up> <2>: Plain Lists. (line 46)
  3060. * M-S-<up>: Structure editing. (line 25)
  3061. * mouse-1 <1>: Agenda commands. (line 35)
  3062. * mouse-1 <2>: Creating timestamps. (line 79)
  3063. * mouse-1: Managing links. (line 64)
  3064. * mouse-2 <1>: Agenda commands. (line 35)
  3065. * mouse-2: Managing links. (line 64)
  3066. * mouse-3 <1>: Agenda commands. (line 28)
  3067. * mouse-3: Managing links. (line 69)
  3068. * n: Agenda commands. (line 19)
  3069. * o: Agenda commands. (line 57)
  3070. * P: Agenda commands. (line 115)
  3071. * p: Agenda commands. (line 20)
  3072. * q: Agenda commands. (line 184)
  3073. * r <1>: Agenda commands. (line 74)
  3074. * r: Global TODO list. (line 21)
  3075. * S: Agenda commands. (line 165)
  3076. * S-<down> <1>: Agenda commands. (line 124)
  3077. * S-<down> <2>: Creating timestamps. (line 55)
  3078. * S-<down>: Priorities. (line 25)
  3079. * S-<left> <1>: Agenda commands. (line 136)
  3080. * S-<left>: Creating timestamps. (line 50)
  3081. * S-<RET>: Built-in table editor.
  3082. (line 170)
  3083. * S-<right> <1>: Agenda commands. (line 128)
  3084. * S-<right>: Creating timestamps. (line 50)
  3085. * S-<TAB> <1>: Built-in table editor.
  3086. (line 61)
  3087. * S-<TAB>: Visibility cycling. (line 19)
  3088. * S-<up> <1>: Agenda commands. (line 118)
  3089. * S-<up> <2>: Creating timestamps. (line 55)
  3090. * S-<up>: Priorities. (line 25)
  3091. * T: Agenda commands. (line 102)
  3092. * t: Agenda commands. (line 98)
  3093. * w: Agenda commands. (line 60)
  3094. * x: Agenda commands. (line 187)
  3095. 
  3096. Tag Table:
  3097. Node: Top959
  3098. Node: Introduction7179
  3099. Node: Summary7493
  3100. Node: Installation and activation9605
  3101. Node: Feedback11274
  3102. Node: Document Structure12060
  3103. Node: Outlines12826
  3104. Node: Headlines13486
  3105. Node: Visibility cycling14109
  3106. Node: Motion15300
  3107. Node: Structure editing16084
  3108. Node: Archiving17827
  3109. Node: Sparse trees18687
  3110. Ref: Sparse trees-Footnote-120716
  3111. Ref: Sparse trees-Footnote-220808
  3112. Node: Plain Lists20922
  3113. Ref: Plain Lists-Footnote-123678
  3114. Node: Tables24035
  3115. Node: Built-in table editor24583
  3116. Node: Narrow columns32197
  3117. Ref: Narrow columns-Footnote-134130
  3118. Node: Table calculations34176
  3119. Node: Formula syntax35352
  3120. Ref: Formula syntax-Footnote-138286
  3121. Node: Column formulas38585
  3122. Node: Advanced features40347
  3123. Node: Named-field formulas43602
  3124. Node: Editing/debugging formulas44242
  3125. Node: Appetizer46000
  3126. Node: orgtbl-mode47102
  3127. Node: table.el47593
  3128. Node: Hyperlinks48570
  3129. Node: Link format49204
  3130. Node: Internal links50500
  3131. Node: Radio targets52390
  3132. Node: CamelCase links53105
  3133. Node: External links53603
  3134. Node: Managing links55528
  3135. Node: Search Options59512
  3136. Ref: Search Options-Footnote-160832
  3137. Node: Remember60913
  3138. Ref: Remember-Footnote-164779
  3139. Node: TODO items64903
  3140. Node: TODO basics65826
  3141. Node: Progress logging67341
  3142. Node: TODO extensions68127
  3143. Node: Workflow states68927
  3144. Node: TODO types69795
  3145. Ref: TODO types-Footnote-171453
  3146. Node: Per file keywords71535
  3147. Ref: Per file keywords-Footnote-172988
  3148. Node: Priorities73216
  3149. Node: Timestamps74425
  3150. Node: Time stamps74746
  3151. Node: Creating timestamps76761
  3152. Node: Tags79890
  3153. Node: Tag inheritance80625
  3154. Node: Setting tags81562
  3155. Node: Tag searches82524
  3156. Node: Agenda Views83733
  3157. Node: Agenda files85272
  3158. Ref: Agenda files-Footnote-186232
  3159. Ref: Agenda files-Footnote-286381
  3160. Node: Agenda dispatcher86573
  3161. Node: Weekly/Daily Agenda88703
  3162. Node: Categories89838
  3163. Node: Time-of-day specifications90486
  3164. Node: Calendar/Diary integration92462
  3165. Node: Sorting of agenda items93839
  3166. Node: Global TODO list94671
  3167. Node: Matching headline tags96086
  3168. Node: Timeline97029
  3169. Node: Agenda commands97902
  3170. Node: Exporting103158
  3171. Node: ASCII export103730
  3172. Node: HTML export104565
  3173. Node: HTML formatting105681
  3174. Node: Export options107313
  3175. Node: Comment lines109504
  3176. Node: iCalendar export109974
  3177. Node: Miscellaneous111769
  3178. Node: Completion112396
  3179. Node: Customization113392
  3180. Node: Clean view113840
  3181. Node: TTY keys116480
  3182. Node: FAQ118081
  3183. Node: Interaction124316
  3184. Node: Bugs127157
  3185. Node: Acknowledgments129466
  3186. Node: Index132396
  3187. Node: Key Index153038
  3188. 
  3189. End Tag Table