org 166 KB

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