org 253 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993
  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.54).
  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.54).
  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. * Embedded LaTeX:: LaTeX fragments and formulas
  44. * Exporting:: Sharing and publishing of notes
  45. * Publishing:: Create a web site of linked Org-mode files
  46. * Miscellaneous:: All the rest which did not fit elsewhere
  47. * Extensions and Hacking:: It is possible to write add-on code
  48. * History and Acknowledgments:: How Org-mode came into being
  49. * Index:: The fast road to specific information
  50. * Key Index:: Key bindings and where they are described
  51. --- The Detailed Node Listing ---
  52. Introduction
  53. * Summary:: Brief summary of what Org-mode does
  54. * Installation:: How to install a downloaded version of Org-mode
  55. * Activation:: How to activate Org-mode for certain buffers.
  56. * Feedback:: Bug reports, ideas, patches etc.
  57. Document Structure
  58. * Outlines:: Org-mode is based on outline-mode
  59. * Headlines:: How to typeset org-tree headlines
  60. * Visibility cycling:: Show and hide, much simplified
  61. * Motion:: Jumping to other headlines
  62. * Structure editing:: Changing sequence and level of headlines
  63. * Archiving:: Move done task trees to a different place
  64. * Sparse trees:: Matches embedded in context
  65. * Plain lists:: Additional structure within an entry
  66. Archiving
  67. * ARCHIVE tag:: Marking a tree as inactive
  68. * Moving subtrees:: Moving a tree to an archive file
  69. Tables
  70. * Built-in table editor:: Simple tables
  71. * Narrow columns:: Stop wasting space in tables
  72. * Table calculations:: Compute a field from other fields
  73. * orgtbl-mode:: The table editor as minor mode
  74. * table.el:: Complex tables
  75. Calculations in tables
  76. * Formula syntax:: How to write a formula
  77. * Lisp formulas:: An alternative way to write formulas
  78. * Column formulas:: Formulas valid for all fields in a column
  79. * Advanced features:: Field names, parameters and automatic recalc
  80. * Named-field formulas:: Formulas valid in single fields
  81. * Editing/debugging formulas:: Changing a stored formula
  82. * Appetizer:: Taste the power of calc
  83. Hyperlinks
  84. * Link format:: How links in Org-mode are formatted
  85. * Internal links:: Links to other places in the current file
  86. * External links:: URL-like links to the world
  87. * Handling links:: Creating, inserting and following
  88. * Link abbreviations:: Shortcuts for writing complex links
  89. * Search options:: Linking to a specific location
  90. * Custom searches:: When the default search is not enough
  91. * Remember:: Org-trees store quick notes
  92. Internal links
  93. * Radio targets:: Make targets trigger links in plain text.
  94. * CamelCase links:: Activating CamelCase words as links
  95. TODO items
  96. * TODO basics:: Marking and displaying TODO entries
  97. * TODO extensions:: Workflow and assignments
  98. * Priorities:: Some things are more important than others
  99. * Breaking down tasks:: Splitting a task into managable pieces
  100. * Checkboxes:: Tick-off lists
  101. Extended use of TODO keywords
  102. * Workflow states:: From TODO to DONE in steps
  103. * TODO types:: I do this, Fred the rest
  104. * Per file keywords:: Different files, different requirements
  105. Timestamps
  106. * Time stamps:: Assigning a time to a tree entry
  107. * Creating timestamps:: Commands which insert timestamps
  108. * Custom time format:: If you cannot work with the ISO format
  109. * Progress logging:: Documenting when what work was done.
  110. Creating timestamps
  111. * The date/time prompt:: How org-mode helps you entring date and time
  112. Progress Logging
  113. * Closing items:: When was this entry marked DONE?
  114. * Clocking work time:: When exactly did you work on this item?
  115. Tags
  116. * Tag inheritance:: Tags use the tree structure of the outline
  117. * Setting tags:: How to assign tags to a headline
  118. * Tag searches:: Searching for combinations of tags
  119. Agenda Views
  120. * Agenda files:: Files being searched for agenda information
  121. * Agenda dispatcher:: Keyboard access to agenda views
  122. * Weekly/Daily agenda:: The calendar page with current tasks
  123. * Global TODO list:: All unfinished action items
  124. * Matching headline tags:: Structured information with fine-tuned search
  125. * Timeline:: Time-sorted view for single file
  126. * Presentation and sorting:: How agenda items are prepared for display
  127. * Agenda commands:: Remote editing of org trees
  128. * Custom agenda views:: Defining special searches and views
  129. The weekly/daily agenda
  130. * Calendar/Diary integration:: Integrating Anniversaries and more
  131. Presentation and sorting
  132. * Categories:: Not all tasks are equal
  133. * Time-of-day specifications:: How the agenda knows the time
  134. * Sorting of agenda items:: The order of things
  135. Custom agenda views
  136. * Storing searches:: Type once, use often
  137. * Block agenda:: All the stuff you need in a single buffer
  138. * Setting Options:: Changing the rules
  139. * Batch processing:: Agenda views from the command line
  140. Embedded LaTeX
  141. * Math symbols:: TeX macros for symbols and Greek letters
  142. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  143. * LaTeX fragments:: Complex formulas made easy
  144. * Processing LaTeX fragments:: Previewing LaTeX processing
  145. * CDLaTeX mode:: Speed up entering of formulas
  146. Exporting
  147. * ASCII export:: Exporting to plain ASCII
  148. * HTML export:: Exporting to HTML
  149. * XOXO export:: Exporting to XOXO
  150. * iCalendar export:: Exporting in iCalendar format
  151. * Text interpretation:: How the exporter looks at the file
  152. Text interpretation by the exporter
  153. * Comment lines:: Some lines will not be exported
  154. * Enhancing text:: Subscripts, symbols and more
  155. * Export options:: How to influence the export settings
  156. Publishing
  157. * Configuration:: Defining projects
  158. * Sample configuration:: Example projects
  159. * Triggering publication:: Publication commands
  160. Configuration
  161. * Project alist:: The central configuration variable
  162. * Sources and destinations:: From here to there
  163. * Selecting files:: What files are part of the project?
  164. * Publishing action:: Setting the function doing the publishing
  165. * Publishing options:: Tweaking HTML export
  166. * Publishing links:: Which links keep working after publishing?
  167. * Project page index:: Publishing a list of project files
  168. Sample configuration
  169. * Simple example:: One-component publishing
  170. * Complex example:: A multi-component publishing example
  171. Miscellaneous
  172. * Completion:: M-TAB knows what you need
  173. * Customization:: Adapting Org-mode to your taste
  174. * In-buffer settings:: Overview of the #+KEYWORDS
  175. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  176. * Clean view:: Getting rid of leading stars in the outline
  177. * TTY keys:: Using Org-mode on a tty
  178. * Interaction:: Other Emacs packages
  179. * Bugs:: Things which do not work perfectly
  180. Interaction with other packages
  181. * Cooperation:: Packages Org-mode cooperates with
  182. * Conflicts:: Packages that lead to conflicts
  183. Extensions, Hooks and Hacking
  184. * Extensions:: Existing 3rd-part extensions
  185. * Dynamic blocks:: Automatically filled blocks
  186. 
  187. File: org, Node: Introduction, Next: Document structure, Prev: Top, Up: Top
  188. 1 Introduction
  189. **************
  190. * Menu:
  191. * Summary:: Brief summary of what Org-mode does
  192. * Installation:: How to install a downloaded version of Org-mode
  193. * Activation:: How to activate Org-mode for certain buffers.
  194. * Feedback:: Bug reports, ideas, patches etc.
  195. 
  196. File: org, Node: Summary, Next: Installation, Prev: Introduction, Up: Introduction
  197. 1.1 Summary
  198. ===========
  199. Org-mode is a mode for keeping notes, maintaining ToDo lists, and doing
  200. project planning with a fast and effective plain-text system.
  201. Org-mode develops organizational tasks around NOTES files that
  202. contain information about projects as plain text. Org-mode is
  203. implemented on top of outline-mode, which makes it possible to keep the
  204. content of large files well structured. Visibility cycling and
  205. structure editing help to work with the tree. Tables are easily
  206. created with a built-in table editor. Org-mode supports ToDo items,
  207. deadlines, time stamps, and scheduling. It dynamically compiles
  208. entries into an agenda that utilizes and smoothly integrates much of
  209. the Emacs calendar and diary. Plain text URL-like links connect to
  210. websites, emails, Usenet messages, BBDB entries, and any files related
  211. to the projects. For printing and sharing of notes, an Org-mode file
  212. can be exported as a structured ASCII file, as HTML, or (todo and
  213. agenda items only) as an iCalendar file. It can also serve as a
  214. publishing tool for a set of linked webpages.
  215. An important design aspect that distinguishes Org-mode from other
  216. packages like Planner/Muse is that it encougages to store every piece of
  217. information only once. In Planner, you have project pages, day pages
  218. and possibly other files, duplicating some information such as tasks.
  219. In Org-mode, you only have notes files. In your notes you mark entries
  220. as tasks, label them with tags and timestamps. All necessary lists like
  221. a schedule for the day, the agenda for a meeting, tasks lists selected
  222. by tags etc are created dynamically when you need them.
  223. Org-mode keeps simple things simple. When first fired up, it should
  224. feel like a straightforward, easy to use outliner. Complexity is not
  225. imposed, but a large amount of functionality is available when you need
  226. it. Org-mode can be used on different levels and in different ways, for
  227. example:
  228. * as an outline extension with visibility cycling and structure editing
  229. * as an ASCII system and table editor for taking structured notes
  230. * as an ASCII table editor with spreadsheet-like capabilities
  231. * as a TODO list editor
  232. * as a full agenda and planner with deadlines and work scheduling
  233. * as an environment to implement David Allen's GTD system
  234. * as a simple hypertext system, with HTML export
  235. * as a publishing tool to create a set of interlinked webpages
  236. Org-mode's automatic, context sensitive table editor can be
  237. integrated into any major mode by activating the minor Orgtbl-mode.
  238. There is a website for Org-mode which provides links to the newest
  239. version of Org-mode, as well as additional information, frequently asked
  240. questions (FAQ), links to tutorials etc. This page is located at
  241. `http://www.astro.uva.nl/~dominik/Tools/org/'.
  242. 
  243. File: org, Node: Installation, Next: Activation, Prev: Summary, Up: Introduction
  244. 1.2 Installation
  245. ================
  246. Important: If Org-mode is part of the Emacs distribution or an XEmacs
  247. package, please skip this section and go directly to *Note Activation::.
  248. If you have downloaded Org-mode from the Web, you must take the
  249. following steps to install it: Go into the Org-mode distribution
  250. directory and edit the top section of the file `Makefile'. You must
  251. set the name of the Emacs binary (likely either `emacs' or `xemacs'),
  252. and the paths to the directories where local Lisp and Info files are
  253. kept. If you don't have access to the system-wide directories, create
  254. your own two directories for these files, enter them into the Makefile,
  255. and make sure Emacs finds the Lisp files by adding the following line
  256. to `.emacs':
  257. (setq load-path (cons "~/path/to/lispdir" load-path))
  258. XEmacs users now need to install the file `noutline.el' from the
  259. `xemacs' subdirectory of the Org-mode distribution. Use the command:
  260. make install-noutline
  261. Now byte-compile and install the Lisp files with the shell commands:
  262. make
  263. make install
  264. If you want to install the info documentation, use this command:
  265. make install-info
  266. Then add to `.emacs':
  267. ;; This line only if org-mode is not part of the X/Emacs distribution.
  268. (require 'org-install)
  269. 
  270. File: org, Node: Activation, Next: Feedback, Prev: Installation, Up: Introduction
  271. 1.3 Activation
  272. ==============
  273. Add the following lines to your `.emacs' file. The last two lines
  274. define _global_ keys for the commands `org-store-link' and `org-agenda'
  275. - please choose suitable keys yourself.
  276. ;; The following lines are always needed. Choose your own keys.
  277. (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
  278. (define-key global-map "\C-cl" 'org-store-link)
  279. (define-key global-map "\C-ca" 'org-agenda)
  280. Furthermore, you must activate `font-lock-mode' in org-mode buffers,
  281. because significant functionality depends on font-locking being active.
  282. You can do this with either one of the following two lines (XEmacs
  283. user must use the second option):
  284. (global-font-lock-mode 1) ; for all buffers
  285. (add-hook 'org-mode-hook 'turn-on-font-lock) ; org-mode buffers only
  286. With this setup, all files with extension `.org' will be put into
  287. Org-mode. As an alternative, make the first line of a file look like
  288. this:
  289. MY PROJECTS -*- mode: org; -*-
  290. which will select Org-mode for this buffer no matter what the file's
  291. name is. See also the variable `org-insert-mode-line-in-empty-file'.
  292. 
  293. File: org, Node: Feedback, Prev: Activation, Up: Introduction
  294. 1.4 Feedback
  295. ============
  296. If you find problems with Org-mode, or if you have questions, remarks,
  297. or ideas about it, please contact the maintainer Carsten Dominik at
  298. <dominik at science dot uva dot nl>.
  299. For bug reports, please provide as much information as possible,
  300. including the version information of Emacs (`C-h v emacs-version
  301. <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
  302. Org-mode related setup in `.emacs'. If an error occurs, a backtrace
  303. can be very useful (see below on how to create one). Often a small
  304. example file helps, along with clear information about:
  305. 1. What exactly did you do?
  306. 2. What did you expect to happen?
  307. 3. What happened instead?
  308. Thank you for helping to improve this mode.
  309. How to create a useful backtrace
  310. ................................
  311. If working with Org-mode produces an error with a message you don't
  312. understand, you may have hit a bug. The best way to report this is by
  313. providing, in addition to what was mentioned above, a _Backtrace_.
  314. This is information from the built-in debugger about where and how the
  315. error occurred. Here is how to produce a useful backtrace:
  316. 1. Start a fresh Emacs or XEmacs, and make sure that it will load the
  317. original Lisp code in `org.el' instead of the compiled version in
  318. `org.elc'. The backtrace contains much more information if it is
  319. produced with uncompiled code. To do this, either rename `org.elc'
  320. to something else before starting Emacs, or ask Emacs explicitly
  321. to load `org.el' by using the command line
  322. emacs -l /path/to/org.el
  323. 2. Go to the `Options' menu and select `Enter Debugger on Error'
  324. (XEmacs has this option in the `Troubleshooting' sub-menu).
  325. 3. Do whatever you have to do to hit the error. Don't forget to to
  326. document the steps you take.
  327. 4. When you hit the error, a `*Backtrace*' buffer will appear on the
  328. screen. Safe this buffer to a file (for example using `C-x C-w'
  329. and attach) it to your bug report.
  330. 
  331. File: org, Node: Document structure, Next: Tables, Prev: Introduction, Up: Top
  332. 2 Document Structure
  333. ********************
  334. Org-mode is based on outline mode and provides flexible commands to
  335. edit the structure of the document.
  336. * Menu:
  337. * Outlines:: Org-mode is based on outline-mode
  338. * Headlines:: How to typeset org-tree headlines
  339. * Visibility cycling:: Show and hide, much simplified
  340. * Motion:: Jumping to other headlines
  341. * Structure editing:: Changing sequence and level of headlines
  342. * Archiving:: Move done task trees to a different place
  343. * Sparse trees:: Matches embedded in context
  344. * Plain lists:: Additional structure within an entry
  345. 
  346. File: org, Node: Outlines, Next: Headlines, Prev: Document structure, Up: Document structure
  347. 2.1 Outlines
  348. ============
  349. Org-mode is implemented on top of outline-mode. Outlines allow to
  350. organize a document in a hierarchical structure, which (at least for
  351. me) is the best representation of notes and thoughts. Overview over
  352. this structure is achieved by folding (hiding) large parts of the
  353. document to show only the general document structure and the parts
  354. currently being worked on. Org-mode greatly simplifies the use of
  355. outlines by compressing the entire show/hide functionality into a
  356. single command `org-cycle', which is bound to the <TAB> key.
  357. 
  358. File: org, Node: Headlines, Next: Visibility cycling, Prev: Outlines, Up: Document structure
  359. 2.2 Headlines
  360. =============
  361. Headlines define the structure of an outline tree. The headlines in
  362. Org-mode start with one or more stars, on the left margin. For example:
  363. * Top level headline
  364. ** Second level
  365. *** 3rd level
  366. some text
  367. *** 3rd level
  368. more text
  369. * Another top level headline
  370. Some people find the many stars too noisy and would prefer an outline
  371. that has whitespace followed by a single star as headline starters.
  372. *Note Clean view:: describes a setup to realize this.
  373. 
  374. File: org, Node: Visibility cycling, Next: Motion, Prev: Headlines, Up: Document structure
  375. 2.3 Visibility cycling
  376. ======================
  377. Outlines make it possible to hide parts of the text in the buffer.
  378. Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
  379. the visibility in the buffer.
  380. `<TAB>'
  381. _Subtree cycling_: Rotate current subtree between the states
  382. ,-> FOLDED -> CHILDREN -> SUBTREE --.
  383. '-----------------------------------'
  384. The cursor must be on a headline for this to work(1). When the
  385. cursor is at the beginning of the buffer and the first line is not
  386. a headline, then <TAB> actually runs global cycling (see
  387. below)(2). Also when called with a prefix argument (`C-u <TAB>'),
  388. global cycling is invoked.
  389. `S-<TAB>'
  390. `C-u <TAB>'
  391. _Global cycling_: Rotate the entire buffer between the states
  392. ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
  393. '--------------------------------------'
  394. Note that inside tables, `S-<TAB>' jumps to the previous field.
  395. `C-c C-a'
  396. Show all.
  397. `C-c C-r'
  398. Reveal context around point, showing the current entry, the
  399. following heading and the hierarchy above. Useful for working
  400. near a location exposed by a sparse tree command (*note Sparse
  401. trees::) or an agenda command (*note Agenda commands::).
  402. When Emacs first visits an Org-mode file, the global state is set to
  403. OVERVIEW, i.e. only the top level headlines are visible. This can be
  404. configured through the variable `org-startup-folded', or on a per-file
  405. basis by adding one of the following lines anywhere in the buffer:
  406. #+STARTUP: overview
  407. #+STARTUP: content
  408. #+STARTUP: showall
  409. ---------- Footnotes ----------
  410. (1) see, however, the option `org-cycle-emulate-tab'.
  411. (2) see the option `org-cycle-global-at-bob'.
  412. 
  413. File: org, Node: Motion, Next: Structure editing, Prev: Visibility cycling, Up: Document structure
  414. 2.4 Motion
  415. ==========
  416. The following commands jump to other headlines in the buffer.
  417. `C-c C-n'
  418. Next heading.
  419. `C-c C-p'
  420. Previous heading.
  421. `C-c C-f'
  422. Next heading same level.
  423. `C-c C-b'
  424. Previous heading same level.
  425. `C-c C-u'
  426. Backward to higher level heading.
  427. `C-c C-j'
  428. Jump to a different place without changing the current outline
  429. visibility. Shows the document structure in a temporary buffer,
  430. where you can use visibility cycling (<TAB>) to find your
  431. destination. After pressing <RET>, the cursor moves to the
  432. selected location in the original buffer, and the headings
  433. hierarchy above it is made visible.
  434. 
  435. File: org, Node: Structure editing, Next: Archiving, Prev: Motion, Up: Document structure
  436. 2.5 Structure editing
  437. =====================
  438. `M-<RET>'
  439. Insert new heading with same level as current. If the cursor is
  440. in a plain list item, a new item is created (*note Plain lists::).
  441. To force creation of a new headline, use a prefix arg, or first
  442. press <RET> to get to the beginning of the next line. When this
  443. command is used in the middle of a line, the line is split and the
  444. rest of the line becomes the new headline. If the command is used
  445. at the beginning of a headline, the new headline is created before
  446. the current line. If at the beginning of any other line, the
  447. content of that line is made the new heading. If the command is
  448. used at the end of a folded subtree (i.e. behind the ellipses at
  449. the end of a headline), then a headline like the current one will
  450. be inserted after the end of the subtree.
  451. `M-S-<RET>'
  452. Insert new TODO entry with same level as current heading.
  453. `M-<left>'
  454. Promote current heading by one level.
  455. `M-<right>'
  456. Demote current heading by one level.
  457. `M-S-<left>'
  458. Promote the current subtree by one level.
  459. `M-S-<right>'
  460. Demote the current subtree by one level.
  461. `M-S-<up>'
  462. Move subtree up (swap with previous subtree of same level).
  463. `M-S-<down>'
  464. Move subtree down (swap with next subtree of same level).
  465. `C-c C-x C-w'
  466. `C-c C-x C-k'
  467. Kill subtree, i.e. remove it from buffer but save in kill ring.
  468. `C-c C-x M-w'
  469. Copy subtree to kill ring.
  470. `C-c C-x C-y'
  471. Yank subtree from kill ring. This does modify the level of the
  472. subtree to make sure the tree fits in nicely at the yank position.
  473. The yank level can also be specified with a prefix arg, or by
  474. yanking after a headline marker like `****'.
  475. When there is an active region (transient-mark-mode), promotion and
  476. demotion work on all headlines in the region. To select a region of
  477. headlines, it is best to place both point and mark at the beginning of a
  478. line, mark at the beginning of the first headline, and point at the line
  479. just after the last headline to change. Note that when the cursor is
  480. inside a table (*note Tables::), the Meta-Cursor keys have different
  481. functionality.
  482. 
  483. File: org, Node: Archiving, Next: Sparse trees, Prev: Structure editing, Up: Document structure
  484. 2.6 Archiving
  485. =============
  486. When a project represented by a (sub)tree is finished, you may want to
  487. move the tree out of the way and to stop it from contributing to the
  488. agenda. Org-mode knows two ways of archiving. You can mark a tree with
  489. the ARCHIVE tag, or you can move an entire (sub)tree to a different
  490. location.
  491. * Menu:
  492. * ARCHIVE tag:: Marking a tree as inactive
  493. * Moving subtrees:: Moving a tree to an archive file
  494. 
  495. File: org, Node: ARCHIVE tag, Next: Moving subtrees, Prev: Archiving, Up: Archiving
  496. 2.6.1 The ARCHIVE tag
  497. ---------------------
  498. A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
  499. its location in the outline tree, but behaves in the following way:
  500. - It does not open when you attempt to do so with a visibility
  501. cycling command (*note Visibility cycling::). You can force
  502. cycling archived subtrees with `C-<TAB>', or by setting the option
  503. `org-cycle-open-archived-trees'. Also normal outline commands like
  504. `show-all' will open archived subtrees.
  505. - During sparse tree construction (*note Sparse trees::), matches in
  506. archived subtrees are not exposed, unless you configure the option
  507. `org-sparse-tree-open-archived-trees'.
  508. - During agenda view construction (*note Agenda views::), the
  509. content of archived trees is ignored unless you configure the
  510. option `org-agenda-skip-archived-trees'.
  511. - Archived trees are not exported (*note Exporting::), only the
  512. headline is. Configure the details using the variable
  513. `org-export-with-archived-trees'.
  514. The following commands help managing the ARCHIVE tag:
  515. `C-c C-x C-a'
  516. Toggle the ARCHIVE tag for the current headline. When the tag is
  517. set, the headline changes to a shadowish face, and the subtree
  518. below it is hidden.
  519. `C-u C-c C-x C-a'
  520. Check if any direct children of the current headline should be
  521. archived. To do this, each subtree is checked for open TODO
  522. entries. If none are found, the command offers to set the ARCHIVE
  523. tag for the child. If the cursor is _not_ on a headline when this
  524. command is invoked, the level 1 trees will be checked.
  525. `C-TAB'
  526. Cycle a tree even if it is tagged with ARCHIVE.
  527. 
  528. File: org, Node: Moving subtrees, Prev: ARCHIVE tag, Up: Archiving
  529. 2.6.2 Moving subtrees
  530. ---------------------
  531. Once an entire project is finished, you may want to move it to a
  532. different location, either in the current file, or even in a different
  533. file, the archive file.
  534. `C-c $'
  535. Archive the subtree starting at the cursor position to the location
  536. given by `org-archive-location'.
  537. `C-u C-c $'
  538. Check if any direct children of the current headline could be
  539. moved to the archive. To do this, each subtree is checked for
  540. open TODO entries. If none are found, the command offers to move
  541. it to the archive location. If the cursor is _not_ on a headline
  542. when this command is invoked, the level 1 trees will be checked.
  543. The default archive location is a file in the same directory as the
  544. current file, with the name derived by appending `_archive' to the
  545. current file name. For information and examples on how to change this,
  546. see the documentation string of the variable `org-archive-location'.
  547. 
  548. File: org, Node: Sparse trees, Next: Plain lists, Prev: Archiving, Up: Document structure
  549. 2.7 Sparse trees
  550. ================
  551. An important feature of Org-mode is the ability to construct _sparse
  552. trees_ for selected information in an outline tree. A sparse tree
  553. means that the entire document is folded as much as possible, but the
  554. selected information is made visible along with the headline structure
  555. above it(1). Just try it out and you will see immediately how it works.
  556. Org-mode contains several commands creating such trees. The most
  557. basic one is `org-occur':
  558. `C-c /'
  559. Occur. Prompts for a regexp and shows a sparse tree with all
  560. matches. If the match is in a headline, the headline is made
  561. visible. If the match is in the body of an entry, headline and
  562. body are made visible. In order to provide minimal context, also
  563. the full hierarchy of headlines above the match is shown, as well
  564. as the headline following the match. Each match is also
  565. highlighted; the highlights disappear when the bufer is changes an
  566. editing command, or by pressing `C-c C-c'. When called with a
  567. `C-u' prefix argument, previous highlights are kept, so several
  568. calls to this command can be stacked.
  569. For frequently used sparse trees of specific search strings, you can
  570. use the variable `org-agenda-custom-commands' to define fast keyboard
  571. access to specific sparse trees. These commands will then be
  572. accessible through the agenda dispatcher (*note Agenda dispatcher::).
  573. For example:
  574. (setq org-agenda-custom-commands
  575. '(("f" occur-tree "FIXME")))
  576. will define the key `C-c a f' as a shortcut for creating a sparse tree
  577. matching the string `FIXME'.
  578. Other commands use sparse trees as well. For example `C-c C-v'
  579. creates a sparse TODO tree (*note TODO basics::).
  580. To print a sparse tree, you can use the Emacs command
  581. `ps-print-buffer-with-faces' which does not print invisible parts of
  582. the document (2). Or you can use the command `C-c C-e v' to export
  583. only the visible part of the document and print the resulting file.
  584. ---------- Footnotes ----------
  585. (1) See also the variables `org-show-hierarchy-above' and
  586. `org-show-following-heading'.
  587. (2) This does not work under XEmacs, because XEmacs uses selective
  588. display for outlining, not text properties.
  589. 
  590. File: org, Node: Plain lists, Prev: Sparse trees, Up: Document structure
  591. 2.8 Plain lists
  592. ===============
  593. Within an entry of the outline tree, hand-formatted lists can provide
  594. additional structure. They also provide a way to create lists of
  595. checkboxes (*note Checkboxes::). Org-mode supports editing such lists,
  596. and the HTML exporter (*note Exporting::) does parse and format them.
  597. Org-mode knows ordered and unordered lists. Unordered list items
  598. start with `-', `+', or `*'(1) as bullets. Ordered list items start
  599. with `1.' or `1)'. Items belonging to the same list must have the same
  600. indentation on the first line. In particular, if an ordered list
  601. reaches number `10.', then the 2-digit numbers must be written
  602. left-aligned with the other numbers in the list. Indentation also
  603. determines the end of a list item. It ends before the next line that
  604. is indented like the bullet/number, or less. For example:
  605. ** Lord of the Rings
  606. My favorite scenes are (in this order)
  607. 1. The attack of the Rohirrim
  608. 2. Eowyns fight with the witch king
  609. + this was already my favorite scene in the book
  610. + I really like Miranda Otto.
  611. 3. Peter Jackson being shot by Legolas
  612. - on DVD only
  613. He makes a really funny face when it happens.
  614. But in the end, not individual scenes matter but the film as a whole.
  615. Org-mode supports these lists by tuning filling and wrapping
  616. commands to deal with them correctly(2).
  617. The following commands act on items when the cursor is in the first
  618. line of an item (the line with the bullet or number).
  619. `<TAB>'
  620. Items can be folded just like headline levels if you set the
  621. variable `org-cycle-include-plain-lists'. The level of an item is
  622. then given by the indentation of the bullet/number. Items are
  623. always subordinate to real headlines, however; the hierarchies
  624. remain completely separated.
  625. `M-<RET>'
  626. Insert new item at current level. With prefix arg, force a new
  627. heading (*note Structure editing::). If this command is used in
  628. the middle of a line, the line is _split_ and the rest of the line
  629. becomes the new item. If this command is executed in the
  630. _whitespace before a bullet or number_, the new item is created
  631. _before_ the current item. If the command is executed in the
  632. white space before the text that is part of an item but does not
  633. contain the bullet, a bullet is added to the current line.
  634. `M-S-<RET>'
  635. Insert a new item with a checkbox (*note Checkboxes::).
  636. `S-<up>'
  637. `S-<down>'
  638. Jump to the previous/next item in the current list.
  639. `M-S-<up>'
  640. `M-S-<down>'
  641. Move the item including subitems up/down (swap with previous/next
  642. item of same indentation). If the list is ordered, renumbering is
  643. automatic.
  644. `M-S-<left>'
  645. `M-S-<right>'
  646. Decrease/increase the indentation of the item, including subitems.
  647. Initially, the item tree is selected based on current indentation.
  648. When these commands are executed several times in direct
  649. succession, the initially selected region is used, even if the new
  650. indentation would imply a different hierarchy. To use the new
  651. hierarchy, break the command chain with a cursor motion or so.
  652. `C-c C-c'
  653. If there is a checkbox (*note Checkboxes::) in the item line,
  654. toggle the state of the checkbox. Otherwise, if this is an
  655. ordered list, renumber the ordered list at the cursor.
  656. ---------- Footnotes ----------
  657. (1) When using `*' as a bullet, lines must be indented or they will
  658. be seen as top-level headlines. Also, when you are hiding leading
  659. stars to get a clean outline view, plain list items starting with a
  660. star are visually indistinguishable from true headlines. In short:
  661. even though `*' is supported, it may be better not to use it for plain
  662. list items
  663. (2) Org-mode only changes the filling settings for Emacs. For
  664. XEmacs, you should use Kyle E. Jones' `filladapt.el'. To turn is on,
  665. put into `.emacs':
  666. (require 'filladapt)
  667. 
  668. File: org, Node: Tables, Next: Hyperlinks, Prev: Document structure, Up: Top
  669. 3 Tables
  670. ********
  671. Org-mode has a very fast and intuitive table editor built-in.
  672. Spreadsheet-like calculations are supported in connection with the
  673. Emacs `calc' package.
  674. * Menu:
  675. * Built-in table editor:: Simple tables
  676. * Narrow columns:: Stop wasting space in tables
  677. * Table calculations:: Compute a field from other fields
  678. * orgtbl-mode:: The table editor as minor mode
  679. * table.el:: Complex tables
  680. 
  681. File: org, Node: Built-in table editor, Next: Narrow columns, Prev: Tables, Up: Tables
  682. 3.1 The built-in table editor
  683. =============================
  684. Org-mode makes it easy to format tables in plain ASCII. Any line with
  685. `|' as the first non-white character is considered part of a table.
  686. `|' is also the column separator. A table might look like this:
  687. | Name | Phone | Age |
  688. |-------+-------+-----|
  689. | Peter | 1234 | 17 |
  690. | Anna | 4321 | 25 |
  691. A table is re-aligned automatically each time you press <TAB> or
  692. <RET> or `C-c C-c' inside the table. <TAB> also moves to the next
  693. field (<RET> to the next row) and creates new table rows at the end of
  694. the table or before horizontal lines. The indentation of the table is
  695. set by the first line. Any line starting with `|-' is considered as a
  696. horizontal separator line and will be expanded on the next re-align to
  697. span the whole table width. So, to create the above table, you would
  698. only type
  699. |Name|Phone|Age|
  700. |-
  701. and then press <TAB> to align the table and start filling in fields.
  702. When typing text into a field, Org-mode treats <DEL>, <Backspace>,
  703. and all character keys in a special way, so that inserting and deleting
  704. avoids shifting other fields. Also, when typing _immediately after the
  705. cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
  706. the field is automatically made blank. If this behavior is too
  707. unpredictable for you, configure the variables
  708. `org-enable-table-editor' and `org-table-auto-blank-field'.
  709. Creation and conversion
  710. .......................
  711. `C-c |'
  712. Convert the active region to table. If every line contains at
  713. least one TAB character, the function assumes that the material is
  714. tab separated. If not, lines are split at whitespace into fields.
  715. You can use a prefix argument to indicate the minimum number of
  716. consecutive spaces required to identify a field separator
  717. (default: just one).
  718. If there is no active region, this command creates an empty
  719. Org-mode table. But it's easier just to start typing, like
  720. `|Name|Phone|Age <RET> |- <TAB>'.
  721. Re-aligning and field motion
  722. ............................
  723. `C-c C-c'
  724. Re-align the table without moving the cursor.
  725. `<TAB>'
  726. Re-align the table, move to the next field. Creates a new row if
  727. necessary.
  728. `S-<TAB>'
  729. Re-align, move to previous field.
  730. `<RET>'
  731. Re-align the table and move down to next row. Creates a new row if
  732. necessary. At the beginning or end of a line, <RET> still does
  733. NEWLINE, so it can be used to split a table.
  734. Column and row editing
  735. ......................
  736. `M-<left>'
  737. `M-<right>'
  738. Move the current column left/right.
  739. `M-S-<left>'
  740. Kill the current column.
  741. `M-S-<right>'
  742. Insert a new column to the left of the cursor position.
  743. `M-<up>'
  744. `M-<down>'
  745. Move the current row up/down.
  746. `M-S-<up>'
  747. Kill the current row or horizontal line.
  748. `M-S-<down>'
  749. Insert a new row above (with arg: below) the current row.
  750. `C-c -'
  751. Insert a horizontal line below current row. With prefix arg, the
  752. line is created above the current line.
  753. `C-c ^'
  754. Sort the table lines in the region. Point and mark must be in the
  755. first and last line to be included, and must be in the column that
  756. should be used for sorting. The command prompts for numerical
  757. versus alphanumerical sorting.
  758. Regions
  759. .......
  760. `C-c C-x M-w'
  761. Copy a rectangular region from a table to a special clipboard.
  762. Point and mark determine edge fields of the rectangle. The
  763. process ignores horizontal separator lines.
  764. `C-c C-x C-w'
  765. Copy a rectangular region from a table to a special clipboard, and
  766. blank all fields in the rectangle. So this is the "cut" operation.
  767. `C-c C-x C-y'
  768. Paste a rectangular region into a table. The upper right corner
  769. ends up in the current field. All involved fields will be
  770. overwritten. If the rectangle does not fit into the present table,
  771. the table is enlarged as needed. The process ignores horizontal
  772. separator lines.
  773. `C-c C-q'
  774. Wrap several fields in a column like a paragraph. If there is an
  775. active region, and both point and mark are in the same column, the
  776. text in the column is wrapped to minimum width for the given
  777. number of lines. A prefix ARG may be used to change the number of
  778. desired lines. If there is no region, the current field is split
  779. at the cursor position and the text fragment to the right of the
  780. cursor is prepended to the field one line down. If there is no
  781. region, but you specify a prefix ARG, the current field is made
  782. blank, and the content is appended to the field above.
  783. Calculations
  784. ............
  785. `C-c ='
  786. Install a new formula for the current column and replace current
  787. field with the result of the formula.
  788. `C-u C-c ='
  789. Install a new formula for the current field, which must be a named
  790. field. Evaluate the formula and replace the field content with the
  791. result.
  792. `C-c ''
  793. Edit all formulas associated with the current table in a separate
  794. buffer.
  795. `C-c *'
  796. Recalculate the current row by applying the stored formulas from
  797. left to right. When called with a `C-u' prefix, recalculate the
  798. entire table, starting with the first non-header line (i.e. below
  799. the first horizontal separator line). For details, see *Note
  800. Table calculations::.
  801. `C-#'
  802. Rotate the calculation mark in first column through the states `',
  803. `#', `*', `!', `$'. For the meaning of these marks see *Note
  804. Advanced features::. When there is an active region, change all
  805. marks in the region.
  806. `C-c ?'
  807. Which table column is the cursor in? Displays number >0 in echo
  808. area.
  809. `C-c +'
  810. Sum the numbers in the current column, or in the rectangle defined
  811. by the active region. The result is shown in the echo area and can
  812. be inserted with `C-y'.
  813. `S-<RET>'
  814. When current field is empty, copy from first non-empty field above.
  815. When not empty, copy current field down to next row and move cursor
  816. along with it. Depending on the variable
  817. `org-table-copy-increment', integer field values will be
  818. incremented during copy. This key is also used by CUA-mode (*note
  819. Cooperation::).
  820. Miscellaneous
  821. .............
  822. `C-c `'
  823. Edit the current field in a separate window. This is useful for
  824. fields that are not fully visible (*note Narrow columns::). When
  825. called with a `C-u' prefix, just make the full field visible, so
  826. that it can be edited in place.
  827. `C-c <TAB>'
  828. This is an alias for `C-u C-c `' to make the current field fully
  829. visible.
  830. `M-x org-table-import'
  831. Import a file as a table. The table should be TAB- or whitespace
  832. separated. Useful, for example, to import an Excel table or data
  833. from a database, because these programs generally can write
  834. TAB-separated text files. This command works by inserting the
  835. file into the buffer and then converting the region to a table.
  836. Any prefix argument is passed on to the converter, which uses it
  837. to determine the separator.
  838. `M-x org-table-export'
  839. Export the table as a TAB-separated file. Useful for data
  840. exchange with, for example, Excel or database programs.
  841. If you don't like the automatic table editor because it gets in your
  842. way on lines which you would like to start with `|', you can turn it
  843. off with
  844. (setq org-enable-table-editor nil)
  845. Then the only table command that still works is `C-c C-c' to do a
  846. manual re-align.
  847. 
  848. File: org, Node: Narrow columns, Next: Table calculations, Prev: Built-in table editor, Up: Tables
  849. 3.2 Narrow columns
  850. ==================
  851. The width of columns is automatically determined by the table editor.
  852. Sometimes a single field or a few fields need to carry more text,
  853. leading to inconveniently wide columns. To limit(1) the width of a
  854. column, one field anywhere in the column may contain just the string
  855. `<N>' where `N' is an integer specifying the width of the column in
  856. characters. The next re-align will then set the width of this column
  857. to no more than this value.
  858. |---+------------------------------| |---+--------|
  859. | | | | | <6> |
  860. | 1 | one | | 1 | one |
  861. | 2 | two | ----\ | 2 | two |
  862. | 3 | This is a long chunk of text | ----/ | 3 | This=> |
  863. | 4 | four | | 4 | four |
  864. |---+------------------------------| |---+--------|
  865. Fields that are wider become clipped and end in the string `=>'. Note
  866. that the full text is still in the buffer, it is only invisible. To
  867. see the full text, hold the mouse over the field - a tooltip window
  868. will show the full content. To edit such a field, use the command `C-c
  869. `' (that is `C-c' followed by the backquote). This will open a new
  870. window with the full field. Edit it and finish with `C-c C-c'.
  871. When visiting a file containing a table with narrowed columns, the
  872. necessary character hiding has not yet happened, and the table needs to
  873. be aligned before it looks nice. Setting the option
  874. `org-startup-align-all-tables' will realign all tables in a file upon
  875. visiting, but also slow down startup. You can also set this option on
  876. a per-file basis with:
  877. #+STARTUP: align
  878. #+STARTUP: noalign
  879. ---------- Footnotes ----------
  880. (1) This feature does not work on XEmacs.
  881. 
  882. File: org, Node: Table calculations, Next: orgtbl-mode, Prev: Narrow columns, Up: Tables
  883. 3.3 Calculations in tables
  884. ==========================
  885. The table editor makes use of the Emacs `calc' package to implement
  886. spreadsheet-like capabilities. It can also evaluate Emacs Lisp forms to
  887. derive fields from other fields. Org-mode has two levels of complexity
  888. for table calculations. On the basic level, tables do only horizontal
  889. computations, so a field can be computed from other fields _in the same
  890. row_, and Org-mode assumes that there is only one formula for each
  891. column. This is very efficient to work with and enough for many tasks.
  892. On the complex level, columns and individual fields can be named for
  893. easier referencing in formulas, individual named fields can have their
  894. own formula associated with them, and recalculation can be automated.
  895. * Menu:
  896. * Formula syntax:: How to write a formula
  897. * Lisp formulas:: An alternative way to write formulas
  898. * Column formulas:: Formulas valid for all fields in a column
  899. * Advanced features:: Field names, parameters and automatic recalc
  900. * Named-field formulas:: Formulas valid in single fields
  901. * Editing/debugging formulas:: Changing a stored formula
  902. * Appetizer:: Taste the power of calc
  903. 
  904. File: org, Node: Formula syntax, Next: Lisp formulas, Prev: Table calculations, Up: Table calculations
  905. 3.3.1 Formula syntax
  906. --------------------
  907. A formula can be any algebraic expression understood by the Emacs
  908. `calc' package. Note that `calc' has the slightly non-standard
  909. convention that `/' has lower precedence than `*', so that `a/b*c' is
  910. interpreted as `a/(b*c)'. Before evaluation by `calc-eval' (*note
  911. calc-eval: (calc)Calling Calc from Your Programs.), variable
  912. substitution takes place:
  913. $ refers to the current field
  914. $3 refers to the field in column 3 of the current row
  915. $3..$7 a vector of the fields in columns 3-7 of current row
  916. $P1..$P3 vector of column range, using column names
  917. &2 second data field above the current, in same column
  918. &5-2 vector from fifth to second field above current
  919. &III-II vector of fields between 2nd and 3rd hline above
  920. &III vector of fields between third hline above and current field
  921. $name a named field, parameter or constant
  922. The range vectors can be directly fed into the calc vector functions
  923. like `vmean' and `vsum'.
  924. `$name' is interpreted as the name of a column, parameter or
  925. constant. Constants are defined globally through the variable
  926. `org-table-formula-constants'. If you have the `constants.el' package,
  927. it will also be used to resolve constants, including natural constants
  928. like `$h' for Planck's constant, and units like `$km' for kilometers.
  929. Column names and parameters can be specified in special table lines.
  930. These are described below, see *Note Advanced features::.
  931. A formula can contain an optional mode string after a semicolon.
  932. This string consists of flags to influence calc's modes(1) during
  933. execution, e.g. `p20' to switch the internal precision to 20 digits,
  934. `n3', `s3', `e2' or `f4' to switch to normal, scientific, engineering,
  935. or fixed display format, respectively, and `D', `R', `F', and `S' to
  936. turn on degrees, radians, fraction and symbolic modes, respectively.
  937. In addition, you may provide a `printf' format specifier to reformat
  938. the final result. A few examples:
  939. $1+$2 Sum of first and second field
  940. $1+$2;%.2f Same, format result to two decimals
  941. exp($2)+exp($1) Math functions can be used
  942. $;%.1f Reformat current cell to 1 decimal
  943. ($3-32)*5/9 Degrees F -> C conversion
  944. $c/$1/$cm Hz -> cm conversion, using `constants.el'
  945. tan($1);Dp3s1 Compute in degrees, precision 3, display SCI 1
  946. sin($1);Dp3%.1e Same, but use printf specifier for display
  947. vmean($2..$7) Compute column range mean, using vector function
  948. vsum(&III) Sum numbers from 3rd hline above, up to here
  949. taylor($3,x=7,2) taylor series of $3, at x=7, second degree
  950. ---------- Footnotes ----------
  951. (1) By default, Org-mode uses the standard calc modes (precision 12,
  952. angular units degrees, fraction and symbolic modes off). The display
  953. format, however, has been changed to `(float 5)' to keep tables compact.
  954. The default settings can be configured using the variable
  955. `org-calc-default-modes'.
  956. 
  957. File: org, Node: Lisp formulas, Next: Column formulas, Prev: Formula syntax, Up: Table calculations
  958. 3.3.2 Emacs Lisp forms as formulas
  959. ----------------------------------
  960. It is also possible to write a formula in Emacs lisp; this can be useful
  961. for string manipulation and control structures. If a formula starts
  962. with a single quote followed by an opening parenthesis, then it is
  963. evaluated as a lisp form. The evaluation should return either a string
  964. or a number. Just as with `calc' formulas, you can provide a format
  965. specifier after a semicolon. A few examples:
  966. swap the first two characters of the content of column 1
  967. '(concat (substring "$1" 1 2) (substring "$1" 0 1) (substring "$1" 2))
  968. Add columns 1 and 2, equivalent to the calc's `$1+$2'
  969. '(+ $1 $2)
  970. 
  971. File: org, Node: Column formulas, Next: Advanced features, Prev: Lisp formulas, Up: Table calculations
  972. 3.3.3 Column formulas
  973. ---------------------
  974. To apply a formula to a field, type it directly into the field,
  975. preceded by an equal sign, like `=$1+$2'. When you press <TAB> or
  976. <RET> or `C-c C-c' with the cursor still in the field, the formula will
  977. be stored as the formula for the current column, evaluated and the
  978. current field replaced with the result. If the field contains only
  979. `=', the previously stored formula for this column is used.
  980. For each column, Org-mode will remember the most recently used
  981. formula. The information is stored in a special line starting with
  982. `#+TBLFM' directly below the table. When adding/deleting/moving
  983. columns with the appropriate commands, the stored equations will be
  984. modified accordingly. When a column used in a calculation is removed,
  985. references to this column become invalid and will cause an error upon
  986. applying the equation.
  987. Instead of typing an equation into the field, you may also use the
  988. command `C-c ='. It prompts for a formula (with default taken from the
  989. `#+TBLFM:' line) and applies it to the current field. A numerical
  990. prefix (e.g. `C-5 C-c =') will apply it to that many consecutive fields
  991. in the current column.
  992. To recompute all the fields in a line, use the command `C-c *'. It
  993. re-applies all stored equations to the current row, from left to right.
  994. With a `C-u' prefix, this will be done to every line in the table, so
  995. use this command it you want to make sure the entire table is
  996. up-to-date. `C-u C-c C-c' is another way to update the entire table.
  997. Global updating does not touch the line(s) above the first horizontal
  998. separator line, assuming that this is the table header.
  999. 
  1000. File: org, Node: Advanced features, Next: Named-field formulas, Prev: Column formulas, Up: Table calculations
  1001. 3.3.4 Advanced features
  1002. -----------------------
  1003. If you want the recalculation of fields to happen automatically, or if
  1004. you want to be able to assign a formula to an individual field (instead
  1005. of an entire column) you need to reserve the first column of the table
  1006. for special marking characters. Here is an example of a table that
  1007. collects exam results of students and makes use of these features:
  1008. |---+---------+--------+--------+--------+-------+------|
  1009. | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
  1010. |---+---------+--------+--------+--------+-------+------|
  1011. | ! | | P1 | P2 | P3 | Tot | |
  1012. | # | Maximum | 10 | 15 | 25 | 50 | 10.0 |
  1013. | ^ | | m1 | m2 | m3 | mt | |
  1014. |---+---------+--------+--------+--------+-------+------|
  1015. | # | Peter | 10 | 8 | 23 | 41 | 8.2 |
  1016. | # | Sara | 6 | 14 | 19 | 39 | 7.8 |
  1017. | # | Sam | 2 | 4 | 3 | 9 | 1.8 |
  1018. |---+---------+--------+--------+--------+-------+------|
  1019. | | Average | | | | 29.7 | |
  1020. | ^ | | | | | at | |
  1021. | $ | max=50 | | | | | |
  1022. |---+---------+--------+--------+--------+-------+------|
  1023. #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(&II);%.1f
  1024. Important: Please note that for these special tables, recalculating the
  1025. table with `C-u C-c *' will only affect rows that are marked `#' or
  1026. `*', and named fields. The column formulas are not applied in rows
  1027. with empty first field.
  1028. The marking characters have the following meaning:
  1029. `!'
  1030. The fields in this line define names for the columns, so that you
  1031. may refer to a column as `$Tot' instead of `$6'.
  1032. `^'
  1033. This row defines names for the fields _above_ the row. With such
  1034. a definition, any formula in the table may use `$m1' to refer to
  1035. the value `10'. Also, named fields can have their own formula
  1036. associated with them.
  1037. `_'
  1038. Similar to `^', but defines names for the fields in the row
  1039. _below_.
  1040. `$'
  1041. Fields in this row can define _parameters_ for formulas. For
  1042. example, if a field in a `$' row contains `max=50', then formulas
  1043. in this table can refer to the value 50 using `$max'. Parameters
  1044. work exactly like constants, only that they can be defined on a
  1045. per-table basis. Changing a parameter and then recalculating the
  1046. table can be useful.
  1047. `#'
  1048. Fields in this row are automatically recalculated when pressing
  1049. <TAB> or <RET> or `S-<TAB>' in this row. Also, this row is
  1050. selected for a global recalculation with `C-u C-c *'. Unmarked
  1051. lines will be left alone by this command.
  1052. `*'
  1053. Selects this line for global recalculation with `C-u C-c *', but
  1054. not for automatic recalculation. Use this when automatic
  1055. recalculation slows down editing too much.
  1056. `'
  1057. Unmarked lines are exempt from recalculation with `C-u C-c *'.
  1058. All lines that should be recalculated should be marked with `#' or
  1059. `*'.
  1060. 
  1061. File: org, Node: Named-field formulas, Next: Editing/debugging formulas, Prev: Advanced features, Up: Table calculations
  1062. 3.3.5 Named-field formulas
  1063. --------------------------
  1064. A named field can have its own formula associated with it. In the
  1065. example above, this is used for the `at' field that contains the
  1066. average result of the students. To enter a formula for a named field,
  1067. just type it into the buffer, preceded by `:='. Or use `C-u C-c ='.
  1068. This equation will be stored below the table like `$name=...'. Any
  1069. recalculation in the table (even if only requested for the current
  1070. line) will also update all named field formulas.
  1071. 
  1072. File: org, Node: Editing/debugging formulas, Next: Appetizer, Prev: Named-field formulas, Up: Table calculations
  1073. 3.3.6 Editing and debugging formulas
  1074. ------------------------------------
  1075. To edit a column or field formula, use the commands `C-c =' and `C-u
  1076. C-c =', respectively. The currently active expression is then
  1077. presented as default in the minibuffer, where it may be edited.
  1078. Note that making a table field blank does not remove the formula
  1079. associated with the field - during the next recalculation the field
  1080. will be filled again. To remove a formula from a field, you have to
  1081. give an empty reply when prompted for the formula, or to edit the
  1082. `#+TBLFM' line.
  1083. You may edit the `#+TBLFM' directly and re-apply the changed
  1084. equations with `C-c C-c' in that line, or with the normal recalculation
  1085. commands in the table.
  1086. In particular for large tables with many formulas, it is convenient
  1087. to use the command `C-c '' to edit the formulas of the current table in
  1088. a separate buffer. That buffer will show the formulas one per line,
  1089. and you are free to edit, add and remove formulas. Press `C-c ?' on a
  1090. `$...' expression to get information about its interpretation.
  1091. Exiting the buffer with `C-c C-c' only stores the modified formulas
  1092. below the table. Exiting with `C-u C-c C-c' also applies them to the
  1093. entire table. `C-c C-q' exits without installing the changes.
  1094. When the evaluation of a formula leads to an error, the field content
  1095. becomes the string `#ERROR'. If you would like see what is going on
  1096. during variable substitution and calculation in order to find a bug,
  1097. turn on formula debugging in the menu and repeat the calculation, for
  1098. example by pressing `C-c = <RET>' in a field. Detailed information
  1099. will be displayed.
  1100. 
  1101. File: org, Node: Appetizer, Prev: Editing/debugging formulas, Up: Table calculations
  1102. 3.3.7 Appetizer
  1103. ---------------
  1104. Finally, just to whet your appetite on what can be done with the
  1105. fantastic `calc' package, here is a table that computes the Taylor
  1106. series for a couple of functions (homework: try that with Excel :-)
  1107. |---+-------------+---+-----+--------------------------------------|
  1108. | | Func | n | x | Result |
  1109. |---+-------------+---+-----+--------------------------------------|
  1110. | # | exp(x) | 1 | x | 1 + x |
  1111. | # | exp(x) | 2 | x | 1 + x + x^2 / 2 |
  1112. | # | exp(x) | 3 | x | 1 + x + x^2 / 2 + x^3 / 6 |
  1113. | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
  1114. | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2 |
  1115. | * | tan(x) | 3 | x | 0.0175 x + 1.77e-6 x^3 |
  1116. |---+-------------+---+-----+--------------------------------------|
  1117. #+TBLFM: $5=taylor($2,$4,$3);n3
  1118. 
  1119. File: org, Node: orgtbl-mode, Next: table.el, Prev: Table calculations, Up: Tables
  1120. 3.4 The Orgtbl minor mode
  1121. =========================
  1122. If you like the intuitive way the Org-mode table editor works, you
  1123. might also want to use it in other modes like text-mode or mail-mode.
  1124. The minor mode Orgtbl-mode makes this possible. You can always toggle
  1125. the mode with `M-x orgtbl-mode'. To turn it on by default, for example
  1126. in mail mode, use
  1127. (add-hook 'mail-mode-hook 'turn-on-orgtbl)
  1128. 
  1129. File: org, Node: table.el, Prev: orgtbl-mode, Up: Tables
  1130. 3.5 The `table.el' package
  1131. ==========================
  1132. Complex ASCII tables with automatic line wrapping, column- and
  1133. row-spanning, and alignment can be created using the Emacs table
  1134. package by Takaaki Ota (`http://sourceforge.net/projects/table', and
  1135. also part of Emacs 22). When <TAB> or `C-c C-c' is pressed in such a
  1136. table, Org-mode will call `table-recognize-table' and move the cursor
  1137. into the table. Inside a table, the keymap of Org-mode is inactive.
  1138. In order to execute Org-mode-related commands, leave the table.
  1139. `C-c C-c'
  1140. Recognize `table.el' table. Works when the cursor is in a
  1141. table.el table.
  1142. `C-c ~'
  1143. Insert a table.el table. If there is already a table at point,
  1144. this command converts it between the table.el format and the
  1145. Org-mode format. See the documentation string of the command
  1146. `org-convert-table' for the restrictions under which this is
  1147. possible.
  1148. 
  1149. File: org, Node: Hyperlinks, Next: TODO items, Prev: Tables, Up: Top
  1150. 4 Hyperlinks
  1151. ************
  1152. Just like HTML, Org-mode provides links inside a file, and external
  1153. links to other files, Usenet articles, emails, and much more.
  1154. * Menu:
  1155. * Link format:: How links in Org-mode are formatted
  1156. * Internal links:: Links to other places in the current file
  1157. * External links:: URL-like links to the world
  1158. * Handling links:: Creating, inserting and following
  1159. * Link abbreviations:: Shortcuts for writing complex links
  1160. * Search options:: Linking to a specific location
  1161. * Custom searches:: When the default search is not enough
  1162. * Remember:: Org-trees store quick notes
  1163. 
  1164. File: org, Node: Link format, Next: Internal links, Prev: Hyperlinks, Up: Hyperlinks
  1165. 4.1 Link format
  1166. ===============
  1167. Org-mode will recognize plain URL-like links and activate them as
  1168. clickable links. The general link format, however, looks like this:
  1169. [[link][description]] or alternatively [[link]]
  1170. Once a link in the buffer is complete (all brackets present),
  1171. Org-mode will change the display so that `description' is displayed
  1172. instead of `[[link][description]]' and `link' is displayed instead of
  1173. `[[link]]'. Links will be highlighted in the face `org-link', which by
  1174. default is an underlined face. You can directly edit the visible part
  1175. of a link. Note that this can be either the `link' part (if there is
  1176. no description) or the `description' part. To edit also the invisible
  1177. `link' part, use `C-c C-l' with the cursor on the link.
  1178. If you place the cursor at the beginning or just behind the end of
  1179. the displayed text and press <BACKSPACE>, you will remove the
  1180. (invisible) bracket at that location. This makes the link incomplete
  1181. and the internals are again displayed as plain text. Inserting the
  1182. missing bracket hides the link internals again. To show the internal
  1183. structure of all links, use the menu entry `Org->Hyperlinks->Literal
  1184. links'.
  1185. 
  1186. File: org, Node: Internal links, Next: External links, Prev: Link format, Up: Hyperlinks
  1187. 4.2 Internal links
  1188. ==================
  1189. If the link does not look like a URL, it is considered to be internal in
  1190. the current file. Links such as `[[My Target]]' or `[[My Target][Find
  1191. my target]]' lead to a text search in the current file. The link can
  1192. be followed with `C-c C-o' when the cursor is on the link, or with a
  1193. mouse click (*note Handling links::). The preferred match for such a
  1194. link is a dedicated target: the same string in double angular brackets.
  1195. Targets may be located anywhere; often it is convenient to put them
  1196. into a comment line. For example
  1197. # <<My Target>>
  1198. In HTML export (*note HTML export::), such targets will become named
  1199. anchors for direct access through `http' links(1).
  1200. If no dedicated target exists, Org-mode will search for the words in
  1201. the link. In the above example the search would be for `my target'.
  1202. Links starting with a star like `*My Target' restrict the search to
  1203. headlines. When searching, Org-mode will first try an exact match, but
  1204. then move on to more and more lenient searches. For example, the link
  1205. `[[*My Targets]]' will find any of the following:
  1206. ** My targets
  1207. ** TODO my targets are bright
  1208. ** my 20 targets are
  1209. To insert a link targeting a headline, in-buffer completion can be
  1210. used. Just type a star followed by a few optional letters into the
  1211. buffer and press `M-<TAB>'. All headlines in the current buffer will be
  1212. offered as completions. *Note Handling links::, for more commands
  1213. creating links.
  1214. Following a link pushes a mark onto Org-mode's own mark ring. You
  1215. can return to the previous position with `C-c &'. Using this command
  1216. several times in direct succession goes back to positions recorded
  1217. earlier.
  1218. * Menu:
  1219. * Radio targets:: Make targets trigger links in plain text.
  1220. * CamelCase links:: Activating CamelCase words as links
  1221. ---------- Footnotes ----------
  1222. (1) Note that text before the first headline will never be exported,
  1223. so the first such target must be after the first headline.
  1224. 
  1225. File: org, Node: Radio targets, Next: CamelCase links, Prev: Internal links, Up: Internal links
  1226. 4.2.1 Radio targets
  1227. -------------------
  1228. You can configure Org-mode to link any occurrences of certain target
  1229. names in normal text. So without explicitly creating a link, the text
  1230. connects to the target radioing its position. Radio targets are
  1231. enclosed by triple angular brackets. For example, a target `<<<My
  1232. Target>>>' causes each occurrence of `my target' in normal text to
  1233. become activated as a link. The Org-mode file is scanned automatically
  1234. for radio targets only when the file is first loaded into Emacs. To
  1235. update the target list during editing, press `C-c C-c' with the cursor
  1236. on or at a target.
  1237. 
  1238. File: org, Node: CamelCase links, Prev: Radio targets, Up: Internal links
  1239. 4.2.2 CamelCase words as links
  1240. ------------------------------
  1241. Org-mode also supports CamelCase words as links. This feature is not
  1242. turned on by default because of the inconsistencies this system suffers
  1243. from. It is also possible that this feature will disappear entirely in
  1244. a future version of Org-mode. To activate CamelCase words as links, you
  1245. need to customize the option `org-activate-links'. A CamelCase word
  1246. then leads to a text search such that `CamelCaseLink' is equivalent to
  1247. `[[camel case link]]'.
  1248. 
  1249. File: org, Node: External links, Next: Handling links, Prev: Internal links, Up: Hyperlinks
  1250. 4.3 External links
  1251. ==================
  1252. Org-mode supports links to files, websites, Usenet and email messages,
  1253. and BBDB database entries. External links are URL-like locators. They
  1254. start with a short identifying string followed by a colon. There can be
  1255. no space after the colon. The following list shows examples for each
  1256. link type.
  1257. http://www.astro.uva.nl/~dominik on the web
  1258. file:/home/dominik/images/jupiter.jpg file, absolute path
  1259. file:papers/last.pdf file, relative path
  1260. news:comp.emacs Usenet link
  1261. mailto:adent@galaxy.net Mail link
  1262. vm:folder VM folder link
  1263. vm:folder#id VM message link
  1264. vm://myself@some.where.org/folder#id VM on remote machine
  1265. wl:folder WANDERLUST folder link
  1266. wl:folder#id WANDERLUST message link
  1267. mhe:folder MH-E folder link
  1268. mhe:folder#id MH-E message link
  1269. rmail:folder RMAIL folder link
  1270. rmail:folder#id RMAIL message link
  1271. gnus:group GNUS group link
  1272. gnus:group#id GNUS article link
  1273. bbdb:Richard Stallman BBDB link
  1274. shell:ls *.org A shell command
  1275. elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
  1276. A link should be enclosed in double brackets and may contain a
  1277. descriptive text to be displayed instead of the url (*note Link
  1278. format::), for example:
  1279. [[http://www.gnu.org/software/emacs/][GNU Emacs]]
  1280. Org-mode also finds external links in the normal text and activates
  1281. them as links. If spaces must be part of the link (for example in
  1282. `bbdb:Richard Stallman'), or you need to remove ambiguities about the
  1283. end of the link, enclose them in angular brackets.
  1284. 
  1285. File: org, Node: Handling links, Next: Link abbreviations, Prev: External links, Up: Hyperlinks
  1286. 4.4 Handling links
  1287. ==================
  1288. Org-mode provides methods to create a link in the correct syntax, to
  1289. insert it into an org-mode file, and to follow the link.
  1290. `C-c l'
  1291. Store a link to the current location. This is a _global_ command
  1292. which can be used in any buffer to create a link. The link will be
  1293. stored for later insertion into an Org-mode buffer (see below).
  1294. For Org-mode files, if there is a `<<target>>' at the cursor, the
  1295. link points to the target. Otherwise it points to the current
  1296. headline. For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
  1297. the link will indicate the current article/entry. For W3 and W3M
  1298. buffers, the link goes to the current URL. For any other files,
  1299. the link will point to the file, with a search string (*note
  1300. Search options::) pointing to the contents of the current line.
  1301. If there is an active region, the selected words will form the
  1302. basis of the search string. If the automatically created link is
  1303. not working correctly or accurately enough, you can write custom
  1304. functions to select the search string and to do the search for
  1305. particular file types - see *Note Custom searches::. The key
  1306. binding `C-c l' is only a suggestion - see *Note Installation::.
  1307. `C-c C-l'
  1308. Insert a link. This prompts for a link to be inserted into the
  1309. buffer. You can just type a link, using text for an internal
  1310. link, or one of the link type prefixes mentioned in the examples
  1311. above. Through completion, all links stored during the current
  1312. session can be accessed(1). The link will be inserted into the
  1313. buffer, along with a descriptive text. Note that you don't have
  1314. to use this command to insert a link. Links in Org-mode are plain
  1315. text, and you can type or paste them straight into the buffer. By
  1316. using this command, the links are automatically enclosed in double
  1317. brackets, and you will be asked for the optional descriptive text.
  1318. If the link is a `file:' link and the linked file is located in
  1319. the same directory as the current file or a subdirectory of it, the
  1320. path of the file will be inserted relative to the current
  1321. directory.
  1322. `C-u C-c C-l'
  1323. When `C-c C-l' is called with a `C-u' prefix argument, a link to a
  1324. file will be inserted and you may use file name completion to
  1325. select the name of the file. The path to the file is inserted
  1326. relative to the directory of the current org file, if the linked
  1327. file is in the current directory or in a subdirectory of it, or if
  1328. the path is written relative to the current directory using `../'.
  1329. Otherwise an absolute path is used, if possible with `~/' for
  1330. your home directory. You can force an absolute path with two
  1331. `C-u' prefixes.
  1332. `C-c C-l with cursor on existing link'
  1333. When the cursor is on an existing link, `C-c C-l' allows you to
  1334. edit the link and description parts of the link.
  1335. `C-c C-o'
  1336. Open link at point. This will launch a web browser for URLs (using
  1337. `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
  1338. the corresponding links, and execute the command in a shell link.
  1339. When the cursor is on an internal link, this commands runs the
  1340. corresponding search. When the cursor is on a TAG list in a
  1341. headline, it creates the corresponding TAGS view. If the cursor
  1342. is on a time stamp, it compiles the agenda for that date.
  1343. Furthermore, it will visit text and remote files in `file:' links
  1344. with Emacs and select a suitable application for local non-text
  1345. files. Classification of files is based on file extension only.
  1346. See option `org-file-apps'. If you want to override the default
  1347. application and visit the file with Emacs, use a `C-u' prefix.
  1348. `mouse-2'
  1349. `mouse-1'
  1350. On links, `mouse-2' will open the link just as `C-c C-o' would.
  1351. Under Emacs 22, also `mouse-1' will follow a link.
  1352. `mouse-3'
  1353. Like `mouse-2', but force file links to be opened with Emacs, and
  1354. internal links to be displayed in another window(2).
  1355. `C-c %'
  1356. Push the current position onto the mark ring, to be able to return
  1357. easily. Commands following an internal link do this automatically.
  1358. `C-c &'
  1359. Jump back to a recorded position. A position is recorded by the
  1360. commands following internal links, and by `C-c %'. Using this
  1361. command several times in direct succession moves through a ring of
  1362. previously recorded positions.
  1363. ---------- Footnotes ----------
  1364. (1) After insertion of a stored link, the link will be removed from
  1365. the list of stored links. To keep it in the list later use, use a
  1366. triple `C-u' prefix to `C-c C-l', or configure the option
  1367. `org-keep-stored-link-after-insertion'.
  1368. (2) See the variable `org-display-internal-link-with-indirect-buffer'
  1369. 
  1370. File: org, Node: Link abbreviations, Next: Search options, Prev: Handling links, Up: Hyperlinks
  1371. 4.5 Link abbreviatons
  1372. =====================
  1373. Long URLs can be cumbersome to type, and often many similar links are
  1374. needed in a document. For this you can use link abbreviations. An
  1375. abbreviated link looks like this
  1376. [[linkword::tag][description]]
  1377. where the tag is optional. Such abbreviations are resolved according to
  1378. the information in the variable `org-link-abbrev-alist' that relates
  1379. the linkwords to replacement text. Here is an example:
  1380. (setq org-link-abbrev-alist
  1381. '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
  1382. ("google" . "http://www.google.com/search?q=")
  1383. ("ads" . "http://adsabs.harvard.edu/cgi-bin/
  1384. nph-abs_connect?author=%s&db_key=AST")))
  1385. If the replacement text contains the string `%s', it will be
  1386. replaced with the tag. Otherwise the tag will be appended to the string
  1387. in order to create the link. You may also specify a function that will
  1388. be called with the tag as the only argument to create the link.
  1389. With the above setting, you could link to a specific bug with
  1390. `[[bugzilla::129]]', search the web for OrgMode with
  1391. `[[google::OrgMode]]' and find out what the Org-mode author is doing
  1392. besides Emacs hacking with `[[ads::Dominik,C]]'.
  1393. If you need special abbreviations just for a single Org-mode buffer,
  1394. you can define them in the file with
  1395. #+LINK: bugzilla http://10.1.2.9/bugzilla/show_bug.cgi?id=
  1396. #+LINK: google http://www.google.com/search?q=%s
  1397. In-buffer completion *note Completion:: can be used after `[' to
  1398. complete link abbreviations.
  1399. 
  1400. File: org, Node: Search options, Next: Custom searches, Prev: Link abbreviations, Up: Hyperlinks
  1401. 4.6 Search options in file links
  1402. ================================
  1403. File links can contain additional information to make Emacs jump to a
  1404. particular location in the file when following a link. This can be a
  1405. line number or a search option after a double(1) colon. For example,
  1406. when the command `C-c l' creates a link (*note Handling links::) to a
  1407. file, it encodes the words in the current line as a search string that
  1408. can be used to find this line back later when following the link with
  1409. `C-c C-o'.
  1410. Here is the syntax of the different ways to attach a search to a file
  1411. link, together with an explanation:
  1412. [[file:~/code/main.c::255]]
  1413. [[file:~/xx.org::My Target]]
  1414. [[file:~/xx.org::*My Target]]
  1415. [[file:~/xx.org::/regexp/]]
  1416. `255'
  1417. Jump to line 255.
  1418. `My Target'
  1419. Search for a link target `<<My Target>>', or do a text search for
  1420. `my target', similar to the search in internal links, see *Note
  1421. Internal links::. In HTML export (*note HTML export::), such a
  1422. file link will become an HTML reference to the corresponding named
  1423. anchor in the linked file.
  1424. `*My Target'
  1425. In an Org-mode file, restrict search to headlines.
  1426. `/regexp/'
  1427. Do a regular expression search for `regexp'. This uses the Emacs
  1428. command `occur' to list all matches in a separate window. If the
  1429. target file is in Org-mode, `org-occur' is used to create a sparse
  1430. tree with the matches.
  1431. As a degenerate case, a file link with an empty file name can be used
  1432. to search the current file. For example, `<file:::find me>' does a
  1433. search for `find me' in the current file, just as `[[find me]]' would.
  1434. ---------- Footnotes ----------
  1435. (1) For backward compatibility, line numbers can also follow a
  1436. single colon.
  1437. 
  1438. File: org, Node: Custom searches, Next: Remember, Prev: Search options, Up: Hyperlinks
  1439. 4.7 Custom Searches
  1440. ===================
  1441. The default mechanism for creating search strings and for doing the
  1442. actual search related to a file link may not work correctly in all
  1443. cases. For example, BibTeX database files have many entries like
  1444. `year="1993"' which would not result in good search strings, because
  1445. the only unique identification for a BibTeX entry is the citation key.
  1446. If you come across such a problem, you can write custom functions to
  1447. set the right search string for a particular file type, and to do the
  1448. search for the string in the file. Using `add-hook', these functions
  1449. need to be added to the hook variables
  1450. `org-create-file-search-functions' and
  1451. `org-execute-file-search-functions'. See the docstring for these
  1452. variables for more information. Org-mode actually uses this mechanism
  1453. for BibTeX database files, and you can use the corresponding code as an
  1454. implementation example. Search for `BibTeX links' in the source file.
  1455. 
  1456. File: org, Node: Remember, Prev: Custom searches, Up: Hyperlinks
  1457. 4.8 Remember
  1458. ============
  1459. Another way to create org entries with links to other files is through
  1460. the _Remember_ package by John Wiegley. _Remember_ lets you store
  1461. quick notes with little interruption of your work flow. See
  1462. `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
  1463. information. The notes produced by _Remember_ can be stored in
  1464. different ways, and Org-mode files are a good target. Org-mode allows
  1465. you to file away notes either to a default file, or directly to the
  1466. correct location in your Org-mode outline tree. The following
  1467. customization will tell _Remember_ to use org files as target, and to
  1468. create annotations compatible with Org-mode links.
  1469. (setq org-directory "~/path/to/my/orgfiles/")
  1470. (setq org-default-notes-file "~/.notes")
  1471. (setq remember-annotation-functions '(org-remember-annotation))
  1472. (setq remember-handler-functions '(org-remember-handler))
  1473. (add-hook 'remember-mode-hook 'org-remember-apply-template)
  1474. In combination with Org-mode, you can use templates to generate
  1475. different types of remember notes. For example, if you would like to
  1476. use one template to create general TODO entries, and another one for
  1477. journal entries, you could use:
  1478. (setq org-remember-templates
  1479. '((?t "* TODO %?\n %i\n %a" "~/org/TODO.org")
  1480. (?j "* %U %?\n\n %i\n %a" "~/org/JOURNAL.org")))
  1481. In these entries, the character specifies how to select the template,
  1482. the first string specifies the template, and the (optional) second
  1483. string specifies a default file (overruling `org-default-notes-file')
  1484. as a target for this note.
  1485. When you call `M-x remember' to remember something, org will prompt
  1486. for a key to select the template and then prepare the buffer like
  1487. * TODO
  1488. <file:link to where you called remember>
  1489. or
  1490. * [2006-03-21 Tue 15:37]
  1491. <file:link to where you called remember>
  1492. See the variable `org-remember-templates' for more details.
  1493. When you are finished composing a note with remember, you have to
  1494. press `C-c C-c' to file the note away. The handler first prompts for a
  1495. target file - if you press <RET>, the value of `org-default-notes-file'
  1496. is used. Then the command offers the headings tree of the selected
  1497. file. You can either immediately press <RET> to get the note appended
  1498. to the file. Or you can use vertical cursor motion (<up> and <down>)
  1499. and visibility cycling (<TAB>) to find a better place. Pressing <RET>
  1500. or <left> or <right> leads to the following result.
  1501. Cursor Key Note gets inserted
  1502. position
  1503. buffer-start <RET> as level 2 heading at end of file
  1504. on headline <RET> as sublevel of the heading at cursor
  1505. <left> as same level, before current heading
  1506. <right> as same level, after current heading
  1507. not on <RET> at cursor position, level taken from context.
  1508. headline Or use prefix arg to specify level
  1509. manually.
  1510. So a fast way to store the note is to press `C-c C-c <RET> <RET>' to
  1511. append it to the default file. Even shorter would be `C-u C-c C-c',
  1512. which does the same without even showing the tree. But with little
  1513. extra effort, you can push it directly to the correct location.
  1514. Before inserting the text into a tree, the function ensures that the
  1515. text has a headline, i.e. a first line that starts with a `*'. If not,
  1516. a headline is constructed from the current date and some additional
  1517. data. If the variable `org-adapt-indentation' is non-nil, the entire
  1518. text is also indented so that it starts in the same column as the
  1519. headline (after the asterisks).
  1520. 
  1521. File: org, Node: TODO items, Next: Timestamps, Prev: Hyperlinks, Up: Top
  1522. 5 TODO items
  1523. ************
  1524. Org-mode does not maintain TODO lists as a separate document. TODO
  1525. items are an integral part of the notes file, because TODO items
  1526. usually come up while taking notes! With Org-mode, you simply mark any
  1527. entry in a tree as being a TODO item. In this way, the information is
  1528. not duplicated, and the entire context from which the item emerged is
  1529. always present when you check.
  1530. Of course, this technique causes TODO items to be scattered
  1531. throughout your file. Org-mode provides methods to give you an
  1532. overview over all things you have to do.
  1533. * Menu:
  1534. * TODO basics:: Marking and displaying TODO entries
  1535. * TODO extensions:: Workflow and assignments
  1536. * Priorities:: Some things are more important than others
  1537. * Breaking down tasks:: Splitting a task into managable pieces
  1538. * Checkboxes:: Tick-off lists
  1539. 
  1540. File: org, Node: TODO basics, Next: TODO extensions, Prev: TODO items, Up: TODO items
  1541. 5.1 Basic TODO functionality
  1542. ============================
  1543. Any headline can become a TODO item by starting it with the word TODO,
  1544. for example:
  1545. *** TODO Write letter to Sam Fortune
  1546. The most important commands to work with TODO entries are:
  1547. `C-c C-t'
  1548. Rotate the TODO state of the current item between
  1549. ,-> (unmarked) -> TODO -> DONE --.
  1550. '--------------------------------'
  1551. The same rotation can also be done "remotely" from the timeline and
  1552. agenda buffers with the `t' command key (*note Agenda commands::).
  1553. `S-<right>'
  1554. `S-<left>'
  1555. Select the following/preceding TODO state, similar to cycling.
  1556. Mostly useful if more than two TODO states are possible (*note
  1557. TODO extensions::).
  1558. `C-c C-v'
  1559. View TODO items in a _sparse tree_ (*note Sparse trees::). Folds
  1560. the entire buffer, but shows all TODO items and the headings
  1561. hierarchy above them. With prefix arg, show also the DONE
  1562. entries. With numerical prefix N, show the tree for the Nth
  1563. keyword in the variable `org-todo-keywords'.
  1564. `C-c a t'
  1565. Show the global TODO list. This collects the TODO items from all
  1566. agenda files (*note Agenda views::) into a single buffer. The
  1567. buffer is in `agenda-mode', so there are commands to examine and
  1568. manipulate the TODO entries directly from that buffer (*note
  1569. Agenda commands::). *Note Global TODO list::, for more
  1570. information.
  1571. 
  1572. File: org, Node: TODO extensions, Next: Priorities, Prev: TODO basics, Up: TODO items
  1573. 5.2 Extended use of TODO keywords
  1574. =================================
  1575. The default implementation of TODO entries is just two states: TODO and
  1576. DONE. You can, however, use the TODO feature for more complicated
  1577. things by configuring the variables `org-todo-keywords' and
  1578. `org-todo-interpretation'. Using special setup, you can even use TODO
  1579. keywords in different ways in different org files.
  1580. Note that tags are another way to classify headlines in general and
  1581. TODO items in particular (*note Tags::).
  1582. * Menu:
  1583. * Workflow states:: From TODO to DONE in steps
  1584. * TODO types:: I do this, Fred the rest
  1585. * Per file keywords:: Different files, different requirements
  1586. 
  1587. File: org, Node: Workflow states, Next: TODO types, Prev: TODO extensions, Up: TODO extensions
  1588. 5.2.1 TODO keywords as workflow states
  1589. --------------------------------------
  1590. You can use TODO keywords to indicate different states in the process
  1591. of working on an item, for example:
  1592. (setq org-todo-keywords '("TODO" "FEEDBACK" "VERIFY" "DONE")
  1593. org-todo-interpretation 'sequence)
  1594. Changing these variables only becomes effective in a new Emacs
  1595. session. With this setup, the command `C-c C-t' will cycle an entry
  1596. from TODO to FEEDBACK, then to VERIFY, and finally to DONE. You may
  1597. also use a prefix argument to quickly select a specific state. For
  1598. example `C-3 C-c C-t' will change the state immediately to VERIFY. If
  1599. you define many keywords, you can use in-buffer completion (see *Note
  1600. Completion::) to insert these words into the buffer.
  1601. 
  1602. File: org, Node: TODO types, Next: Per file keywords, Prev: Workflow states, Up: TODO extensions
  1603. 5.2.2 TODO keywords as types
  1604. ----------------------------
  1605. The second possibility is to use TODO keywords to indicate different
  1606. types of action items. For example, you might want to indicate that
  1607. items are for "work" or "home". If you are into David Allen's _Getting
  1608. Things DONE_, you might want to use todo types `NEXTACTION', `WAITING',
  1609. `MAYBE'. Or, when you work with several people on a single project,
  1610. you might want to assign action items directly to persons, by using
  1611. their names as TODO keywords. This would be set up like this:
  1612. (setq org-todo-keywords '("Fred" "Sara" "Lucy" "Mike" "DONE")
  1613. org-todo-interpretation 'type)
  1614. In this case, different keywords do not indicate a sequence, but
  1615. rather different types. So it is normally not useful to change from
  1616. one type to another. Therefore, in this case the behavior of the
  1617. command `C-c C-t' is changed slightly(1). When used several times in
  1618. succession, it will still cycle through all names. But when you return
  1619. to the item after some time and execute `C-c C-t' again, it will switch
  1620. from each name directly to DONE. Use prefix arguments or completion to
  1621. quickly select a specific name. You can also review the items of a
  1622. specific TODO type in a sparse tree by using a numeric prefix to `C-c
  1623. C-v'. For example, to see all things Lucy has to do, you would use
  1624. `C-3 C-c C-v'. To collect Lucy's items from all agenda files into a
  1625. single buffer, you would use the prefix arg as well when creating the
  1626. global todo list: `C-3 C-c t'.
  1627. ---------- Footnotes ----------
  1628. (1) This is also true for the `t' command in the timeline and agenda
  1629. buffers.
  1630. 
  1631. File: org, Node: Per file keywords, Prev: TODO types, Up: TODO extensions
  1632. 5.2.3 Setting up TODO keywords for individual files
  1633. ---------------------------------------------------
  1634. It can be very useful to use different aspects of the TODO mechanism in
  1635. different files, which is not possible with the global settings
  1636. described above. For file-local settings, you need to add special
  1637. lines to the file which set the keywords and interpretation for that
  1638. file only. For example, to set one of the two examples discussed
  1639. above, you need one of the following lines, starting in column zero
  1640. anywhere in the file:
  1641. #+SEQ_TODO: TODO FEEDBACK VERIFY DONE
  1642. #+TYP_TODO: Fred Sara Lucy Mike DONE
  1643. To make sure you are using the correct keyword, type `#+' into the
  1644. buffer and then use `M-<TAB>' completion.
  1645. Remember that the last keyword must always mean that the item is DONE
  1646. (although you may use a different word). Also note that in each file,
  1647. only one of the two aspects of TODO keywords can be used. After
  1648. changing one of these lines, use `C-c C-c' with the cursor still in the
  1649. line to make the changes known to Org-mode(1).
  1650. If you want to use very many keywords, for example when working with
  1651. a large group of people, you may split the names over several lines:
  1652. #+TYP_TODO: Fred Sara Lucy Mike
  1653. #+TYP_TODO: Luis George Jules Jessica
  1654. #+TYP_TODO: Kim Arnold Peter
  1655. #+TYP_TODO: DONE
  1656. ---------- Footnotes ----------
  1657. (1) Org-mode parses these lines only when Org-mode is activated
  1658. after visiting a file. `C-c C-c' with the cursor in a line starting
  1659. with `#+' is simply restarting Org-mode for the current buffer.
  1660. 
  1661. File: org, Node: Priorities, Next: Breaking down tasks, Prev: TODO extensions, Up: TODO items
  1662. 5.3 Priorities
  1663. ==============
  1664. If you use Org-mode extensively to organize your work, you may end up
  1665. with a number of TODO entries so large that you'd like to prioritize
  1666. them. This can be done by placing a _priority cookie_ into the
  1667. headline, like this
  1668. *** TODO [#A] Write letter to Sam Fortune
  1669. With its standard setup, Org-mode supports priorities `A', `B', and
  1670. `C'. `A' is the highest priority. An entry without a cookie is
  1671. treated as priority `B'. Priorities make a difference only in the
  1672. agenda (*note Weekly/Daily agenda::).
  1673. `C-c ,'
  1674. Set the priority of the current headline. The command prompts for
  1675. a priority character `A', `B' or `C'. When you press <SPC>
  1676. instead, the priority cookie is removed from the headline. The
  1677. priorities can also be changed "remotely" from the timeline and
  1678. agenda buffer with the `,' command (*note Agenda commands::).
  1679. `S-<up>'
  1680. `S-<down>'
  1681. Increase/decrease priority of current headline. Note that these
  1682. keys are also used to modify time stamps (*note Creating
  1683. timestamps::). Furthermore, these keys are also used by CUA-mode
  1684. (*note Conflicts::).
  1685. 
  1686. File: org, Node: Breaking down tasks, Next: Checkboxes, Prev: Priorities, Up: TODO items
  1687. 5.4 Breaking tasks down into subtasks
  1688. =====================================
  1689. It is often advisable to break down large tasks into smaller, managable
  1690. subtasks. You can do this by creating an outline tree below a TODO
  1691. item, with detailed subtasks on the tree(1). Another possibility is
  1692. the use of checkboxes to ideantify (a hierarchy of) a large number of
  1693. subtasks (*note Checkboxes::).
  1694. ---------- Footnotes ----------
  1695. (1) To keep subtasks out of the global TODO list, see the
  1696. `org-agenda-todo-list-sublevels'.
  1697. 
  1698. File: org, Node: Checkboxes, Prev: Breaking down tasks, Up: TODO items
  1699. 5.5 Checkboxes
  1700. ==============
  1701. Every item in a plain list (*note Plain lists::) can be made a checkbox
  1702. by starting it with the string `[ ]'. This feature is similar to TODO
  1703. items (*note TODO items::), but more lightweight. Checkboxes are not
  1704. included into the global TODO list, so they are often great to split a
  1705. task into a number of simple steps. Or you can use them in a shopping
  1706. list. To toggle a checkbox, use `C-c C-c', or try Piotr Zielinski's
  1707. `org-mouse.el'. Here is an example of a checkbox list.
  1708. * TODO Organize party [3/6]
  1709. - call people [1/3]
  1710. - [ ] Peter
  1711. - [X] Sarah
  1712. - [ ] Sam
  1713. - [X] order food
  1714. - [ ] think about what music to play
  1715. - [X] talk to the neighbors
  1716. The `[3/6]' and `[1/3]' in the first and second line are cookies
  1717. indicating how many checkboxes are present in this entry, and how many
  1718. of them have been checked off. This can give you an idea on how many
  1719. checkboxes remain, even without opening a folded entry. The cookies
  1720. can be placed into a headline or into (the first line of) a plain list
  1721. item. Each cookie covers all checkboxes structurally below that
  1722. headline/item. You have to insert the cookie yourself by typing either
  1723. `[/]' or `[%]'. In the first case you get an `n out of m' result, in
  1724. the second case you get information about the percentage of checkboxes
  1725. checked (in the above example, this would be `[50%]' and `[33%],
  1726. respectively').
  1727. The following commands work with checkboxes:
  1728. `C-c C-c'
  1729. Toggle checkbox at point.
  1730. `C-c C-x C-b'
  1731. Toggle checkbox at point.
  1732. - If there is an active region, toggle the first checkbox in
  1733. the region and set all remaining boxes to the same status as
  1734. the first. If you want to toggle all boxes in the region
  1735. independently, use a prefix argument.
  1736. - If the cursor is in a headline, toggle checkboxes in the
  1737. region between this headline and the next (so _not_ the
  1738. entire subtree).
  1739. - If no active region, just toggle the checkbox at point.
  1740. `M-S-<RET>'
  1741. Insert a new item with a checkbox. This works only if the cursor
  1742. is already in a plain list item (*note Plain lists::).
  1743. `C-c #'
  1744. Update the checkbox statistics in the current outline entry. When
  1745. called with a `C-u' prefix, update the entire file. Checkbox
  1746. statistic cookies are updated automatically if you toggle
  1747. checkboxes with `C-c C-c' and make new ones with `M-S-<RET>'. If
  1748. you delete boxes or add/change them by hand, use this command to
  1749. get things back into synch. Or simply toggle any checkbox twice
  1750. with `C-c C-c'.
  1751. 
  1752. File: org, Node: Timestamps, Next: Tags, Prev: TODO items, Up: Top
  1753. 6 Timestamps
  1754. ************
  1755. Items can be labeled with timestamps to make them useful for project
  1756. planning.
  1757. * Menu:
  1758. * Time stamps:: Assigning a time to a tree entry
  1759. * Creating timestamps:: Commands which insert timestamps
  1760. * Custom time format:: If you cannot work with the ISO format
  1761. * Progress logging:: Documenting when what work was done.
  1762. 
  1763. File: org, Node: Time stamps, Next: Creating timestamps, Prev: Timestamps, Up: Timestamps
  1764. 6.1 Time stamps, deadlines and scheduling
  1765. =========================================
  1766. A time stamp is a specification of a date (possibly with time) in a
  1767. special format, either `<2003-09-16 Tue>' or `<2003-09-16 Tue
  1768. 09:39>'(1). A time stamp can appear anywhere in the headline or body
  1769. of an org-tree entry. Its presence allows entries to be shown on
  1770. specific dates in the agenda (*note Weekly/Daily agenda::). We
  1771. distinguish:
  1772. PLAIN TIME STAMP
  1773. A simple time stamp just assigns a date/time to an item. This is
  1774. just like writing down an appointment in a paper agenda, or like
  1775. writing down an event in a diary, when you want to take note of
  1776. when something happened. In the timeline and agenda displays, the
  1777. headline of an entry associated with a plain time stamp will be
  1778. shown exactly on that date.
  1779. * Meet Peter at the movies <2006-11-01 Wed 19:15>
  1780. INACTIVE TIME STAMP
  1781. Just like a plain time stamp, but with square brackets instead of
  1782. angular ones. These time stamps are inactive in the sense that
  1783. thay do _not_ trigger an entry to show up in the agenda.
  1784. * Gillian comes late for the fifth time [2006-11-01 Wed]
  1785. TIME STAMP RANGE
  1786. Two time stamps connected by `--' denote a time range. The
  1787. headline will be shown on the first and last day of the range, and
  1788. on any dates that are displayed and fall in the range. Here is an
  1789. example:
  1790. ** Meeting in Amsterdam
  1791. <2004-08-23 Mon>--<2004-08-26 Thu>
  1792. TIME STAMP WITH SCHEDULED KEYWORD
  1793. If a time stamp is preceded by the word `SCHEDULED:', it means you
  1794. are planning to start working on that task on the given date. So
  1795. this is not about recording an event, but about planning your
  1796. work. The headline will be listed under the given date. In
  1797. addition, a reminder that the scheduled date has passed will be
  1798. present in the compilation for _today_, until the entry is marked
  1799. DONE. I.e., the task will automatically be forwarded until
  1800. completed.
  1801. *** TODO Call Trillian for a date on New Years Eve.
  1802. SCHEDULED: <2004-12-25 Sat>
  1803. TIME STAMP WITH DEADLINE KEYWORD
  1804. If a time stamp is preceded by the word `DEADLINE:', the task
  1805. (most likely a TODO item) is supposed to be finished on that date,
  1806. and it will be listed then. In addition, the compilation for
  1807. _today_ will carry a warning about the approaching or missed
  1808. deadline, starting `org-deadline-warning-days' before the due
  1809. date, and continuing until the entry is marked DONE. An example:
  1810. *** TODO write article about the Earth for the Guide
  1811. The editor in charge is <bbdb:Ford Prefect>
  1812. DEADLINE: <2004-02-29 Sun>
  1813. TIME STAMP WITH CLOSED KEYWORD
  1814. When `org-log-done' is non-nil, Org-mode will automatically insert
  1815. a special time stamp each time a TODO entry is marked done (*note
  1816. Progress logging::). This time stamp is enclosed in square
  1817. brackets instead of angular brackets.
  1818. TIME RANGE WITH CLOCK KEYWORD
  1819. When using the clock to time the work that is being done on
  1820. specific items, time ranges preceded by the CLOCK keyword are
  1821. inserted automatically into the file. The time stamps are
  1822. enclosed in square brackets instead of angular brackets. *Note
  1823. Clocking work time::.
  1824. ---------- Footnotes ----------
  1825. (1) This is the standard ISO date/time format. If you cannot get
  1826. used to these, see *Note Custom time format::
  1827. 
  1828. File: org, Node: Creating timestamps, Next: Custom time format, Prev: Time stamps, Up: Timestamps
  1829. 6.2 Creating timestamps
  1830. =======================
  1831. For Org-mode to recognize time stamps, they need to be in the specific
  1832. format. All commands listed below produce time stamps in the correct
  1833. format.
  1834. `C-c .'
  1835. Prompt for a date and insert a corresponding time stamp. When the
  1836. cursor is at a previously used time stamp, it is updated to NOW.
  1837. When this command is used twice in succession, a time range is
  1838. inserted.
  1839. `C-u C-c .'
  1840. Like `C-c .', but use the alternative format which contains date
  1841. and time. The default time can be rounded to multiples of 5
  1842. minutes, see the option `org-time-stamp-rounding-minutes'.
  1843. `C-c !'
  1844. Like `C-c .', but insert an inactive time stamp not triggering the
  1845. agenda.
  1846. `C-c <'
  1847. Insert a time stamp corresponding to the cursor date in the
  1848. Calendar.
  1849. `C-c >'
  1850. Access the Emacs calendar for the current date. If there is a
  1851. timestamp in the current line, goto the corresponding date instead.
  1852. `C-c C-o'
  1853. Access the agenda for the date given by the time stamp or -range at
  1854. point (*note Weekly/Daily agenda::).
  1855. `C-c C-d'
  1856. Insert `DEADLINE' keyword along with a stamp. The insertion will
  1857. happen in the line directly following the headline.
  1858. `C-c C-w'
  1859. Create a sparse tree with all deadlines that are either past-due,
  1860. or which will become due within `org-deadline-warning-days'. With
  1861. `C-u' prefix, show all deadlines in the file. With a numeric
  1862. prefix, check that many days. For example, `C-1 C-c C-w' shows
  1863. all deadlines due tomorrow.
  1864. `C-c C-s'
  1865. Insert `SCHEDULED' keyword along with a stamp. The insertion will
  1866. happen in the line directly following the headline. Any CLOSED
  1867. timestamp will be removed.
  1868. `S-<left>'
  1869. `S-<right>'
  1870. Change date at cursor by one day. These key bindings conflict with
  1871. CUA-mode (*note Conflicts::).
  1872. `S-<up>'
  1873. `S-<down>'
  1874. Change the item under the cursor in a timestamp. The cursor can
  1875. be on a year, month, day, hour or minute. Note that if the cursor
  1876. is in a headline and not at a time stamp, these same keys modify
  1877. the priority of an item. (*note Priorities::). The key bindings
  1878. also conflict with CUA-mode (*note Conflicts::).
  1879. `C-c C-y'
  1880. Evaluate a time range by computing the difference between start and
  1881. end. With prefix arg, insert result after the time range (in a
  1882. table: into the following column).
  1883. * Menu:
  1884. * The date/time prompt:: How org-mode helps you entring date and time
  1885. 
  1886. File: org, Node: The date/time prompt, Prev: Creating timestamps, Up: Creating timestamps
  1887. 6.2.1 The date/time prompt
  1888. --------------------------
  1889. When Org-mode prompts for a date/time, the prompt suggests to enter an
  1890. ISO date. But it will in fact accept any string containing some date
  1891. and/or time information. You can, for example, use `C-y' to paste a
  1892. (possibly multi-line) string copied from an email message. Org-mode
  1893. will find whatever information is in there and will replace anything not
  1894. specified with the current date and time. For example:
  1895. 3-2-5 --> 2003-02-05
  1896. feb 15 --> currentyear-02-15
  1897. sep 12 9 --> 2009-09-12
  1898. 12:45 --> today 12:45
  1899. 22 sept 0:34 --> currentyear-09-22 0:34
  1900. 12 --> currentyear-currentmonth-12
  1901. Fri --> nearest Friday (today or later)
  1902. The function understands English month and weekday abbreviations. If
  1903. you want to use unabbreviated names and/or other languages, configure
  1904. the variables `parse-time-months' and `parse-time-weekdays'.
  1905. Parallel to the minibuffer prompt, a calendar is popped up(1). You
  1906. can control the calendar fully from the minibuffer:
  1907. `<'
  1908. Scroll calendar backwards by one month.
  1909. `>'
  1910. Scroll calendar forwards by one month.
  1911. `mouse-1'
  1912. Select date by clicking on it.
  1913. `S-<right>'
  1914. One day forward.
  1915. `S-<left>'
  1916. One day back.
  1917. `S-<down>'
  1918. One week forward.
  1919. `S-<up>'
  1920. One week back.
  1921. `M-S-<right>'
  1922. One month forward.
  1923. `M-S-<left>'
  1924. One month back.
  1925. `<RET>'
  1926. Choose date in calendar (only if nothing was typed into
  1927. minibuffer).
  1928. ---------- Footnotes ----------
  1929. (1) If you don't need/want the calendar, configure the variable
  1930. `org-popup-calendar-for-date-prompt'.
  1931. 
  1932. File: org, Node: Custom time format, Next: Progress logging, Prev: Creating timestamps, Up: Timestamps
  1933. 6.3 Custom time format
  1934. ======================
  1935. Org-mode uses the standard ISO notation for dates and times as it is
  1936. defined in ISO 8601. If you cannot get used to this and require another
  1937. representation of date and time to keep you happy, you can get it by
  1938. customizing the variables `org-display-custom-times' and
  1939. `org-time-stamp-custom-formats'.
  1940. `C-c C-x C-t'
  1941. Toggle the display of custom formats for dates and times.
  1942. Org-mode needs the default format for scanning, so the custom date/time
  1943. format does not _replace_ the default format - instead it is put _over_
  1944. the default format using text properties. This has the following
  1945. consequences:
  1946. * You cannot place the cursor onto a time stamp anymore, only before
  1947. or after.
  1948. * The `S-<up>/<down>' keys can no longer be used to adjust each
  1949. component of a time stamp. If the cursor is at the beginning of
  1950. the stamp, `S-<up>/<down>' will change the stamp by one day, just
  1951. like `S-<left>/<right>'. At the end of the stamp, the time will
  1952. be changed by one minute.
  1953. * When you delete a time stamp character-by-character, it will only
  1954. disappear from the buffer after _all_ (invisible) characters
  1955. belonging to the ISO timestamp have been removed.
  1956. * If the custom time stamp format is longer than the default and you
  1957. are using dates in tables, table alignment will be messed up. If
  1958. the custom format is shorter, things do work as expected.
  1959. 
  1960. File: org, Node: Progress logging, Prev: Custom time format, Up: Timestamps
  1961. 6.4 Progress Logging
  1962. ====================
  1963. Org-mode can automatically record a time stamp when you mark a TODO item
  1964. as DONE. You can also measure precisely the time you spent on specific
  1965. items in a project by starting and stopping a clock when you start and
  1966. stop working on an aspect of a project.
  1967. * Menu:
  1968. * Closing items:: When was this entry marked DONE?
  1969. * Clocking work time:: When exactly did you work on this item?
  1970. 
  1971. File: org, Node: Closing items, Next: Clocking work time, Prev: Progress logging, Up: Progress logging
  1972. 6.4.1 Closing items
  1973. -------------------
  1974. If you want to keep track of _when_ a certain TODO item was finished,
  1975. turn on logging with
  1976. (setq org-log-done t)
  1977. Then each time you turn a TODO entry into DONE using either `C-c C-t'
  1978. in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
  1979. [timestamp]' will be inserted just after the headline. If you turn the
  1980. entry back into a TODO item again through further state cycling, that
  1981. line will be removed again. In the timeline (*note Timeline::) and in
  1982. the agenda (*note Weekly/Daily agenda::), you can then use the `l' key
  1983. to display the TODO items closed on each day, giving you an overview of
  1984. what has been done on a day. See the variable `org-log-done' for the
  1985. possibility to record an additional note together with a timestamp.
  1986. 
  1987. File: org, Node: Clocking work time, Prev: Closing items, Up: Progress logging
  1988. 6.4.2 Clocking work time
  1989. ------------------------
  1990. Org-mode allows you to clock the time you spent on specific tasks in a
  1991. project. When you start working on an item, you can start the clock.
  1992. When you stop working on that task, or when you mark the task done, the
  1993. clock is stopped and the corresponding time interval is recorded. It
  1994. also computes the total time spent on each subtree of a project.
  1995. `C-c C-x C-i'
  1996. Start the clock on the current item (clock-in). This inserts the
  1997. CLOCK keyword together with a timestamp.
  1998. `C-c C-x C-o'
  1999. Stop the clock (clock-out). The inserts another timestamp at the
  2000. same location where the clock was last started. It also directly
  2001. computes the resulting time in inserts it after the time range as
  2002. `=> HH:MM'. See the variable `org-log-done' for the possibility to
  2003. record an additional note together with a the clock-out time stamp.
  2004. `C-c C-y'
  2005. Recompute the time interval after changing one of the time stamps.
  2006. This is only necessary if you edit the time stamps directly. If
  2007. you change them with `S-<cursor>' keys, the update is automatic.
  2008. `C-c C-t'
  2009. Changing the TODO state of an item to DONE automatically stops the
  2010. clock if it is running in this same item.
  2011. `C-c C-x C-x'
  2012. Cancel the current clock. This is useful if a clock was started by
  2013. mistake, or if you ended up working on something else.
  2014. `C-c C-x C-d'
  2015. Display time summaries for each subtree in the current buffer.
  2016. This puts overlays at the end of each headline, showing the total
  2017. time recorded under that heading, including the time of any
  2018. subheadings. You can use visibility cycling to study the tree, but
  2019. the overlays disappear when you change the buffer (see variable
  2020. `org-remove-highlights-with-change') or press `C-c C-c'.
  2021. `C-c C-x C-r'
  2022. Insert a dynamic block (*note Dynamic blocks::) containing a clock
  2023. report as an org-mode table into the current file.
  2024. #+BEGIN: clocktable :maxlevel 2 :emphasize nil
  2025. #+END: clocktable
  2026. If such a block already exists, its content is replaced by the new
  2027. table. The `BEGIN' line can specify options:
  2028. :maxlevels Maximum level depth to which times are listed in the table.
  2029. :emphasize When `t', emphasize level one and level two items
  2030. :block The time block to consider. This block is specified relative
  2031. to the current time and may be any of these keywords:
  2032. `today', `yesterday', `thisweek', `lastweek',
  2033. `thismonth', `lastmonth', `thisyear', or `lastyear'.
  2034. :tstart A time string specifying when to start considering times
  2035. :tend A time string specifying when to stop considering times
  2036. So to get a clock summary for the current day, you could write
  2037. #+BEGIN: clocktable :maxlevel 2 :block today
  2038. #+END: clocktable
  2039. and to use a specific time range you could write(1)
  2040. #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
  2041. :tend "<2006-08-10 Thu 12:00>"
  2042. #+END: clocktable
  2043. `C-u C-c C-x C-u'
  2044. Update all dynamic blocks (*note Dynamic blocks::). This is
  2045. useful if you have several clocktable blocks in a buffer.
  2046. The `l' key may be used in the timeline (*note Timeline::) and in
  2047. the agenda (*note Weekly/Daily agenda::) to show which tasks have been
  2048. worked on or closed during a day.
  2049. ---------- Footnotes ----------
  2050. (1) Note that all parameters must be specified in a single line -
  2051. the line is broken here only to fit it onto the manual.
  2052. 
  2053. File: org, Node: Tags, Next: Agenda views, Prev: Timestamps, Up: Top
  2054. 7 Tags
  2055. ******
  2056. If you wish to implement a system of labels and contexts for
  2057. cross-correlating information, an excellent way is to assign tags to
  2058. headlines. Org-mode has extensive support for using tags.
  2059. Every headline can contain a list of tags, at the end of the
  2060. headline. Tags are normal words containing letters, numbers, `_', and
  2061. `@'. Tags must be preceded and followed by a single colon; like
  2062. `:WORK:'. Several tags can be specified like `:WORK:URGENT:'.
  2063. * Menu:
  2064. * Tag inheritance:: Tags use the tree structure of the outline
  2065. * Setting tags:: How to assign tags to a headline
  2066. * Tag searches:: Searching for combinations of tags
  2067. 
  2068. File: org, Node: Tag inheritance, Next: Setting tags, Prev: Tags, Up: Tags
  2069. 7.1 Tag inheritance
  2070. ===================
  2071. Tags make use of the hierarchical structure of outline trees. If a
  2072. heading has a certain tag, all subheadings will inherit the tag as
  2073. well. For example, in the list
  2074. * Meeting with the French group :WORK:
  2075. ** Summary by Frank :BOSS:NOTES:
  2076. *** TODO Prepare slides for him :ACTION:
  2077. the final heading will have the tags `:WORK:', `:BOSS:', `:NOTES:', and
  2078. `:ACTION:'. When executing tag searches and Org-mode finds that a
  2079. certain headline matches the search criterion, it will not check any
  2080. sublevel headline, assuming that these likely also match, and that the
  2081. list of matches can become very long. This may not be what you want,
  2082. however, and you can influence inheritance and searching using the
  2083. variables `org-use-tag-inheritance' and `org-tags-match-list-sublevels'.
  2084. 
  2085. File: org, Node: Setting tags, Next: Tag searches, Prev: Tag inheritance, Up: Tags
  2086. 7.2 Setting tags
  2087. ================
  2088. Tags can simply be typed into the buffer at the end of a headline.
  2089. After a colon, `M-<TAB>' offers completion on tags. There is also a
  2090. special command for inserting tags:
  2091. `C-c C-c'
  2092. Enter new tags for the current headline. Org-mode will either
  2093. offer completion or a special single-key interface for setting
  2094. tags, see below. After pressing <RET>, the tags will be inserted
  2095. and aligned to `org-tags-column'. When called with a `C-u'
  2096. prefix, all tags in the current buffer will be aligned to that
  2097. column, just to make things look nice. TAGS are automatically
  2098. realigned after promotion, demotion, and TODO state changes (*note
  2099. TODO basics::).
  2100. Org will support tag insertion based on a _list of tags_. By
  2101. default this list is constructed dynamically, containing all tags
  2102. currently used in the buffer. You may also globally specify a hard list
  2103. of tags with the variable `org-tag-alist'. Finally you can set the
  2104. default tags for a given file with lines like
  2105. #+TAGS: @WORK @HOME @TENNISCLUB
  2106. #+TAGS: Laptop Car PC Sailboat
  2107. If you have globally defined your preferred set of tags using the
  2108. variable `org-tag-alist', but would like to use a dynamic tag list in a
  2109. specific file: Just add an empty TAGS option line to that file:
  2110. #+TAGS:
  2111. The default support method for entering tags is minibuffer
  2112. completion. However, Org-mode also implements a much better method:
  2113. _fast tag selection_. This method allows to select and deselect tags
  2114. with a single key per tag. To function efficiently, you should assign
  2115. unique keys to most tags. This can be done globally with
  2116. (setq org-tag-alist '(("@WORK" . ?w) ("@HOME" . ?h) ("Laptop" . ?l)))
  2117. or on a per-file basis with
  2118. #+TAGS: @WORK(w) @HOME(h) @TENNISCLUB(t) Laptop(l) PC(p)
  2119. You can also group together tags that are mutually exclusive. With
  2120. curly braces(1)
  2121. #+TAGS: { @WORK(w) @HOME(h) @TENNISCLUB(t) } Laptop(l) PC(p)
  2122. you indicate that at most one of `@WORK', `@HOME', and `@TENNISCLUB'
  2123. should be selected.
  2124. Don't forget to press `C-c C-c' with the cursor in one of these lines
  2125. to activate any changes.
  2126. If at least one tag has a selection key, pressing `C-c C-c' will
  2127. automatically present you with a special interface, listing inherited
  2128. tags, the tags of the current headline, and a list of all legal tags
  2129. with corresponding keys(2). In this interface, you can use the
  2130. following keys:
  2131. `a-z...'
  2132. Pressing keys assigned to tags will add or remove them from the
  2133. list of tags in the current line. Selecting a tag in a group of
  2134. mutually exclusive tags will turn off any other tags from that
  2135. group.
  2136. `<TAB>'
  2137. Enter a tag in the minibuffer, even if the tag is not in the
  2138. predefined list. You will be able to complete on all tags present
  2139. in the buffer.
  2140. `<SPC>'
  2141. Clear all tags for this line.
  2142. `<RET>'
  2143. Accept the modified set.
  2144. `C-g'
  2145. Abort without installing changes.
  2146. `q'
  2147. If `q' is not assigned to a tag, it aborts like `C-g'.
  2148. `!'
  2149. Turn of groups of mutually exclusive tags. Use this to (as an
  2150. exception) assign several tags from such a group.
  2151. `C-c'
  2152. Toggle auto-exit after the next change (see below).
  2153. This method lets you assign tags to a headline with very few keys. With
  2154. the above setup, you could clear the current tags and set `@HOME',
  2155. `Laptop' and `PC' tags with just the following keys: `C-c C-c <SPC> h l
  2156. p <RET>'. Switching from `@HOME' to `@WORK' would be done with `C-c
  2157. C-c w <RET>' or alternatively with `C-c C-c C-c w'. Adding the
  2158. non-predefined tag `Sarah' could be done with `C-c C-c <TAB> S a r a h
  2159. <RET> <RET>'.
  2160. If you find that most of the time, you need only a single keypress to
  2161. modify your list of tags, set the variable
  2162. `org-fast-tag-selection-single-key'. Then you no longer have to press
  2163. <RET> to exit fast tag selection - it will immediately exit after the
  2164. first change. If you then occasionally need more keys, press `C-c' to
  2165. turn off auto-exit for the current tag selection process.
  2166. ---------- Footnotes ----------
  2167. (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
  2168. respectively. Several groups are allowed.
  2169. (2) Keys will automatically be assigned to tags which have no
  2170. configured keys.
  2171. 
  2172. File: org, Node: Tag searches, Prev: Setting tags, Up: Tags
  2173. 7.3 Tag searches
  2174. ================
  2175. Once a tags system has been set up, it can be used to collect related
  2176. information into special lists.
  2177. `C-c \'
  2178. Create a sparse tree with all headlines matching a tags search.
  2179. `C-c a m'
  2180. Create a global list of tag matches from all agenda files. *Note
  2181. Matching headline tags::.
  2182. `C-c a M'
  2183. Create a global list of tag matches from all agenda files, but
  2184. check only TODO items and force checking subitems (see variable
  2185. `org-tags-match-list-sublevels').
  2186. A tags search string can use Boolean operators `&' for AND and `|'
  2187. for OR. `&' binds more strongly than `|'. Parenthesis are currently
  2188. not implemented. A tag may also be preceded by `-', to select against
  2189. it, and `+' is syntactic sugar for positive selection. The AND
  2190. operator `&' is optional when `+' or `-' is present. Examples:
  2191. `+WORK-BOSS'
  2192. Select all headlines that are tagged `:WORK:', but discard those
  2193. also tagged `:BOSS:'.
  2194. `WORK|LAPTOP'
  2195. Selects lines tagged `:WORK:' or `:LAPTOP:'.
  2196. `WORK|LAPTOP&NIGHT'
  2197. Like the previous example, but require the `:LAPTOP:' lines to be
  2198. tagged also `NIGHT'.
  2199. If you are using multi-state TODO keywords (*note TODO
  2200. extensions::), it can be useful to also match on the TODO keyword.
  2201. This can be done by adding a condition after a slash to a tags match.
  2202. The syntax is similar to the tag matches, but should be applied with
  2203. consideration: For example, a positive selection on several TODO
  2204. keywords can not meaningfully be combined with boolean AND. However,
  2205. _negative selection_ combined with AND can be meaningful. Examples:
  2206. `WORK/WAITING'
  2207. Select `:WORK:'-tagged TODO lines with the specific TODO keyword
  2208. `WAITING'.
  2209. `WORK/-WAITING-NEXT'
  2210. Select `:WORK:'-tagged TODO lines that are neither `WAITING' nor
  2211. `NEXT'
  2212. `WORK/+WAITING|+NEXT'
  2213. Select `:WORK:'-tagged TODO lines that are either `WAITING' or
  2214. `NEXT'.
  2215. 
  2216. File: org, Node: Agenda views, Next: Embedded LaTeX, Prev: Tags, Up: Top
  2217. 8 Agenda Views
  2218. **************
  2219. Due to the way Org-mode works, TODO items, time-stamped items, and
  2220. tagged headlines can be scattered throughout a file or even a number of
  2221. files. To get an overview over open action items, or over events that
  2222. are important for a particular date, this information must be collected,
  2223. sorted and displayed in an organized way.
  2224. Org-mode can select items based on various criteria, and display them
  2225. in a separate buffer. Five different view types are provided:
  2226. * an _agenda_ that is like a calendar and shows information for
  2227. specific dates
  2228. * a _TODO list_ that covers all unfinished action items,
  2229. * a _tags view_ that shows information based on the tags associated
  2230. with headlines in the outline tree,
  2231. * a _timeline view_ that shows all events in a single Org-mode file,
  2232. in time-sorted view
  2233. * _custom views_ that are special tag and keyword searches and
  2234. combinations of different views.
  2235. The extracted information is displayed in a special _agenda buffer_.
  2236. This buffer is read-only, but provides commands to visit the
  2237. corresponding locations in the original Org-mode files, and even to
  2238. edit these files remotely.
  2239. Two variables control how the agenda buffer is displayed and whether
  2240. the window configuration is restored when the agenda exits:
  2241. `org-agenda-window-setup' and `org-agenda-restore-windows-after-quit'.
  2242. * Menu:
  2243. * Agenda files:: Files being searched for agenda information
  2244. * Agenda dispatcher:: Keyboard access to agenda views
  2245. * Weekly/Daily agenda:: The calendar page with current tasks
  2246. * Global TODO list:: All unfinished action items
  2247. * Matching headline tags:: Structured information with fine-tuned search
  2248. * Timeline:: Time-sorted view for single file
  2249. * Presentation and sorting:: How agenda items are prepared for display
  2250. * Agenda commands:: Remote editing of org trees
  2251. * Custom agenda views:: Defining special searches and views
  2252. 
  2253. File: org, Node: Agenda files, Next: Agenda dispatcher, Prev: Agenda views, Up: Agenda views
  2254. 8.1 Agenda files
  2255. ================
  2256. The information to be shown is collected from all _agenda files_, the
  2257. files listed in the variable `org-agenda-files'(1). Thus even if you
  2258. only work with a single Org-mode file, this file should be put into
  2259. that list(2). You can customize `org-agenda-files', but the easiest
  2260. way to maintain it is through the following commands
  2261. `C-c ['
  2262. Add current file to the list of agenda files. The file is added to
  2263. the front of the list. If it was already in the list, it is moved
  2264. to the front. With prefix arg, file is added/moved to the end.
  2265. `C-c ]'
  2266. Remove current file from the list of agenda files.
  2267. `C-,'
  2268. Cycle through agenda file list, visiting one file after the other.
  2269. The Org menu contains the current list of files and can be used to
  2270. visit any of them.
  2271. ---------- Footnotes ----------
  2272. (1) If the value of that variable is not a list, but a single file
  2273. name, then the list of agenda files will be maintained in that external
  2274. file.
  2275. (2) When using the dispatcher, pressing `1' before selecting a
  2276. command will actually limit the command to the current file, and ignore
  2277. `org-agenda-files' until the next dispatcher command.
  2278. 
  2279. File: org, Node: Agenda dispatcher, Next: Weekly/Daily agenda, Prev: Agenda files, Up: Agenda views
  2280. 8.2 The agenda dispatcher
  2281. =========================
  2282. The views are created through a dispatcher that should be bound to a
  2283. global key, for example `C-c a' (*note Installation::). In the
  2284. following we will assume that `C-c a' is indeed how the dispatcher is
  2285. accessed and list keyboard access to commands accordingly. After
  2286. pressing `C-c a', an additional letter is required to execute a
  2287. command. The dispatcher offers the following default commands:
  2288. `a'
  2289. Create the calendar-like agenda (*note Weekly/Daily agenda::).
  2290. `t / T'
  2291. Create a list of all TODO items (*note Global TODO list::).
  2292. `m / M'
  2293. Create a list of headlines matching a TAGS expression (*note
  2294. Matching headline tags::).
  2295. `L'
  2296. Create the timeline view for the current buffer (*note Timeline::).
  2297. `1'
  2298. Restrict an agenda command to the current buffer. After pressing
  2299. `1', you still need to press the character selecting the command.
  2300. `0'
  2301. If there is an active region, restrict the following agenda
  2302. command to the region. Otherwise, restrict it to the current
  2303. subtree. After pressing `0', you still need to press the
  2304. character selecting the command.
  2305. You can also define custom commands that will be accessible through
  2306. the dispatcher, just like the default commands. This includes the
  2307. possibility to create extended agenda buffers that contain several
  2308. blocks together, for example the weekly agenda, the global TODO list and
  2309. a number of special tags matches. *Note Custom agenda views::.
  2310. 
  2311. File: org, Node: Weekly/Daily agenda, Next: Global TODO list, Prev: Agenda dispatcher, Up: Agenda views
  2312. 8.3 The weekly/daily agenda
  2313. ===========================
  2314. The purpose of the weekly/daily _agenda_ is to act like a page of a
  2315. paper agenda, showing all the tasks for the current week or day.
  2316. `C-c a a'
  2317. Compile an agenda for the current week from a list of org files.
  2318. The agenda shows the entries for each day. With a `C-u' prefix (or
  2319. when the variable `org-agenda-include-all-todo' is `t'), all
  2320. unfinished TODO items (including those without a date) are also
  2321. listed at the beginning of the buffer, before the first date.
  2322. Remote editing from the agenda buffer means, for example, that you
  2323. can change the dates of deadlines and appointments from the agenda
  2324. buffer. The commands available in the Agenda buffer are listed in
  2325. *Note Agenda commands::.
  2326. * Menu:
  2327. * Calendar/Diary integration:: Integrating Anniversaries and more
  2328. 
  2329. File: org, Node: Calendar/Diary integration, Prev: Weekly/Daily agenda, Up: Weekly/Daily agenda
  2330. 8.3.1 Calendar/Diary integration
  2331. --------------------------------
  2332. Emacs contains the calendar and diary by Edward M. Reingold. The
  2333. calendar displays a three-month calendar with holidays from different
  2334. countries and cultures. The diary allows you to keep track of
  2335. anniversaries, lunar phases, sunrise/set, recurrent appointments
  2336. (weekly, monthly) and more. In this way, it is quite complementary to
  2337. Org-mode. It can be very useful to combine output from Org-mode with
  2338. the diary.
  2339. In order to include entries from the Emacs diary into Org-mode's
  2340. agenda, you only need to customize the variable
  2341. (setq org-agenda-include-diary t)
  2342. After that, everything will happen automatically. All diary entries
  2343. including holidays, anniversaries etc will be included in the agenda
  2344. buffer created by Org-mode. <SPC>, <TAB>, and <RET> can be used from
  2345. the agenda buffer to jump to the diary file in order to edit existing
  2346. diary entries. The `i' command to insert new entries for the current
  2347. date works in the agenda buffer, as well as the commands `S', `M', and
  2348. `C' to display Sunrise/Sunset times, show lunar phases and to convert
  2349. to other calendars, respectively. `c' can be used to switch back and
  2350. forth between calendar and agenda.
  2351. 
  2352. File: org, Node: Global TODO list, Next: Matching headline tags, Prev: Weekly/Daily agenda, Up: Agenda views
  2353. 8.4 The global TODO list
  2354. ========================
  2355. The global TODO list contains all unfinished TODO items, formatted and
  2356. collected into a single place.
  2357. `C-c a t'
  2358. Show the global TODO list. This collects the TODO items from all
  2359. agenda files (*note Agenda views::) into a single buffer. The
  2360. buffer is in `agenda-mode', so there are commands to examine and
  2361. manipulate the TODO entries directly from that buffer (*note
  2362. Agenda commands::).
  2363. `C-c a T'
  2364. Like the above, but allows selection of a specific TODO keyword.
  2365. You can also do this by specifying a prefix argument to `C-c a t'.
  2366. With a `C-u' prefix you are prompted for a keyword. With a
  2367. numeric prefix, the Nth keyword in `org-todo-keywords' is selected. The
  2368. `r' key in the agenda buffer regenerates it, and you can give a
  2369. prefix argument to this command to change the selected TODO
  2370. keyword, for example `3 r'. If you often need a search for a
  2371. specific keyword, define a custom command for it (*note Agenda
  2372. dispatcher::).
  2373. Matching specific TODO keywords can also be done as part of a tags
  2374. search (*note Tag searches::).
  2375. Remote editing of TODO items means that you can change the state of a
  2376. TODO entry with a single key press. The commands available in the TODO
  2377. list are described in *Note Agenda commands::.
  2378. Normally the global todo list simply shows all headlines with TODO
  2379. keywords. This list can become very long. There are two ways to keep
  2380. it more compact:
  2381. - Some people view a TODO item that has been _scheduled_ for
  2382. execution (*note Time stamps::) as no longer _open_. Configure the
  2383. variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
  2384. items from the global TODO list.
  2385. - TODO items may have sublevels to break up the task into subtasks.
  2386. In such cases it may be enough to list only the highest level TODO
  2387. headline and omit the sublevels from the global list. Configure
  2388. the variable `org-agenda-todo-list-sublevels' to get this behavior.
  2389. 
  2390. File: org, Node: Matching headline tags, Next: Timeline, Prev: Global TODO list, Up: Agenda views
  2391. 8.5 Matching headline tags
  2392. ==========================
  2393. If headlines in the agenda files are marked with _tags_ (*note Tags::),
  2394. you can select headlines based on the tags that apply to them and
  2395. collect them into an agenda buffer.
  2396. `C-c a m'
  2397. Produce a list of all headlines that match a given set of tags.
  2398. The command prompts for a selection criterion, which is a boolean
  2399. logic expression with tags, like `+WORK+URGENT-WITHBOSS' or
  2400. `WORK|HOME' (*note Tags::). If you often need a specific search,
  2401. define a custom command for it (*note Agenda dispatcher::).
  2402. `C-c a M'
  2403. Like `C-c a m', but only select headlines that are also TODO items
  2404. and force checking subitems (see variable
  2405. `org-tags-match-list-sublevels'). Matching specific todo keywords
  2406. together with a tags match is also possible, see *Note Tag
  2407. searches::.
  2408. The commands available in the tags list are described in *Note
  2409. Agenda commands::.
  2410. 
  2411. File: org, Node: Timeline, Next: Presentation and sorting, Prev: Matching headline tags, Up: Agenda views
  2412. 8.6 Timeline for a single file
  2413. ==============================
  2414. The timeline summarizes all time-stamped items from a single Org-mode
  2415. file in a _time-sorted view_. The main purpose of this command is to
  2416. give an overview over events in a project.
  2417. `C-c a L'
  2418. Show a time-sorted view of the org file, with all time-stamped
  2419. items. When called with a `C-u' prefix, all unfinished TODO
  2420. entries (scheduled or not) are also listed under the current date.
  2421. The commands available in the timeline buffer are listed in *Note
  2422. Agenda commands::.
  2423. 
  2424. File: org, Node: Presentation and sorting, Next: Agenda commands, Prev: Timeline, Up: Agenda views
  2425. 8.7 Presentation and sorting
  2426. ============================
  2427. Before displaying items in an agenda view, Org-mode visually prepares
  2428. the items and sorts them. Each item occupies a single line. The line
  2429. starts with a _prefix_ that contains the _category_ (*note
  2430. Categories::) of the item and other important information. You can
  2431. customize the prefix using the option `org-agenda-prefix-format'. The
  2432. prefix is followed by a cleaned-up version of the outline headline
  2433. associated with the item.
  2434. * Menu:
  2435. * Categories:: Not all tasks are equal
  2436. * Time-of-day specifications:: How the agenda knows the time
  2437. * Sorting of agenda items:: The order of things
  2438. 
  2439. File: org, Node: Categories, Next: Time-of-day specifications, Prev: Presentation and sorting, Up: Presentation and sorting
  2440. 8.7.1 Categories
  2441. ----------------
  2442. The category is a broad label assigned to each agenda item. By default,
  2443. the category is simply derived from the file name, but you can also
  2444. specify it with a special line in the buffer, like this:
  2445. #+CATEGORY: Thesis
  2446. If there are several such lines in a file, each specifies the
  2447. category for the text below it (but the first category also applies to
  2448. any text before the first CATEGORY line). The display in the agenda
  2449. buffer looks best if the category is not longer than 10 characters.
  2450. 
  2451. File: org, Node: Time-of-day specifications, Next: Sorting of agenda items, Prev: Categories, Up: Presentation and sorting
  2452. 8.7.2 Time-of-Day Specifications
  2453. --------------------------------
  2454. Org-mode checks each agenda item for a time-of-day specification. The
  2455. time can be part of the time stamp that triggered inclusion into the
  2456. agenda, for example as in `<2005-05-10 Tue 19:00>'. Time ranges can be
  2457. specified with two time stamps, like
  2458. `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
  2459. In the headline of the entry itself, a time(range) may also appear as
  2460. plain text (like `12:45' or a `8:30-1pm'. If the agenda integrates the
  2461. Emacs diary (*note Calendar/Diary integration::), time specifications
  2462. in diary entries are recognized as well.
  2463. For agenda display, Org-mode extracts the time and displays it in a
  2464. standard 24 hour format as part of the prefix. The example times in
  2465. the previous paragraphs would end up in the agenda like this:
  2466. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  2467. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  2468. 19:00...... The Vogon reads his poem
  2469. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  2470. If the agenda is in single-day mode, or for the display of today, the
  2471. timed entries are embedded in a time grid, like
  2472. 8:00...... ------------------
  2473. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  2474. 10:00...... ------------------
  2475. 12:00...... ------------------
  2476. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  2477. 14:00...... ------------------
  2478. 16:00...... ------------------
  2479. 18:00...... ------------------
  2480. 19:00...... The Vogon reads his poem
  2481. 20:00...... ------------------
  2482. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  2483. The time grid can be turned on and off with the variable
  2484. `org-agenda-use-time-grid', and can be configured with
  2485. `org-agenda-time-grid'.
  2486. 
  2487. File: org, Node: Sorting of agenda items, Prev: Time-of-day specifications, Up: Presentation and sorting
  2488. 8.7.3 Sorting of agenda items
  2489. -----------------------------
  2490. Before being inserted into a view, the items are sorted. How this is
  2491. done depends on the type of view.
  2492. * For the daily/weekly agenda, the items for each day are sorted.
  2493. The default order is to first collect all items containing an
  2494. explicit time-of-day specification. These entries will be shown
  2495. at the beginning of the list, as a _schedule_ for the day. After
  2496. that, items remain grouped in categories, in the sequence given by
  2497. `org-agenda-files'. Within each category, items are sorted by
  2498. priority (*note Priorities::), which is composed of the base
  2499. priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
  2500. plus additional increments for overdue scheduled or deadline items.
  2501. * For the TODO list, items remain in the order of categories, but
  2502. within each category, sorting takes place according to priority
  2503. (*note Priorities::).
  2504. * For tags matches, items are not sorted at all, but just appear in
  2505. the sequence in which they are found in the agenda files.
  2506. Sorting can be customized using the variable
  2507. `org-agenda-sorting-strategy'.
  2508. 
  2509. File: org, Node: Agenda commands, Next: Custom agenda views, Prev: Presentation and sorting, Up: Agenda views
  2510. 8.8 Commands in the agenda buffer
  2511. =================================
  2512. Entries in the agenda buffer are linked back to the org file or diary
  2513. file where they originate. You are not allowed to edit the agenda
  2514. buffer itself, but commands are provided to show and jump to the
  2515. original entry location, and to edit the org-files "remotely" from the
  2516. agenda buffer. In this way, all information is stored only once,
  2517. removing the risk that your agenda and note files may diverge.
  2518. Some commands can be executed with mouse clicks on agenda lines. For
  2519. the other commands, the cursor needs to be in the desired line.
  2520. Motion
  2521. ......
  2522. `n'
  2523. Next line (same as <up>).
  2524. `p'
  2525. Previous line (same as <down>).
  2526. View/GoTo org file
  2527. ..................
  2528. `mouse-3'
  2529. `<SPC>'
  2530. Display the original location of the item in another window.
  2531. `L'
  2532. Display original location and recenter that window.
  2533. `mouse-2'
  2534. `mouse-1'
  2535. `<TAB>'
  2536. Go to the original location of the item in another window. Under
  2537. Emacs 22, `mouse-1' will also works for this.
  2538. `<RET>'
  2539. Go to the original location of the item and delete other windows.
  2540. `f'
  2541. Toggle Follow mode. In Follow mode, as you move the cursor through
  2542. the agenda buffer, the other window always shows the corresponding
  2543. location in the org file. The initial setting for this mode in new
  2544. agenda buffers can be set with the variable
  2545. `org-agenda-start-with-follow-mode'.
  2546. `l'
  2547. Toggle Logbook mode. In Logbook mode, entries that where marked
  2548. DONE while logging was on (variable `org-log-done') are shown in
  2549. the agenda, as are entries that have been clocked on that day.
  2550. Change display
  2551. ..............
  2552. `o'
  2553. Delete other windows.
  2554. `w'
  2555. Switch to weekly view (7 days displayed together).
  2556. `d'
  2557. Switch to daily view (just one day displayed).
  2558. `D'
  2559. Toggle the inclusion of diary entries. See *Note Calendar/Diary
  2560. integration::.
  2561. `g'
  2562. Toggle the time grid on and off. See also the variables
  2563. `org-agenda-use-time-grid' and `org-agenda-time-grid'.
  2564. `r'
  2565. Recreate the agenda buffer, for example to reflect the changes
  2566. after modification of the time stamps of items with S-<left> and
  2567. S-<right>. When the buffer is the global todo list, a prefix
  2568. argument is interpreted to create a selective list for a specific
  2569. TODO keyword.
  2570. `s'
  2571. Save all Org-mode buffers in the current Emacs session.
  2572. `<right>'
  2573. Display the following `org-agenda-ndays' days. For example, if
  2574. the display covers a week, switch to the following week. With
  2575. prefix arg, go forward that many times `org-agenda-ndays' days.
  2576. `<left>'
  2577. Display the previous dates.
  2578. `.'
  2579. Goto today.
  2580. Remote editing
  2581. ..............
  2582. `0-9'
  2583. Digit argument.
  2584. `t'
  2585. Change the TODO state of the item, both in the agenda and in the
  2586. original org file.
  2587. `T'
  2588. Show all tags associated with the current item. Because of
  2589. inheritance, this may be more than the tags listed in the line
  2590. itself.
  2591. `:'
  2592. Set tags for the current headline.
  2593. `a'
  2594. Toggle the ARCHIVE tag for the current headline.
  2595. `,'
  2596. Set the priority for the current item. Org-mode prompts for the
  2597. priority character. If you reply with <SPC>, the priority cookie
  2598. is removed from the entry.
  2599. `p'
  2600. Display weighted priority of current item.
  2601. `+'
  2602. `S-<up>'
  2603. Increase the priority of the current item. The priority is
  2604. changed in the original buffer, but the agenda is not resorted.
  2605. Use the `r' key for this.
  2606. `-'
  2607. `S-<down>'
  2608. Decrease the priority of the current item.
  2609. `C-c C-s'
  2610. Schedule this item
  2611. `C-c C-d'
  2612. Set a deadline for this item.
  2613. `S-<right>'
  2614. Change the time stamp associated with the current line by one day
  2615. into the future. With prefix argument, change it by that many
  2616. days. For example, `3 6 5 S-<right>' will change it by a year.
  2617. The stamp is changed in the original org file, but the change is
  2618. not directly reflected in the agenda buffer. Use the `r' key to
  2619. update the buffer.
  2620. `S-<left>'
  2621. Change the time stamp associated with the current line by one day
  2622. into the past.
  2623. `>'
  2624. Change the time stamp associated with the current line to today.
  2625. The key `>' has been chosen, because it is the same as `S-.' on my
  2626. keyboard.
  2627. `I'
  2628. Start the clock on the current item. If a clock is running
  2629. already, it is stopped first.
  2630. `O'
  2631. Stop the previously started clock.
  2632. `X'
  2633. Cancel the currently running clock.
  2634. Calendar commands
  2635. .................
  2636. `c'
  2637. Open the Emacs calendar and move to the date at the agenda cursor.
  2638. `c'
  2639. When in the calendar, compute and show the Org-mode agenda for the
  2640. date at the cursor.
  2641. `i'
  2642. Insert a new entry into the diary. Prompts for the type of entry
  2643. (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
  2644. new entry in the diary, just as `i d' etc. would do in the
  2645. calendar. The date is taken from the cursor position.
  2646. `M'
  2647. Show the phases of the moon for the three months around current
  2648. date.
  2649. `S'
  2650. Show sunrise and sunset times. The geographical location must be
  2651. set with calendar variables, see documentation of the Emacs
  2652. calendar.
  2653. `C'
  2654. Convert the date at cursor into many other cultural and historic
  2655. calendars.
  2656. `H'
  2657. Show holidays for three month around the cursor date.
  2658. `C-c C-x C-c'
  2659. Export a single iCalendar file containing entries from all agenda
  2660. files.
  2661. Quit and Exit
  2662. .............
  2663. `q'
  2664. Quit agenda, remove the agenda buffer.
  2665. `x'
  2666. Exit agenda, remove the agenda buffer and all buffers loaded by
  2667. Emacs for the compilation of the agenda. Buffers created by the
  2668. user to visit org files will not be removed.
  2669. 
  2670. File: org, Node: Custom agenda views, Prev: Agenda commands, Up: Agenda views
  2671. 8.9 Custom agenda views
  2672. =======================
  2673. Custom agenda commands serve two purposes: to store and quickly access
  2674. frequently used TODO and tags searches, and to create special composite
  2675. agenda buffers. Custom agenda commands will be accessible through the
  2676. dispatcher (*note Agenda dispatcher::), just like the default commands.
  2677. * Menu:
  2678. * Storing searches:: Type once, use often
  2679. * Block agenda:: All the stuff you need in a single buffer
  2680. * Setting Options:: Changing the rules
  2681. * Batch processing:: Agenda views from the command line
  2682. 
  2683. File: org, Node: Storing searches, Next: Block agenda, Prev: Custom agenda views, Up: Custom agenda views
  2684. 8.9.1 Storing searches
  2685. ----------------------
  2686. The first application of custom searches is the definition of keyboard
  2687. shortcuts for frequently used searches, either creating an agenda
  2688. buffer, or a sparse tree (the latter covering of course only the current
  2689. buffer). Custom commands are configured in the variable
  2690. `org-agenda-custom-commands'. You can customize this variable, for
  2691. example by pressing `C-c a C'. You can also directly set it with Emacs
  2692. Lisp in `.emacs'. The following example contains all valid search
  2693. types:
  2694. (setq org-agenda-custom-commands
  2695. '(("w" todo "WAITING")
  2696. ("W" todo-tree "WAITING")
  2697. ("u" tags "+BOSS-URGENT")
  2698. ("v" tags-todo "+BOSS-URGENT")
  2699. ("U" tags-tree "+BOSS-URGENT")
  2700. ("f" occur-tree "\\<FIXME\\>")))
  2701. The initial single-character string in each entry defines the character
  2702. you have to press after the dispatcher command `C-c a' in order to
  2703. access the command. The second parameter is the search type, followed
  2704. by the string or regular expression to be used for the matching. The
  2705. example above will therefore define:
  2706. `C-c a w'
  2707. as a global search for TODO entries with `WAITING' as the TODO
  2708. keyword
  2709. `C-c a W'
  2710. as the same search, but only in the current buffer and displaying
  2711. the results as a sparse tree
  2712. `C-c a u'
  2713. as a global tags search for headlines marked `:BOSS:' but not
  2714. `:URGENT:'
  2715. `C-c a v'
  2716. as the same search as `C-c a u', but limiting the search to
  2717. headlines that are also TODO items
  2718. `C-c a U'
  2719. as the same search as `C-c a u', but only in the current buffer and
  2720. displaying the result as a sparse tree
  2721. `C-c a f'
  2722. to create a sparse tree (again: current buffer only) with all
  2723. entries containing the word `FIXME'.
  2724. 
  2725. File: org, Node: Block agenda, Next: Setting Options, Prev: Storing searches, Up: Custom agenda views
  2726. 8.9.2 Block agenda
  2727. ------------------
  2728. Another possibility is the construction of agenda views that comprise
  2729. the results of _several_ commands, each of which creates a block in the
  2730. agenda buffer. The available commands include `agenda' for the daily
  2731. or weekly agenda (as created with `C-c a a'), `alltodo' for the global
  2732. todo list (as constructed with `C-c a t'), and the matching commands
  2733. discussed above: `todo', `tags', and `tags-todo'. Here are two
  2734. examples:
  2735. (setq org-agenda-custom-commands
  2736. '(("h" "Agenda and Home-related tasks"
  2737. ((agenda)
  2738. (tags-todo "HOME")
  2739. (tags "GARDEN")))
  2740. ("o" "Agenda and Office-related tasks"
  2741. ((agenda)
  2742. (tags-todo "WORK")
  2743. (tags "OFFICE")))))
  2744. This will define `C-c a h' to create a multi-block view for stuff you
  2745. need to attend to at home. The resulting agenda buffer will contain
  2746. your agenda for the current week, all TODO items that carry the tag
  2747. `HOME', and also all lines tagged with `GARDEN'. Finally the command
  2748. `C-c a o' provides a similar view for office tasks.
  2749. 
  2750. File: org, Node: Setting Options, Next: Batch processing, Prev: Block agenda, Up: Custom agenda views
  2751. 8.9.3 Setting Options for custom commands
  2752. -----------------------------------------
  2753. Org-mode contains a number of variables regulating agenda construction
  2754. and display. The global variables define the behavior for all agenda
  2755. commands, including the custom commands. However, if you want to change
  2756. some settings just for a single custom view, you can do so. Setting
  2757. options requires inserting a list of variable names and values at the
  2758. right spot in `org-agenda-custom-commands'. For example:
  2759. (setq org-agenda-custom-commands
  2760. '(("w" todo "WAITING"
  2761. ((org-agenda-sorting-strategy '(priority-down))
  2762. (org-agenda-prefix-format " Mixed: ")))
  2763. ("U" tags-tree "+BOSS-URGENT"
  2764. ((org-show-following-heading nil)
  2765. (org-show-hierarchy-above nil)))))
  2766. Now the `C-c a w' command will sort the collected entries only by
  2767. priority, and the prefix format is modified to just say ` Mixed:'
  2768. instead of giving the category of the entry. The sparse tags tree of
  2769. `C-c a U' will now turn out ultra-compact, because neither the headline
  2770. hierarchy above the match, nor the headline following the match will be
  2771. shown.
  2772. For command sets creating a block agenda,
  2773. `org-agenda-custom-commands' has two separate spots for setting
  2774. options. You can add options that should be valid for just a single
  2775. command in the set, and options that should be valid for all commands in
  2776. the set. The former are just added to the command entry, the latter
  2777. must come after the list of command entries. Going back to the block
  2778. agenda example (*note Block agenda::), let's change the sorting strategy
  2779. for the `C-c a h' commands to `priority-down', but let's sort the
  2780. results for GARDEN tags query in the opposite order, `priority-up'.
  2781. This would look like this:
  2782. (setq org-agenda-custom-commands
  2783. '(("h" "Agenda and Home-related tasks"
  2784. ((agenda)
  2785. (tags-todo "HOME")
  2786. (tags "GARDEN" ((org-agenda-sorting-strategy '(priority-up)))))
  2787. ((org-agenda-sorting-strategy '(priority-down))))
  2788. ("o" "Agenda and Office-related tasks"
  2789. ((agenda)
  2790. (tags-todo "WORK")
  2791. (tags "OFFICE")))))
  2792. As you see, the values and parenthesis setting is a little complex.
  2793. When in doubt, use the customize interface to set this variable - it
  2794. fully supports its structure. Just one caveat: When setting options in
  2795. this interface, the _values_ are just lisp expressions. So if the
  2796. value is a string, you need to add the double quotes around the value
  2797. yourself.
  2798. 
  2799. File: org, Node: Batch processing, Prev: Setting Options, Up: Custom agenda views
  2800. 8.9.4 Creating agenda views in batch processing
  2801. -----------------------------------------------
  2802. If you want to print or otherwise reprocess agenda views, it can be
  2803. useful to create an agenda from the command line. This is the purpose
  2804. of the function `org-batch-agenda'. It takes as a parameter one of the
  2805. strings that are the keys in `org-agenda-custom-commands'. For
  2806. example, to directly print the current TODO list, you could use
  2807. emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
  2808. You may also modify parameters on the fly like this:
  2809. emacs -batch -l ~/.emacs \
  2810. -eval '(org-batch-agenda "a" \
  2811. org-agenda-ndays 300 \
  2812. org-agenda-include-diary nil \
  2813. org-agenda-files (quote ("~/org/project.org")))' \
  2814. | lpr
  2815. which will produce a 300 day agenda, fully restricted to the Org file
  2816. `~/org/projects.org', not even including the diary.
  2817. 
  2818. File: org, Node: Embedded LaTeX, Next: Exporting, Prev: Agenda views, Up: Top
  2819. 9 Embedded LaTeX
  2820. ****************
  2821. Plain ASCII is normally sufficient for almost all note taking. One
  2822. exception, however, are scientific notes which need to be able to
  2823. contain mathematical symbols and the occasional formula. LaTeX(1) is
  2824. widely used to typeset scientific documents. Org-mode supports
  2825. embedding LaTeX code into its files, because many academics are used to
  2826. read LaTeX source code, and because it can be readily processed into
  2827. images for HTML production.
  2828. It is not necessary to mark LaTeX macros and code in any special way.
  2829. If you observe a few conventions, Org-mode knows how to find it and what
  2830. to do with it.
  2831. * Menu:
  2832. * Math symbols:: TeX macros for symbols and Greek letters
  2833. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  2834. * LaTeX fragments:: Complex formulas made easy
  2835. * Processing LaTeX fragments:: Previewing LaTeX processing
  2836. * CDLaTeX mode:: Speed up entering of formulas
  2837. ---------- Footnotes ----------
  2838. (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
  2839. Many of the features described here as "LaTeX" are really from TeX, but
  2840. for simplicity I am blurring this distinction.
  2841. 
  2842. File: org, Node: Math symbols, Next: Subscripts and Superscripts, Prev: Embedded LaTeX, Up: Embedded LaTeX
  2843. 9.1 Math symbols
  2844. ================
  2845. You can use LaTeX macros to insert special symbols like `\alpha' to
  2846. indicate the Greek letter, or `\to' to indicate an arrow. Completion
  2847. for these macros is available, just type `\' and maybe a few letters,
  2848. and press `M-<TAB>' to see possible completions. Unlike LaTeX code,
  2849. Org-mode allows these macros to be present without surrounding math
  2850. delimiters, for example:
  2851. Angles are written as Greek letters \alpha, \beta and \gamma.
  2852. During HTML export (*note HTML export::), these symbols are
  2853. translated into the proper syntax for HTML, for the above examples this
  2854. is `&alpha;' and `&rarr;', respectively.
  2855. 
  2856. File: org, Node: Subscripts and Superscripts, Next: LaTeX fragments, Prev: Math symbols, Up: Embedded LaTeX
  2857. 9.2 Subscripts and Superscripts
  2858. ===============================
  2859. Just like in LaTeX, `^' and `_' are used to indicate super- and
  2860. subscripts. Again, these can be used without embedding them in
  2861. math-mode delimiters. To increase the readability of ASCII text, it is
  2862. not necessary (but OK) to surround multi-character sub- and superscripts
  2863. with curly braces. For example
  2864. The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of
  2865. the sun is R_{sun} = 6.96 x 10^8 m.
  2866. To avoid interpretation as raised or lowered text, you can quote `^'
  2867. and `_' with a backslash: `\_' and `\^'.
  2868. During HTML export (*note HTML export::), subscript and superscripts
  2869. are surrounded with `<sub>' and `<sup>' tags, respectively.
  2870. 
  2871. File: org, Node: LaTeX fragments, Next: Processing LaTeX fragments, Prev: Subscripts and Superscripts, Up: Embedded LaTeX
  2872. 9.3 LaTeX fragments
  2873. ===================
  2874. With symbols, sub- and superscripts, HTML is pretty much at its end when
  2875. it comes to representing mathematical formulas(1). More complex
  2876. expressions need a dedicated formula processor. To this end, Org-mode
  2877. can contain arbitrary LaTeX fragments. It provides commands to preview
  2878. the typeset result of these fragments, and upon export to HTML, all
  2879. fragments will be converted to images and inlined into the HTML
  2880. document. For this to work you need to be on a system with a working
  2881. LaTeX installation. You also need the `dvipng' program, available at
  2882. `http://sourceforge.net/projects/dvipng/'.
  2883. LaTeX fragments don't need any special marking at all. The following
  2884. snippets will be identified as LaTeX source code:
  2885. * Environments of any kind. The only requirement is that the
  2886. `\begin' statement appears on a new line, preceded by only
  2887. whitespace.
  2888. * Text within the usual LaTeX math delimiters. To avoid conflicts
  2889. with currency specifications, single `$' characters are only
  2890. recognized as math delimiters if the enclosed text contains at
  2891. most two line breaks, is directly attached to the `$' characters
  2892. with no whitespace in between, and if the closing `$' is followed
  2893. by whitespace or punctuation. For the other delimiters, there is
  2894. no such restriction, so when in doubt, use `\(...\)' as inline
  2895. math delimiters.
  2896. For example:
  2897. \begin{equation} % arbitrary environments,
  2898. x=\sqrt{b} % even tables, figures
  2899. \end{equation} % etc
  2900. If $a^2=b$ and \( b=2 \), then the solution must be
  2901. either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
  2902. If you need any of the delimiter ASCII sequences for other purposes, you
  2903. can configure the option `org-format-latex-options' to deselect the
  2904. ones you do not wish to have interpreted by the LaTeX converter.
  2905. ---------- Footnotes ----------
  2906. (1) Yes, there is MathML, but that is not yet fully supported by
  2907. many browsers, and there is no decent converter for turning LaTeX of
  2908. ASCII representations of formulas into MathML. So for the time being,
  2909. converting formulas into images seems the way to go.
  2910. 
  2911. File: org, Node: Processing LaTeX fragments, Next: CDLaTeX mode, Prev: LaTeX fragments, Up: Embedded LaTeX
  2912. 9.4 Processing LaTeX fragments
  2913. ==============================
  2914. LaTeX fragments can be processed to produce a preview images of the
  2915. typeset expressions:
  2916. `C-c C-x C-l'
  2917. Produce a preview image of the LaTeX fragment at point and overlay
  2918. it over the source code. If there is no fragment at point,
  2919. process all fragments in the current entry (between two
  2920. headlines). When called with a prefix argument, process the
  2921. entire subtree. When called with two prefix arguments, or when
  2922. the cursor is before the first headline, process the entire buffer.
  2923. `C-c C-c'
  2924. Remove the overlay preview images.
  2925. During HTML export (*note HTML export::), all LaTeX fragments are
  2926. converted into images and inlined into the document if the following
  2927. setting is active:
  2928. (setq org-export-with-LaTeX-fragments t)
  2929. 
  2930. File: org, Node: CDLaTeX mode, Prev: Processing LaTeX fragments, Up: Embedded LaTeX
  2931. 9.5 Using CDLaTeX to enter math
  2932. ===============================
  2933. CDLaTeX-mode is a minor mode that is normally used in combination with a
  2934. major LaTeX mode like AUCTeX in order to speed-up insertion of
  2935. environments and math templates. Inside Org-mode, you can make use of
  2936. some of the features of cdlatex-mode. You need to install `cdlatex.el'
  2937. and `texmathp.el' (the latter comes also with AUCTeX) from
  2938. `http://www.astro.uva.nl/~dominik/Tools/cdlatex'. Don't turn
  2939. cdlatex-mode itself under Org-mode, but use the light version
  2940. `org-cdlatex-mode' that comes as part of Org-mode. Turn it on for the
  2941. current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
  2942. with
  2943. (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
  2944. When this mode is enabled, the following features are present (for
  2945. more details see the documentation of cdlatex-mode):
  2946. * Environment templates can be inserted with `C-c {'.
  2947. * The <TAB> key will do template expansion if the cursor is inside a
  2948. LaTeX fragment(1). For example, <TAB> will expand `fr' to
  2949. `\frac{}{}' and position the cursor correctly inside the first
  2950. brace. Another <TAB> will get you into the second brace. Even
  2951. outside fragments, <TAB> will expand environment abbreviations at
  2952. the beginning of a line. For example, if you write `equ' at the
  2953. beginning of a line and press <TAB>, this abbreviation will be
  2954. expanded to an `equation' environment. To get a list of all
  2955. abbreviations, type `M-x cdlatex-command-help'.
  2956. * Pressing `_' and `^' inside a LaTeX fragment will insert these
  2957. characters together with a pair of braces. If you use <TAB> to
  2958. move out of the braces, and if the braces surround only a single
  2959. character or macro, they are removed again (depending on the
  2960. variable `cdlatex-simplify-sub-super-scripts').
  2961. * Pressing the backquote ``' followed by a character inserts math
  2962. macros, also outside LaTeX fragments. If you wait more than 1.5
  2963. seconds after the backquote, a help window will pop up.
  2964. * Pressing the normal quote `'' followed by another character
  2965. modifies the symbol before point with an accent or a font. If you
  2966. wait more than 1.5 seconds after the backquote, a help window will
  2967. pop up. Character modification will work only inside LaTeX
  2968. fragments, outside the quote is normal.
  2969. ---------- Footnotes ----------
  2970. (1) Org-mode has a method to test if the cursor is inside such a
  2971. fragment, see the documentation of the function
  2972. `org-inside-LaTeX-fragment-p'.
  2973. 
  2974. File: org, Node: Exporting, Next: Publishing, Prev: Embedded LaTeX, Up: Top
  2975. 10 Exporting
  2976. ************
  2977. Org-mode documents can be exported into a variety of other formats. For
  2978. printing and sharing of notes, ASCII export produces a readable and
  2979. simple version of an Org-mode file. HTML export allows you to publish a
  2980. notes file on the web, while the XOXO format provides a solid base for
  2981. exchange with a broad range of other applications. To incorporate
  2982. entries with associated times like deadlines or appointments into a
  2983. desktop calendar program like iCal, Org-mode can also produce extracts
  2984. in the iCalendar format. Currently Org-mode only supports export, not
  2985. import of these different formats.
  2986. When exporting, Org-mode uses special conventions to enrich the
  2987. output produced. *Note Text interpretation::, for more details.
  2988. `C-c C-e'
  2989. Dispatcher for export and publishing commands. Displays a
  2990. help-window listing the additional key(s) needed to launch an
  2991. export or publishing command.
  2992. * Menu:
  2993. * ASCII export:: Exporting to plain ASCII
  2994. * HTML export:: Exporting to HTML
  2995. * XOXO export:: Exporting to XOXO
  2996. * iCalendar export:: Exporting in iCalendar format
  2997. * Text interpretation:: How the exporter looks at the file
  2998. 
  2999. File: org, Node: ASCII export, Next: HTML export, Prev: Exporting, Up: Exporting
  3000. 10.1 ASCII export
  3001. =================
  3002. ASCII export produces a simple and very readable version of an Org-mode
  3003. file.
  3004. `C-c C-e a'
  3005. Export as ASCII file. If there is an active region, only the
  3006. region will be exported. For an org file `myfile.org', the ASCII
  3007. file will be `myfile.txt'. The file will be overwritten without
  3008. warning.
  3009. `C-c C-e v a'
  3010. Export only the visible part of the document.
  3011. In the exported version, the first 3 outline levels will become
  3012. headlines, defining a general document structure. Additional levels
  3013. will be exported as itemized lists. If you want that transition to
  3014. occur at a different level, specify it with a prefix argument. For
  3015. example,
  3016. C-1 C-c C-e a
  3017. creates only top level headlines and does the rest as items. When
  3018. headlines are converted to items, the indentation of the text following
  3019. the headline is changed to fit nicely under the item. This is done with
  3020. the assumption that the first bodyline indicates the base indentation of
  3021. the body text. Any indentation larger than this is adjusted to preserve
  3022. the layout relative to the first line. Should there be lines with less
  3023. indentation than the first, these are left alone.
  3024. 
  3025. File: org, Node: HTML export, Next: XOXO export, Prev: ASCII export, Up: Exporting
  3026. 10.2 HTML export
  3027. ================
  3028. Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
  3029. HTML formatting, in ways similar to John Grubers _markdown_ language,
  3030. but with additional support for tables.
  3031. `C-c C-e h'
  3032. Export as HTML file `myfile.html'.
  3033. `C-c C-e b'
  3034. Export as HTML file and open it with a browser.
  3035. `C-c C-e v h'
  3036. `C-c C-e v b'
  3037. Export only the visible part of the document.
  3038. In the exported version, the first 3 outline levels will become
  3039. headlines, defining a general document structure. Additional levels
  3040. will be exported as itemized lists. If you want that transition to
  3041. occur at a different level, specify it with a prefix argument. For
  3042. example,
  3043. C-2 C-c C-e b
  3044. creates two levels of headings and does the rest as items.
  3045. If you want to include HTML tags which should be interpreted as such,
  3046. mark them with `@' as in `@<b>bold text@</b>'. Plain `<' and `>' are
  3047. always transformed to `&lt;' and `&gt;' in HTML export.
  3048. Internal links (*note Internal links::) will continue to work in HTML
  3049. files only if they match a dedicated `<<target>>'. Automatic links
  3050. created by radio targets (*note Radio targets::) will also work in the
  3051. HTML file. Links to external files will still work if the HTML file is
  3052. in the same directory as the Org-mode file. Links to other `.org'
  3053. files will be translated into HTML links under the assumption that an
  3054. HTML version also exists of the linked file. For information related to
  3055. linking files while publishing them to a publishing directory see *Note
  3056. Publishing links::.
  3057. You can also give style information for the exported file. The HTML
  3058. exporter assigns the following CSS classes to appropriate parts of the
  3059. document - your style specifications may change these:
  3060. .todo TODO keywords
  3061. .done the DONE keyword
  3062. .timestamp time stamp
  3063. .timestamp-kwd keyword associated with a time stamp, like SCHEDULED
  3064. .tag tag in a headline
  3065. .target target for links
  3066. The default style specification can be configured through the option
  3067. `org-export-html-style'. If you want to use a file-local style, you
  3068. may use file variables, best wrapped into a COMMENT section at the end
  3069. of the outline tree. For example:
  3070. * COMMENT HTML style specifications
  3071. # Local Variables:
  3072. # org-export-html-style: " <style type=\"text/css\">
  3073. # p {font-weight: normal; color: gray; }
  3074. # h1 {color: black; }
  3075. # </style>"
  3076. # End:
  3077. Remember to execute `M-x normal-mode' after changing this to make
  3078. the new style visible to Emacs. This command restarts org-mode for the
  3079. current buffer and forces Emacs to re-evaluate the local variables
  3080. section in the buffer.
  3081. 
  3082. File: org, Node: XOXO export, Next: iCalendar export, Prev: HTML export, Up: Exporting
  3083. 10.3 XOXO export
  3084. ================
  3085. Org-mode contains an exporter that produces XOXO-style output.
  3086. Currently, this exporter only handles the general outline structure and
  3087. does not interpret any additional Org-mode features.
  3088. `C-c C-e x'
  3089. Export as XOXO file `myfile.html'.
  3090. `C-c C-e v x'
  3091. Export only the visible part of the document.
  3092. 
  3093. File: org, Node: iCalendar export, Next: Text interpretation, Prev: XOXO export, Up: Exporting
  3094. 10.4 iCalendar export
  3095. =====================
  3096. Some people like to use Org-mode for keeping track of projects, but
  3097. still prefer a standard calendar application for anniversaries and
  3098. appointments. In this case it can be useful to have deadlines and
  3099. other time-stamped items in Org-mode files show up in the calendar
  3100. application. Org-mode can export calendar information in the standard
  3101. iCalendar format.
  3102. `C-c C-e i'
  3103. Create iCalendar entries for the current file and store them in
  3104. the same directory, using a file extension `.ics'.
  3105. `C-c C-e I'
  3106. Like `C-c C-e i', but do this for all files in `org-agenda-files'.
  3107. For each of these files, a separate iCalendar file will be
  3108. written.
  3109. `C-c C-e c'
  3110. Create a single large iCalendar file from all files in
  3111. `org-agenda-files' and write it to the file given by
  3112. `org-combined-agenda-icalendar-file'.
  3113. How this calendar is best read and updated, depends on the
  3114. application you are using. For example, when using iCal under Apple
  3115. MacOS X, you could create a new calendar `OrgMode' (the default name
  3116. for the calendar created by `C-c C-e c', see the variables
  3117. `org-icalendar-combined-name' and
  3118. `org-combined-agenda-icalendar-file'). Then set Org-mode to overwrite
  3119. the corresponding file `~/Library/Calendars/OrgMode.ics'. You may even
  3120. use AppleScript to make iCal re-read the calendar files each time a new
  3121. version of `OrgMode.ics' is produced. Here is the setup needed for
  3122. this:
  3123. (setq org-combined-agenda-icalendar-file
  3124. "~/Library/Calendars/OrgMode.ics")
  3125. (add-hook 'org-after-save-iCalendar-file-hook
  3126. (lambda ()
  3127. (shell-command
  3128. "osascript -e 'tell application \"iCal\" to reload calendars'")))
  3129. 
  3130. File: org, Node: Text interpretation, Prev: iCalendar export, Up: Exporting
  3131. 10.5 Text interpretation by the exporter
  3132. ========================================
  3133. The exporter backends interpret additional structure in the Org-mode
  3134. file in order to produce better output.
  3135. * Menu:
  3136. * Comment lines:: Some lines will not be exported
  3137. * Enhancing text:: Subscripts, symbols and more
  3138. * Export options:: How to influence the export settings
  3139. 
  3140. File: org, Node: Comment lines, Next: Enhancing text, Prev: Text interpretation, Up: Text interpretation
  3141. 10.5.1 Comment lines
  3142. --------------------
  3143. Lines starting with `#' in column zero are treated as comments and will
  3144. never be exported. Also entire subtrees starting with the word
  3145. `COMMENT' will never be exported. Finally, any text before the first
  3146. headline will not be exported either.
  3147. `C-c ;'
  3148. Toggle the COMMENT keyword at the beginning of an entry.
  3149. 
  3150. File: org, Node: Enhancing text, Next: Export options, Prev: Comment lines, Up: Text interpretation
  3151. 10.5.2 Enhancing text for export
  3152. --------------------------------
  3153. Some of the export backends of Org-mode allow for sophisticated text
  3154. formatting, this is true in particular for the HTML backend. Org-mode
  3155. has a number of typing conventions that allow to produce a richly
  3156. formatted output.
  3157. * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
  3158. enumerator will be recognized and transformed if the backend
  3159. supports lists. See *Note Plain lists::.
  3160. * You can make words *bold*, /italic/, _underlined_, `=code=', and
  3161. `+strikethrough+'.
  3162. * Many TeX macros and entire LaTeX fragments are converted into HTML
  3163. entities or images (*note Embedded LaTeX::).
  3164. * Tables are transformed into native tables under the exporter, if
  3165. the export backend supports this. Data fields before the first
  3166. horizontal separator line will be formatted as table header fields.
  3167. * If a headline starts with the word `QUOTE', the text below the
  3168. headline will be typeset as fixed-width, to allow quoting of
  3169. computer codes etc. Lines starting with `:' are also typeset in
  3170. fixed-width font.
  3171. `C-c :'
  3172. Toggle fixed-width for entry (QUOTE) or region, see below.
  3173. * A double backslash _at the end of a line_ enforces a line break at
  3174. this position.
  3175. If these conversions conflict with your habits of typing ASCII text,
  3176. they can all be turned off with corresponding variables (see the
  3177. customization group `org-export-general', and the following section
  3178. which explains how to set export options with special lines in a buffer.
  3179. 
  3180. File: org, Node: Export options, Prev: Enhancing text, Up: Text interpretation
  3181. 10.5.3 Export options
  3182. ---------------------
  3183. The exporter recognizes special lines in the buffer which provide
  3184. additional information. These lines may be put anywhere in the file.
  3185. The whole set of lines can be inserted into the buffer with `C-c C-e
  3186. t'. For individual lines, a good way to make sure the keyword is
  3187. correct is to type `#+' and then use `M-<TAB>' completion (*note
  3188. Completion::).
  3189. `C-c C-e t'
  3190. Insert template with export options, see example below.
  3191. #+TITLE: the title to be shown (default is the buffer name)
  3192. #+AUTHOR: the author (default taken from `user-full-name')
  3193. #+EMAIL: his/her email address (default from `user-mail-address')
  3194. #+LANGUAGE: language for HTML, e.g. `en' (`org-export-default-language')
  3195. #+TEXT: Some descriptive text to be inserted at the beginning.
  3196. #+TEXT: Several lines may be given.
  3197. #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t *:nil TeX:t LaTeX:t
  3198. The OPTIONS line is a compact form to specify export settings. Here
  3199. you can:
  3200. H: set the number of headline levels for export
  3201. num: turn on/off section-numbers
  3202. toc: turn on/off table of contents
  3203. \n: turn on/off linebreak-preservation
  3204. @: turn on/off quoted HTML tags
  3205. :: turn on/off fixed-width sections
  3206. |: turn on/off tables
  3207. ^: turn on/off TeX-like syntax for sub- and superscripts.
  3208. *: turn on/off emphasized text (bold, italic, underlined)
  3209. TeX: turn on/off simple TeX macros in plain text
  3210. LaTeX: turn on/off LaTeX fragments
  3211. 
  3212. File: org, Node: Publishing, Next: Miscellaneous, Prev: Exporting, Up: Top
  3213. 11 Publishing
  3214. *************
  3215. Org-mode includes(1) a publishing management system that allows you to
  3216. configure automatic HTML conversion of _projects_ composed of
  3217. interlinked org files. This system is called _org-publish_. You can
  3218. also configure org-publish to automatically upload your exported HTML
  3219. pages and related attachments, such as images and source code files, to
  3220. a web server. Org-publish turns org-mode into a web-site authoring
  3221. tool.
  3222. Org-publish has been contributed to Org-mode by David O'Toole.
  3223. * Menu:
  3224. * Configuration:: Defining projects
  3225. * Sample configuration:: Example projects
  3226. * Triggering publication:: Publication commands
  3227. ---------- Footnotes ----------
  3228. (1) `org-publish.el' is not yet part of Emacs, so if you are using
  3229. `org.el' as it comes with Emacs, you need to download this file
  3230. separately. Also make sure org.el is at least version 4.27.
  3231. 
  3232. File: org, Node: Configuration, Next: Sample configuration, Prev: Publishing, Up: Publishing
  3233. 11.1 Configuration
  3234. ==================
  3235. Publishing needs significant configuration to specify files, destination
  3236. and many other properties of a project.
  3237. * Menu:
  3238. * Project alist:: The central configuration variable
  3239. * Sources and destinations:: From here to there
  3240. * Selecting files:: What files are part of the project?
  3241. * Publishing action:: Setting the function doing the publishing
  3242. * Publishing options:: Tweaking HTML export
  3243. * Publishing links:: Which links keep working after publishing?
  3244. * Project page index:: Publishing a list of project files
  3245. 
  3246. File: org, Node: Project alist, Next: Sources and destinations, Prev: Configuration, Up: Configuration
  3247. 11.1.1 The variable `org-publish-project-alist'
  3248. -----------------------------------------------
  3249. Org-publish is configured almost entirely through setting the value of
  3250. one variable, called `org-publish-project-alist'. Each element of the
  3251. list configures one project, and may be in one of the two following
  3252. forms:
  3253. ("project-name" :property value :property value ...)
  3254. or
  3255. ("project-name" :components ("project-name" "project-name" ...))
  3256. In both cases, projects are configured by specifying property values.
  3257. A project defines the set of files that will be published, as well as
  3258. the publishing configuration to use when publishing those files. When
  3259. a project takes the second form listed above, the individual members of
  3260. the "components" property are taken to be components of the project,
  3261. which group together files requiring different publishing options. When
  3262. you publish such a "meta-project" all the components will also publish.
  3263. 
  3264. File: org, Node: Sources and destinations, Next: Selecting files, Prev: Project alist, Up: Configuration
  3265. 11.1.2 Sources and destinations for files
  3266. -----------------------------------------
  3267. Most properties are optional, but some should always be set. In
  3268. particular, org-publish needs to know where to look for source files,
  3269. and where to put published files.
  3270. `:base-directory' Directory containing publishing source files
  3271. `:publishing-directory'Directory (possibly remote) where output files
  3272. will be published.
  3273. `:preparation-function'Function called before starting publishing
  3274. process, for example to run `make' for updating
  3275. files to be published.
  3276. 
  3277. File: org, Node: Selecting files, Next: Publishing action, Prev: Sources and destinations, Up: Configuration
  3278. 11.1.3 Selecting files
  3279. ----------------------
  3280. By default, all files with extension `.org' in the base directory are
  3281. considered part of the project. This can be modified by setting the
  3282. properties
  3283. `:base-extension' Extension (without the dot!) of source files. This
  3284. actually is a regular expression.
  3285. `:exclude' Regular expression to match file names that should
  3286. not be published, even though they have been selected
  3287. on the basis of their extension.
  3288. `:include' List of files to be included regardless of
  3289. `:base-extension' and `:exclude'.
  3290. 
  3291. File: org, Node: Publishing action, Next: Publishing options, Prev: Selecting files, Up: Configuration
  3292. 11.1.4 Publishing Action
  3293. ------------------------
  3294. Publishing means that a file is copied to the destination directory and
  3295. possibly transformed in the process. The default transformation is to
  3296. export Org-mode files as HTML files, and this is done by the function
  3297. `org-publish-org-to-html' which calls the HTML exporter (*note HTML
  3298. export::). Other files like images only need to be copied to the
  3299. publishing destination. For non-Org-mode files, you need to specify
  3300. the publishing function.
  3301. `:publishing-function' Function executing the publication of a file.
  3302. This may also be a list of functions, which will
  3303. all be called in turn.
  3304. The function must accept two arguments: a property list containing at
  3305. least a `:publishing-directory' property, and the name of the file to
  3306. be published. It should take the specified file, make the necessary
  3307. transformation (if any) and place the result into the destination
  3308. folder. You can write your own publishing function, but `org-publish'
  3309. provides one for attachments (files that only need to be copied):
  3310. `org-publish-attachment'.
  3311. 
  3312. File: org, Node: Publishing options, Next: Publishing links, Prev: Publishing action, Up: Configuration
  3313. 11.1.5 Options for the HTML exporter
  3314. ------------------------------------
  3315. The property list can be used to set many export options for the HTML
  3316. exporter. In most cases, these properties correspond to user variables
  3317. in Org-mode. The table below lists these properties along with the
  3318. variable they belong to. See the documentation string for the
  3319. respective variable for details.
  3320. `:language' `org-export-default-language'
  3321. `:headline-levels' `org-export-headline-levels'
  3322. `:section-numbers' `org-export-with-section-numbers'
  3323. `:table-of-contents' `org-export-with-toc'
  3324. `:archived-trees' `org-export-with-archived-trees'
  3325. `:emphasize' `org-export-with-emphasize'
  3326. `:sub-superscript' `org-export-with-sub-superscripts'
  3327. `:TeX-macros' `org-export-with-TeX-macros'
  3328. `:LaTeX-fragments' `org-export-with-LaTeX-fragments'
  3329. `:fixed-width' `org-export-with-fixed-width'
  3330. `:timestamps' `org-export-with-timestamps'
  3331. .
  3332. `:tags' `org-export-with-tags'
  3333. .
  3334. `:tables' `org-export-with-tables'
  3335. `:table-auto-headline' `org-export-highlight-first-table-line'
  3336. `:style' `org-export-html-style'
  3337. `:convert-org-links' `org-export-html-link-org-files-as-html'
  3338. `:inline-images' `org-export-html-inline-images'
  3339. `:expand-quoted-html' `org-export-html-expand'
  3340. `:timestamp' `org-export-html-with-timestamp'
  3341. `:publishing-directory'`org-export-publishing-directory'
  3342. `:preamble' `org-export-html-preamble'
  3343. `:postamble' `org-export-html-postamble'
  3344. `:auto-preamble' `org-export-html-auto-preamble'
  3345. `:auto-postamble' `org-export-html-auto-postamble'
  3346. `:author' `user-full-name'
  3347. `:email' `user-mail-address'
  3348. When a property is given a value in org-publish-project-alist, its
  3349. setting overrides the value of the corresponding user variable (if any)
  3350. during publishing. options set within a file (*note Export options::),
  3351. however, override everything.
  3352. 
  3353. File: org, Node: Publishing links, Next: Project page index, Prev: Publishing options, Up: Configuration
  3354. 11.1.6 Links between published files
  3355. ------------------------------------
  3356. To create a link from one Org-mode file to another, you would use
  3357. something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
  3358. (*note Hyperlinks::). Upon publishing this link becomes a link to
  3359. `foo.html'. In this way, you can interlink the pages of your "org web"
  3360. project and the links will work as expected when you publish them to
  3361. HTML.
  3362. You may also link to related files, such as images. Provided you are
  3363. careful with relative pathnames, and provided you have also configured
  3364. org-publish to upload the related files, these links will work too.
  3365. *Note Complex example:: for an example of this usage.
  3366. Sometime an Org-mode file to be published may contain links that are
  3367. only valid in your production environment, but not in the publishing
  3368. location. In this case, use the property
  3369. `:link-validation-function' Function to validate links
  3370. to define a function for checking link validity. This function must
  3371. accept two arguments, the file name and a directory relative to which
  3372. the file name is interpreted in the production environment. If this
  3373. function returns `nil', then the HTML generator will only insert a
  3374. description into the HTML file, but no link. One option for this
  3375. function is `org-publish-validate-link' which checks if the given file
  3376. is part of any project in `org-publish-project-alist'.
  3377. 
  3378. File: org, Node: Project page index, Prev: Publishing links, Up: Configuration
  3379. 11.1.7 Project page index
  3380. -------------------------
  3381. The following properties may be used to control publishing of an index
  3382. of files or summary page for a given project.
  3383. `:auto-index' When non-nil, publish an index during
  3384. org-publish-current-project or org-publish-all.
  3385. `:index-filename' Filename for output of index. Defaults to `index.org'
  3386. (which becomes `index.html').
  3387. `:index-title' Title of index page. Defaults to name of file.
  3388. `:index-function' Plugin function to use for generation of index.
  3389. Defaults to `org-publish-org-index', which generates
  3390. a plain list of links to all files in the project.
  3391. 
  3392. File: org, Node: Sample configuration, Next: Triggering publication, Prev: Configuration, Up: Publishing
  3393. 11.2 Sample configuration
  3394. =========================
  3395. Below we provide two example configurations. The first one is a simple
  3396. project publishing only a set of Org-mode files. The second example is
  3397. more complex, with a multi-component project.
  3398. * Menu:
  3399. * Simple example:: One-component publishing
  3400. * Complex example:: A multi-component publishing example
  3401. 
  3402. File: org, Node: Simple example, Next: Complex example, Prev: Sample configuration, Up: Sample configuration
  3403. 11.2.1 Example: simple publishing configuration
  3404. -----------------------------------------------
  3405. This example publishes a set of Org-mode files to the `public_html'
  3406. directory on the local machine.
  3407. (setq org-publish-project-alist
  3408. '(("org"
  3409. :base-directory "~/org/"
  3410. :publishing-directory "~/public_html"
  3411. :section-numbers nil
  3412. :table-of-contents nil
  3413. :style "<link rel=stylesheet
  3414. href=\"../other/mystyle.css\"
  3415. type=\"text/css\">")))
  3416. 
  3417. File: org, Node: Complex example, Prev: Simple example, Up: Sample configuration
  3418. 11.2.2 Example: complex publishing configuration
  3419. ------------------------------------------------
  3420. This more complicated example publishes an entire website, including
  3421. org files converted to HTML, image files, emacs lisp source code, and
  3422. stylesheets. The publishing-directory is remote and private files are
  3423. excluded.
  3424. To ensure that links are preserved, care should be taken to replicate
  3425. your directory structure on the web server, and to use relative file
  3426. paths. For example, if your org files are kept in `~/org' and your
  3427. publishable images in `~/images', you'd link to an image with
  3428. file:../images/myimage.png
  3429. On the web server, the relative path to the image should be the
  3430. same. You can accomplish this by setting up an "images" folder in the
  3431. right place on the webserver, and publishing images to it.
  3432. (setq org-publish-project-alist
  3433. '(("orgfiles"
  3434. :base-directory "~/org/"
  3435. :base-extension "org"
  3436. :publishing-directory "/ssh:user@host:~/html/notebook/"
  3437. :publishing-function org-publish-org-to-html
  3438. :exclude "PrivatePage.org" ;; regexp
  3439. :headline-levels 3
  3440. :section-numbers nil
  3441. :table-of-contents nil
  3442. :style "<link rel=stylesheet
  3443. href=\"../other/mystyle.css\" type=\"text/css\">"
  3444. :auto-preamble t
  3445. :auto-postamble nil)
  3446. ("images"
  3447. :base-directory "~/images/"
  3448. :base-extension "jpg\\|gif\\|png"
  3449. :publishing-directory "/ssh:user@host:~/html/images/"
  3450. :publishing-function org-publish-attachment)
  3451. ("other"
  3452. :base-directory "~/other/"
  3453. :base-extension "css\\|el"
  3454. :publishing-directory "/ssh:user@host:~/html/other/"
  3455. :publishing-function org-publish-attachment)
  3456. ("website" :components ("orgfiles" "images" "other"))))
  3457. 
  3458. File: org, Node: Triggering publication, Prev: Sample configuration, Up: Publishing
  3459. 11.3 Triggering publication
  3460. ===========================
  3461. Once org-publish is properly configured, you can publish with the
  3462. following functions:
  3463. `C-c C-e c'
  3464. Prompt for a specific project and publish all files that belong to
  3465. it.
  3466. `C-c C-e p'
  3467. Publish the project containing the current file.
  3468. `C-c C-e f'
  3469. Publish only the current file.
  3470. `C-c C-e a'
  3471. Publish all projects.
  3472. Org uses timestamps to track when a file has changed. The above
  3473. functions normally only publish changed files. You can override this and
  3474. force publishing of all files by giving a prefix argument.
  3475. 
  3476. File: org, Node: Miscellaneous, Next: Extensions and Hacking, Prev: Publishing, Up: Top
  3477. 12 Miscellaneous
  3478. ****************
  3479. * Menu:
  3480. * Completion:: M-TAB knows what you need
  3481. * Customization:: Adapting Org-mode to your taste
  3482. * In-buffer settings:: Overview of the #+KEYWORDS
  3483. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  3484. * Clean view:: Getting rid of leading stars in the outline
  3485. * TTY keys:: Using Org-mode on a tty
  3486. * Interaction:: Other Emacs packages
  3487. * Bugs:: Things which do not work perfectly
  3488. 
  3489. File: org, Node: Completion, Next: Customization, Prev: Miscellaneous, Up: Miscellaneous
  3490. 12.1 Completion
  3491. ===============
  3492. Org-mode supports in-buffer completion. This type of completion does
  3493. not make use of the minibuffer. You simply type a few letters into the
  3494. buffer and use the key to complete text right there.
  3495. `M-<TAB>'
  3496. Complete word at point
  3497. * At the beginning of a headline, complete TODO keywords.
  3498. * After `\', complete TeX symbols supported by the exporter.
  3499. * After `*', complete headlines in the current buffer so that
  3500. they can be used in search links like `[[*find this
  3501. headline]]'.
  3502. * After `:', complete tags. The list of tags is taken from the
  3503. variable `org-tag-alist' (possibly set through the `#+TAGS'
  3504. in-buffer option, *note Setting tags::), or it is created
  3505. dynamically from all tags used in the current buffer.
  3506. * After `[', complete link abbreviations (*note Link
  3507. abbreviations::).
  3508. * After `#+', complete the special keywords like `TYP_TODO' or
  3509. `OPTIONS' which set file-specific options for Org-mode. When
  3510. the option keyword is already complete, pressing `M-<TAB>'
  3511. again will insert example settings for this keyword.
  3512. * In the line after `#+STARTUP: ', complete startup keywords,
  3513. i.e. valid keys for this line.
  3514. * Elsewhere, complete dictionary words using ispell.
  3515. 
  3516. File: org, Node: Customization, Next: In-buffer settings, Prev: Completion, Up: Miscellaneous
  3517. 12.2 Customization
  3518. ==================
  3519. There are more than 100 variables that can be used to customize
  3520. Org-mode. For the sake of compactness of the manual, we are not
  3521. describing the variables here. A structured overview of customization
  3522. variables is available with `M-x org-customize'. Or select `Browse Org
  3523. Group' from the `Org->Customization' menu. Many settings can also be
  3524. activated on a per-file basis, by putting special lines into the buffer
  3525. (*note In-buffer settings::).
  3526. 
  3527. File: org, Node: In-buffer settings, Next: The very busy C-c C-c key, Prev: Customization, Up: Miscellaneous
  3528. 12.3 Summary of in-buffer settings
  3529. ==================================
  3530. Org-mode uses special lines in the buffer to define settings on a
  3531. per-file basis. These lines start with a `#+' followed by a keyword, a
  3532. colon, and then individual words defining a setting. Several setting
  3533. words can be in the same line, but you can also have multiple lines for
  3534. the keyword. While these settings are described throughout the manual,
  3535. here is a summary. After changing any of those lines in the buffer,
  3536. press `C-c C-c' with the cursor still in the line to activate the
  3537. changes immediately. Otherwise they become effective only when the
  3538. file is visited again in a new Emacs session.
  3539. `#+STARTUP:'
  3540. This line sets options to be used at startup of org-mode, when an
  3541. Org-mode file is being visited. The first set of options deals
  3542. with the initial visibility of the outline tree. The
  3543. corresponding variable for global default settings is
  3544. `org-startup-folded', with a default value `t', which means
  3545. `overview'.
  3546. overview top-level headlines only
  3547. content all headlines
  3548. showall no folding at all, show everything
  3549. Then there are options for aligning tables upon visiting a file.
  3550. This is useful in files containing narrowed table columns. The
  3551. corresponding variable is `org-startup-align-all-tables', with a
  3552. default value `nil'.
  3553. align align all tables
  3554. noalign don't align tables on startup
  3555. Logging when a TODO item is marked DONE (variable `org-log-done')
  3556. can be configured using these options.
  3557. logging record a timestamp when an item is marked DONE
  3558. nologging don't record when items are marked DONE
  3559. Here are the options for hiding leading stars in outline headings.
  3560. The corresponding variables are `org-hide-leading-stars' and
  3561. `org-odd-levels-only', both with a default setting `nil' (meaning
  3562. `showstars' and `oddeven').
  3563. hidestars make all but one of the stars starting a headline invisible.
  3564. showstars show all stars starting a headline
  3565. odd allow only odd outline levels (1,3,...)
  3566. oddeven allow all outline levels
  3567. To turn on custom format overlayes over time stamps (variables
  3568. `org-put-time-stamp-overlays' and
  3569. `org-time-stamp-overlay-formats'), use
  3570. customtime overlay custom time format
  3571. `#+SEQ_TODO: #+TYP_TODO:'
  3572. These lines set the TODO keywords and their interpretation in the
  3573. current file. The corresponding variables are `org-todo-keywords'
  3574. and `org-todo-interpretation'.
  3575. `#+TAGS: TAG1(c1) TAG2(c2)'
  3576. These lines (several such lines are allowed) specify the legal
  3577. tags in this file, and (potentially) the corresponding _fast tag
  3578. selection_ keys. The corresponding variable is `org-tag-alist'.
  3579. `#+LINK: linkword replace'
  3580. These lines (several are allowed) specify link abbreviations.
  3581. *Note Link abbreviations::. The corresponding variable is
  3582. `org-link-abbrev-alist'.
  3583. `#+CATEGORY:'
  3584. This line sets the category for the agenda file. The category
  3585. applies for all subsequent lines until the next `#+CATEGORY' line,
  3586. or the end of the file.
  3587. `#+TBLFM:'
  3588. This line contains the formulas for the table directly above the
  3589. line.
  3590. `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS:'
  3591. These lines provide settings for exporting files. For more
  3592. details see *Note Export options::.
  3593. 
  3594. File: org, Node: The very busy C-c C-c key, Next: Clean view, Prev: In-buffer settings, Up: Miscellaneous
  3595. 12.4 The very busy C-c C-c key
  3596. ==============================
  3597. The key `C-c C-c' has many purposes in org-mode, which are all
  3598. mentioned scattered throughout this manual. One specific function of
  3599. this key is to add _tags_ to a headline (*note Tags::). In many other
  3600. circumstances it means something like _Hey Org-mode, look here and
  3601. update according to what you see here_. Here is a summary of what this
  3602. means in different contexts.
  3603. - If there are highlights in the buffer from the creation of a sparse
  3604. tree, or from clock display, remove these highlights.
  3605. - If the cursor is in one of the special `#+KEYWORD' lines, this
  3606. triggers scanning the buffer for these lines and updating the
  3607. information.
  3608. - If the cursor is inside a table, realign the table. This command
  3609. works even if the automatic table editor has been turned off.
  3610. - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
  3611. entire table.
  3612. - If the cursor is inside a table created by the `table.el' package,
  3613. activate that table.
  3614. - If the current buffer is a remember buffer, close the note and
  3615. file it. With a prefix argument, file it, without further
  3616. interaction, to the default location.
  3617. - If the cursor is on a `<<<target>>>', update radio targets and
  3618. corresponding links in this buffer.
  3619. - If the cursor is in a plain list item with a checkbox, toggle the
  3620. status of the checkbox.
  3621. - If the cursor is on a numbered item in a plain list, renumber the
  3622. ordered list.
  3623. 
  3624. File: org, Node: Clean view, Next: TTY keys, Prev: The very busy C-c C-c key, Up: Miscellaneous
  3625. 12.5 A cleaner outline view
  3626. ===========================
  3627. Some people find it noisy and distracting that the Org-mode headlines
  3628. are starting with a potentially large number of stars. For example the
  3629. tree from *Note Headlines:::
  3630. * Top level headline
  3631. ** Second level
  3632. *** 3rd level
  3633. some text
  3634. *** 3rd level
  3635. more text
  3636. * Another top level headline
  3637. Unfortunately this is deeply ingrained into the code of Org-mode and
  3638. cannot be easily changed. You can, however, modify the display in such
  3639. a way that all leading stars become invisible and the outline more easy
  3640. to read. To do this, customize the variable `org-hide-leading-stars'
  3641. like this:
  3642. (setq org-hide-leading-stars t)
  3643. or change this on a per-file basis with one of the lines (anywhere in
  3644. the buffer)
  3645. #+STARTUP: showstars
  3646. #+STARTUP: hidestars
  3647. Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
  3648. modifications.
  3649. With stars hidden, the tree becomes:
  3650. * Top level headline
  3651. * Second level
  3652. * 3rd level
  3653. some text
  3654. * 3rd level
  3655. more text
  3656. * Another top level headline
  3657. Note that the leading stars are not truly replaced by whitespace, they
  3658. are only fontified with the face `org-hide' that uses the background
  3659. color as font color. If are are not using either white or black
  3660. background, you may have to customize this face to get the wanted
  3661. effect. Another possibility is to set this font such that the extra
  3662. stars are almost invisible, for example using the color `grey90' on a
  3663. white background.
  3664. Things become cleaner still if you skip all the even levels and use
  3665. only odd levels 1, 3, 5..., effectively adding two stars to go from one
  3666. outline level to the next:
  3667. * Top level headline
  3668. * Second level
  3669. * 3rd level
  3670. some text
  3671. * 3rd level
  3672. more text
  3673. * Another top level headline
  3674. In order to make the structure editing and export commands handle this
  3675. convention correctly, use
  3676. (setq org-odd-levels-only t)
  3677. or set this on a per-file basis with one of the following lines (don't
  3678. forget to press `C-c C-c' with the cursor in the startup line to
  3679. activate changes immediately).
  3680. #+STARTUP: odd
  3681. #+STARTUP: oddeven
  3682. You can convert an Org-mode file from single-star-per-level to the
  3683. double-star-per-level convention with `M-x org-convert-to-odd-levels
  3684. RET' in that file. The reverse operation is `M-x
  3685. org-convert-to-oddeven-levels'.
  3686. 
  3687. File: org, Node: TTY keys, Next: Interaction, Prev: Clean view, Up: Miscellaneous
  3688. 12.6 Using org-mode on a tty
  3689. ============================
  3690. Org-mode uses a number of keys that are not accessible on a tty. This
  3691. applies to most special keys like cursor keys, <TAB> and <RET>, when
  3692. these are combined with modifier keys like <Meta> and/or <Shift>.
  3693. Org-mode uses these bindings because it needs to provide keys for a
  3694. large number of commands, and because these keys appeared particularly
  3695. easy to remember. In order to still be able to access the core
  3696. functionality of Org-mode on a tty, alternative bindings are provided.
  3697. Here is a complete list of these bindings, which are obviously more
  3698. cumbersome to use. Note that sometimes a work-around can be better.
  3699. For example changing a time stamp is really only fun with `S-<cursor>'
  3700. keys. On a tty you would rather use `C-c .' to re-insert the
  3701. timestamp.
  3702. Default Alternative 1 Alternative 2
  3703. `S-<TAB>' `C-u <TAB>'
  3704. `M-<left>' `C-c C-x l' `<Esc> <left>'
  3705. `M-S-<left>'`C-c C-x L'
  3706. `M-<right>' `C-c C-x r' `<Esc>
  3707. <right>'
  3708. `M-S-<right>'`C-c C-x R'
  3709. `M-<up>' `C-c C-x u' `<Esc> <up>'
  3710. `M-S-<up>' `C-c C-x U'
  3711. `M-<down>' `C-c C-x d' `<Esc> <down>'
  3712. `M-S-<down>'`C-c C-x D'
  3713. `S-<RET>' `C-c C-x c'
  3714. `M-<RET>' `C-c C-x m' `<Esc> <RET>'
  3715. `M-S-<RET>' `C-c C-x M'
  3716. `S-<left>' `C-c C-x
  3717. <left>'
  3718. `S-<right>' `C-c C-x
  3719. <right>'
  3720. `S-<up>' `C-c C-x
  3721. <up>'
  3722. `S-<down>' `C-c C-x
  3723. <down>'
  3724. 
  3725. File: org, Node: Interaction, Next: Bugs, Prev: TTY keys, Up: Miscellaneous
  3726. 12.7 Interaction with other packages
  3727. ====================================
  3728. Org-mode lives in the world of GNU Emacs and interacts in various ways
  3729. with other code out there.
  3730. * Menu:
  3731. * Cooperation:: Packages Org-mode cooperates with
  3732. * Conflicts:: Packages that lead to conflicts
  3733. 
  3734. File: org, Node: Cooperation, Next: Conflicts, Prev: Interaction, Up: Interaction
  3735. 12.7.1 Packages that Org-mode cooperates with
  3736. ---------------------------------------------
  3737. `calc.el' by Dave Gillespie
  3738. Org-mode uses the calc package for implementing spreadsheet
  3739. functionality in its tables (*note Table calculations::).
  3740. Org-modes checks for the availability of calc by looking for the
  3741. function `calc-eval' which should be autoloaded in your setup if
  3742. calc has been installed properly. As of Emacs 22, calc is part of
  3743. the Emacs distribution. Another possibility for interaction
  3744. between the two packages is using calc for embedded calculations.
  3745. *Note Embedded Mode: (calc)Embedded Mode.
  3746. `constants.el' by Carsten Dominik
  3747. In a table formula (*note Table calculations::), it is possible to
  3748. use names for natural constants or units. Instead of defining
  3749. your own constants in the variable `org-table-formula-constants',
  3750. install the `constants' package which defines a large number of
  3751. constants and units, and lets you use unit prefixes like `M' for
  3752. `Mega' etc. You will need version 2.0 of this package, available
  3753. at `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for
  3754. the function `constants-get', which has to be autoloaded in your
  3755. setup. See the installation instructions in the file
  3756. `constants.el'.
  3757. `cdlatex.el' by Carsten Dominik
  3758. Org-mode can make use of the cdlatex package to efficiently enter
  3759. LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
  3760. `remember.el' by John Wiegley
  3761. Org mode cooperates with remember, see *Note Remember::.
  3762. `Remember.el' is not part of Emacs, find it on the web.
  3763. `table.el' by Takaaki Ota
  3764. Org mode cooperates with table.el, see *Note table.el::.
  3765. `table.el' is part of Emacs 22.
  3766. 
  3767. File: org, Node: Conflicts, Prev: Cooperation, Up: Interaction
  3768. 12.7.2 Packages that lead to conflicts with Org-mode
  3769. ----------------------------------------------------
  3770. `allout.el' by Ken Manheimer
  3771. Startup of Org-mode may fail with the error message
  3772. `(wrong-type-argument keymapp nil)' when there is an outdated
  3773. version `allout.el' on the load path, for example the version
  3774. distributed with Emacs 21.x. Upgrade to Emacs 22 and this problem
  3775. will disappear. If for some reason you cannot do this, make sure
  3776. that org.el is loaded _before_ `allout.el', for example by putting
  3777. `(require 'org)' early enough into your `.emacs' file.
  3778. `CUA.el' by Kim. F. Storm
  3779. Keybindings in Org-mode conflict with the `S-<cursor>' keys used
  3780. by CUA-mode (as well as pc-select-mode and s-region-mode) to
  3781. select and extend the region. If you want to use one of these
  3782. packages along with Org-mode, configure the variable
  3783. `org-CUA-compatible'. When set, Org-mode will move the following
  3784. keybindings in org-mode files, and in the agenda buffer (but not
  3785. during date selection).
  3786. S-UP -> M-p S-DOWN -> M-n
  3787. S-LEFT -> M-- S-RIGHT -> M-+
  3788. S-RET -> C-S-RET
  3789. Yes, these are unfortunately more difficult to remember. If you
  3790. want to have other replacement keys, look at the variable
  3791. `org-disputed-keys'.
  3792. `windmove.el' by Hovav Shacham
  3793. Also this package uses the `S-<cursor>' keys, so everything written
  3794. in the paragraph above about CUA mode also applies here.
  3795. 
  3796. File: org, Node: Bugs, Prev: Interaction, Up: Miscellaneous
  3797. 12.8 Bugs
  3798. =========
  3799. Here is a list of things that should work differently, but which I have
  3800. found too hard to fix.
  3801. * If a table field starts with a link, and if the corresponding table
  3802. column is narrowed (*note Narrow columns::) to a width too small to
  3803. display the link, the field would look entirely empty even though
  3804. it is not. To prevent this, Org-mode throws an error. The
  3805. work-around is to make the column wide enough to fit the link, or
  3806. to add some text (at least 2 characters) before the link in the
  3807. same field.
  3808. * Narrowing table columns does not work on XEmacs, because the
  3809. `format' function does not transport text properties.
  3810. * Text in an entry protected with the `QUOTE' keyword should not
  3811. autowrap.
  3812. * When the application called by `C-c C-o' to open a file link fails
  3813. (for example because the application does not exist or refuses to
  3814. open the file), it does so silently. No error message is
  3815. displayed.
  3816. * The remote-editing commands in the agenda buffer cannot be undone
  3817. with `undo' called from within the agenda buffer. But you can go
  3818. to the corresponding buffer (using <TAB> or <RET> and execute
  3819. `undo' there.
  3820. * Recalculating a table line applies the formulas from left to right.
  3821. If a formula uses _calculated_ fields further down the row,
  3822. multiple recalculation may be needed to get all fields consistent.
  3823. * A single letter cannot be made bold, for example `*a*'.
  3824. * The exporters work well, but could be made more efficient.
  3825. 
  3826. File: org, Node: Extensions and Hacking, Next: History and Acknowledgments, Prev: Miscellaneous, Up: Top
  3827. Appendix A Extensions, Hooks and Hacking
  3828. ****************************************
  3829. This appendix lists extensions for Org-mode written by other authors.
  3830. It also covers some aspects where users can easily extend the
  3831. functionality of Org-mode.
  3832. * Menu:
  3833. * Extensions:: Existing 3rd-part extensions
  3834. * Dynamic blocks:: Automatically filled blocks
  3835. 
  3836. File: org, Node: Extensions, Next: Dynamic blocks, Prev: Extensions and Hacking, Up: Extensions and Hacking
  3837. A.1 Third-party extensions for Org-mode
  3838. =======================================
  3839. The following extensions for Org-mode have been written by other people:
  3840. `org-publish.el' by David O'Toole
  3841. This package provides facilities for publishing related sets of
  3842. Org-mode files together with linked files like images as a
  3843. webpages. It is highly configurable and can be used for other
  3844. publishing purposes as well. As of Org-mode version 4.30,
  3845. `org-publish.el' is part of the Org-mode distribution. It is not
  3846. yet part of Emacs, however, a delay caused by the preparations for
  3847. the 22.1 release. In the mean time, `org-publish.el' can be
  3848. downloaded from David's site:
  3849. `http://dto.freeshell.org/e/org-publish.el'.
  3850. `org-mouse.el' by Piotr Zielinski
  3851. This package implements extended mouse functionality for Org-mode.
  3852. It allows you to cycle visibility and to edit the document
  3853. structure with the mouse. Best of all, it provides a
  3854. context-sensitive menu on <mouse-3> that changes depending on the
  3855. context of a mouse-click. As of Org-mode version 4.53,
  3856. `org-mouse.el' is part of the Org-mode distribution. It is not
  3857. yet part of Emacs, however, a delay caused by the preparations for
  3858. the 22.1 release. In the mean time, `org-mouse.el' can be
  3859. downloaded from Piotr's site:
  3860. `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.
  3861. `org-blog.el' by David O'Toole
  3862. A blogging plug-in for `org-publish.el'.
  3863. `http://dto.freeshell.org/notebook/OrgMode.html'.
  3864. `org-blogging.el' by Bastien Guerry
  3865. Publish Org-mode files as blogs.
  3866. `http://www.cognition.ens.fr/~guerry/org-blogging.html'.
  3867. 
  3868. File: org, Node: Dynamic blocks, Prev: Extensions, Up: Extensions and Hacking
  3869. A.2 Dynamic blocks
  3870. ==================
  3871. Org-mode documents can contain _dynamic blocks_. These are specially
  3872. marked regions that are updated by some user-written function. A good
  3873. example for such a block is the clock table inserted by the command
  3874. `C-c C-x C-r' (*note Clocking work time::).
  3875. Dynamic block are enclosed by a BEGIN-END structure that assigns a
  3876. name to the block and can also specify parameters for the function
  3877. producing the content of the block.
  3878. #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
  3879. #+END:
  3880. Dynamic blocks are updated with the following commands
  3881. `C-c C-x C-u'
  3882. Update dynamic block at point.
  3883. `C-u C-c C-x C-u'
  3884. Update all dynamic blocks in the current file.
  3885. Updating a dynamic block means to remove all the text between BEGIN
  3886. and END, parse the BEGIN line for parameters and then call the specific
  3887. writer function for this block to insert the new content. For a block
  3888. with name `myblock', the writer function is `org-dblock-write:myblock'
  3889. with as only parameter a property list with the parameters given in the
  3890. begin line. Here is a trivial example of a block that keeps track of
  3891. when the block update function was last run:
  3892. #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
  3893. #+END:
  3894. The corresponding block writer function could look like this:
  3895. (defun org-dblock-write:block-update-time (params)
  3896. (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
  3897. (insert "Last block update at: "
  3898. (format-time-string fmt (current-time)))))
  3899. If you want to make sure that all dynamic blocks are always
  3900. up-to-date, you could add the function `org-update-all-dblocks' to a
  3901. hook, for example `before-save-hook'. `org-update-all-dblocks' is
  3902. written in a way that is does nothing in buffers that are not in
  3903. Org-mode.
  3904. 
  3905. File: org, Node: History and Acknowledgments, Next: Index, Prev: Extensions and Hacking, Up: Top
  3906. Appendix B History and Acknowledgments
  3907. **************************************
  3908. Org-mode was borne in 2003, out of frustration over the user interface
  3909. of the Emacs outline-mode. All I wanted was to make working with an
  3910. outline tree possible without having to remember more than 10 commands
  3911. just for hiding and unhiding parts of the outline tree, and to allow to
  3912. restructure a tree easily. Visibility cycling and structure editing
  3913. were originally implemented in the package `outline-magic.el', but
  3914. quickly moved to the more general `org.el'. TODO entries, basic time
  3915. stamps, and table support were added next, and highlight the two main
  3916. goals that Org-mode still has today: To create a new, outline-based,
  3917. plain text mode with innovative and intuitive editing features, and to
  3918. incorporate project planning functionality directly into a notes file.
  3919. Since the first release, hundreds of emails to me or on
  3920. `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
  3921. feedback, new ideas, and sometimes even patches and add-on code. Many
  3922. thanks to everyone who has helped to improve this package. I am trying
  3923. to keep here a list of the people who had significant influence in
  3924. shaping one or more aspects of Org-mode. The list may not be complete,
  3925. if I have forgotten someone, please accept my apologies and let me know.
  3926. * Thomas Baumann contributed the code for links to the MH-E email
  3927. system.
  3928. * Alex Bochannek provided a patch for rounding time stamps.
  3929. * Charles Cave's suggestion sparked the implementation of templates
  3930. for Remember.
  3931. * Pavel Chalmoviansky influenced the agenda treatment of items with
  3932. specified time.
  3933. * Gregory Chernov patched support for lisp forms into table
  3934. calculations and improved XEmacs compatibility, in particular by
  3935. porting `nouline.el' to XEmacs.
  3936. * Sacha Chua suggested to copy some linking code from Planner.
  3937. * Eddward DeVilla proposed and tested checkbox statistics.
  3938. * Kees Dullemond inspired the use of narrowed tabled columns.
  3939. * Christian Egli converted the documentation into TeXInfo format,
  3940. patched CSS formatting into the HTML exporter, and inspired the
  3941. agenda.
  3942. * Nic Ferrier contributed mailcap and XOXO support.
  3943. * Niels Giessen had the idea to automatically archive DONE trees.
  3944. * Bastien Guerry provided extensive feedback.
  3945. * Kai Grossjohann pointed out key-binding conflicts with other
  3946. packages.
  3947. * Leon Liu asked for embedded LaTeX and tested it.
  3948. * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
  3949. happy.
  3950. * Todd Neal provided patches for links to Info files and elisp forms.
  3951. * Tim O'Callaghan suggested in-file links, search options for general
  3952. file links, and TAGS.
  3953. * Oliver Oppitz suggested multi-state TODO items.
  3954. * Scott Otterson sparked the introduction of descriptive text for
  3955. links, among other things.
  3956. * Pete Phillips helped during the development of the TAGS feature,
  3957. and provided frequent feedback.
  3958. * T.V. Raman reported bugs and suggested improvements.
  3959. * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
  3960. control.
  3961. * Kevin Rogers contributed code to access VM files on remote hosts.
  3962. * Frank Ruell solved the mystery of the `keymapp nil' bug, a
  3963. conflict with `allout.el'.
  3964. * Jason Riedy sent a patch to fix a bug with export of TODO keywerds.
  3965. * Philip Rooke created the Org-mode reference card and provided lots
  3966. of feedback.
  3967. * Christian Schlauer proposed angular brackets around links, among
  3968. other things.
  3969. * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
  3970. `organizer-mode.el'.
  3971. * Daniel Sinder came up with the idea of internal archiving by
  3972. locking subtrees.
  3973. * Dale Smith proposed link abbreviations.
  3974. * David O'Toole wrote `org-publish.el' and drafted the manual
  3975. chapter about publishing.
  3976. * Ju"rgen Vollmer contributed code generating the table of contents
  3977. in HTML output.
  3978. * Chris Wallace provided a patch implementing the `QUOTE' keyword.
  3979. * David Wainberg suggested archiving, and improvements to the linking
  3980. system.
  3981. * John Wiegley wrote `emacs-wiki.el' and `planner.el'. The
  3982. development of Org-mode was fully independent, and both systems are
  3983. really different beasts in their basic ideas and implementation
  3984. details. I later looked at John's code, however, and learned from
  3985. his implementation of (i) links where the link itself is hidden
  3986. and only a description is shown, and (ii) popping up a calendar to
  3987. select a date.
  3988. * Carsten Wimmer suggested some changes and helped fix a bug in
  3989. linking to GNUS.
  3990. * Roland Winkler requested additional keybindings to make Org-mode
  3991. work on a tty.
  3992. * Piotr Zielinski wrote `org-mouse.el', proposed angenda blocks and
  3993. contributed various ideas and code snippets.
  3994. 
  3995. File: org, Node: Index, Next: Key Index, Prev: History and Acknowledgments, Up: Top
  3996. Index
  3997. *****
  3998. �[index�]
  3999. * Menu:
  4000. * abbreviation, links: Link abbreviations. (line 6)
  4001. * acknowledgments: History and Acknowledgments.
  4002. (line 6)
  4003. * action, for publishing: Publishing action. (line 6)
  4004. * activation: Activation. (line 6)
  4005. * active region <1>: HTML export. (line 10)
  4006. * active region <2>: ASCII export. (line 9)
  4007. * active region <3>: Built-in table editor.
  4008. (line 165)
  4009. * active region: Structure editing. (line 54)
  4010. * agenda: Weekly/Daily agenda. (line 6)
  4011. * agenda dispatcher: Agenda dispatcher. (line 6)
  4012. * agenda files: Agenda files. (line 6)
  4013. * agenda files, removing buffers: Agenda commands. (line 211)
  4014. * agenda views: Agenda views. (line 6)
  4015. * agenda views, custom: Custom agenda views. (line 6)
  4016. * agenda, batch production: Batch processing. (line 6)
  4017. * agenda, with block views: Block agenda. (line 6)
  4018. * allout.el: Conflicts. (line 6)
  4019. * angular brackets, around links: External links. (line 38)
  4020. * applescript, for calendar update: iCalendar export. (line 38)
  4021. * archive locations: Moving subtrees. (line 21)
  4022. * archiving: Archiving. (line 6)
  4023. * ASCII export: ASCII export. (line 6)
  4024. * author: Feedback. (line 6)
  4025. * autoload: Activation. (line 6)
  4026. * backtrace of an error: Feedback. (line 27)
  4027. * BBDB links: External links. (line 6)
  4028. * block agenda: Block agenda. (line 6)
  4029. * bold text: Enhancing text. (line 15)
  4030. * Boolean logic, for tag searches: Tag searches. (line 21)
  4031. * bug reports: Feedback. (line 6)
  4032. * bugs: Bugs. (line 6)
  4033. * C-c C-c, overview: The very busy C-c C-c key.
  4034. (line 6)
  4035. * calc package: Table calculations. (line 6)
  4036. * calc.el: Cooperation. (line 6)
  4037. * calculations, in tables <1>: Table calculations. (line 6)
  4038. * calculations, in tables: Built-in table editor.
  4039. (line 135)
  4040. * calendar commands, from agenda: Agenda commands. (line 172)
  4041. * calendar integration: Calendar/Diary integration.
  4042. (line 6)
  4043. * calendar, for selecting date: The date/time prompt.
  4044. (line 25)
  4045. * CamelCase link completion: Completion. (line 6)
  4046. * CamelCase links: Internal links. (line 6)
  4047. * CamelCase links, completion of: CamelCase links. (line 6)
  4048. * category: Categories. (line 6)
  4049. * CDLaTeX: CDLaTeX mode. (line 6)
  4050. * cdlatex.el: Cooperation. (line 29)
  4051. * checkbox statistics: Checkboxes. (line 23)
  4052. * checkboxes: Checkboxes. (line 6)
  4053. * children, subtree visibility state: Visibility cycling. (line 10)
  4054. * clean outline view: Clean view. (line 6)
  4055. * CLOCK keyword: Time stamps. (line 71)
  4056. * CLOSED keyword: Time stamps. (line 65)
  4057. * column formula: Column formulas. (line 6)
  4058. * commands, in agenda buffer: Agenda commands. (line 6)
  4059. * comment lines: Comment lines. (line 6)
  4060. * completion, of CamelCase links <1>: Completion. (line 6)
  4061. * completion, of CamelCase links: CamelCase links. (line 6)
  4062. * completion, of dictionary words: Completion. (line 6)
  4063. * completion, of file names: Handling links. (line 43)
  4064. * completion, of links: Handling links. (line 27)
  4065. * completion, of option keywords <1>: Completion. (line 6)
  4066. * completion, of option keywords: Export options. (line 6)
  4067. * Completion, of option keywords: Per file keywords. (line 17)
  4068. * completion, of tags <1>: Completion. (line 6)
  4069. * completion, of tags: Setting tags. (line 11)
  4070. * completion, of TeX symbols: Completion. (line 6)
  4071. * completion, of TODO keywords <1>: Completion. (line 6)
  4072. * completion, of TODO keywords: Workflow states. (line 12)
  4073. * constants, in calculations: Formula syntax. (line 26)
  4074. * constants.el: Cooperation. (line 14)
  4075. * contents, global visibility state: Visibility cycling. (line 22)
  4076. * copying, of subtrees: Structure editing. (line 6)
  4077. * creating timestamps: Creating timestamps. (line 6)
  4078. * CUA.el: Conflicts. (line 15)
  4079. * custom agenda views: Custom agenda views. (line 6)
  4080. * custom date/time format: Custom time format. (line 6)
  4081. * custom search strings: Custom searches. (line 6)
  4082. * customization: Customization. (line 6)
  4083. * cutting, of subtrees: Structure editing. (line 6)
  4084. * cycling, of TODO states: TODO basics. (line 13)
  4085. * cycling, visibility: Visibility cycling. (line 6)
  4086. * daily agenda: Weekly/Daily agenda. (line 6)
  4087. * date format, custom: Custom time format. (line 6)
  4088. * date stamps <1>: Time stamps. (line 6)
  4089. * date stamps: Timestamps. (line 6)
  4090. * date, reading in minibuffer: The date/time prompt.
  4091. (line 6)
  4092. * DEADLINE keyword: Time stamps. (line 53)
  4093. * deadlines: Time stamps. (line 6)
  4094. * demotion, of subtrees: Structure editing. (line 6)
  4095. * diary entries, creating from agenda: Agenda commands. (line 179)
  4096. * diary integration: Calendar/Diary integration.
  4097. (line 6)
  4098. * dictionary word completion: Completion. (line 6)
  4099. * directories, for publishing: Sources and destinations.
  4100. (line 6)
  4101. * dispatching agenda commands: Agenda dispatcher. (line 6)
  4102. * display changing, in agenda: Agenda commands. (line 59)
  4103. * document structure: Document structure. (line 6)
  4104. * DONE, final TODO keyword: Per file keywords. (line 20)
  4105. * editing tables: Tables. (line 6)
  4106. * editing, of table formulas: Editing/debugging formulas.
  4107. (line 6)
  4108. * elisp links: External links. (line 6)
  4109. * emphasized text: Export options. (line 25)
  4110. * enhancing text: Enhancing text. (line 6)
  4111. * evaluate time range: Creating timestamps. (line 66)
  4112. * exporting: Exporting. (line 6)
  4113. * exporting, not: Comment lines. (line 6)
  4114. * extended TODO keywords: TODO extensions. (line 6)
  4115. * external archiving: Moving subtrees. (line 6)
  4116. * external links: External links. (line 6)
  4117. * external links, in HTML export: HTML export. (line 35)
  4118. * FAQ: Summary. (line 51)
  4119. * feedback: Feedback. (line 6)
  4120. * file links: External links. (line 6)
  4121. * file links, searching: Search options. (line 6)
  4122. * file name completion: Handling links. (line 43)
  4123. * files for agenda: Agenda files. (line 6)
  4124. * files, adding to agenda list: Agenda files. (line 12)
  4125. * files, selecting for publishing: Selecting files. (line 6)
  4126. * fixed width: Enhancing text. (line 25)
  4127. * fixed-width sections: Export options. (line 25)
  4128. * folded, subtree visibility state: Visibility cycling. (line 10)
  4129. * folding, sparse trees: Sparse trees. (line 6)
  4130. * following links: Handling links. (line 58)
  4131. * format specifier: Formula syntax. (line 34)
  4132. * format, of links: Link format. (line 6)
  4133. * formula editing: Editing/debugging formulas.
  4134. (line 6)
  4135. * formula syntax: Formula syntax. (line 6)
  4136. * formula, for named table field: Named-field formulas.
  4137. (line 6)
  4138. * formula, for table column: Column formulas. (line 6)
  4139. * formula, in tables: Built-in table editor.
  4140. (line 135)
  4141. * global cycling: Visibility cycling. (line 22)
  4142. * global keybindings: Activation. (line 6)
  4143. * global TODO list: Global TODO list. (line 6)
  4144. * global visibility states: Visibility cycling. (line 22)
  4145. * GNUS links: External links. (line 6)
  4146. * hand-formatted lists: Enhancing text. (line 11)
  4147. * headline levels: Export options. (line 25)
  4148. * headline levels, for exporting <1>: HTML export. (line 21)
  4149. * headline levels, for exporting: ASCII export. (line 18)
  4150. * headline navigation: Motion. (line 6)
  4151. * headline tagging: Tags. (line 6)
  4152. * headline, promotion and demotion: Structure editing. (line 6)
  4153. * headlines: Headlines. (line 6)
  4154. * hide text: Visibility cycling. (line 6)
  4155. * hiding leading stars: Clean view. (line 6)
  4156. * history: History and Acknowledgments.
  4157. (line 6)
  4158. * HTML export: HTML export. (line 6)
  4159. * hyperlinks: Hyperlinks. (line 6)
  4160. * iCalendar export: iCalendar export. (line 6)
  4161. * in-buffer settings: In-buffer settings. (line 6)
  4162. * inactive timestamp: Time stamps. (line 24)
  4163. * index, of published pages: Project page index. (line 6)
  4164. * Info links: External links. (line 6)
  4165. * inheritance, of tags: Tag inheritance. (line 6)
  4166. * inserting links: Handling links. (line 27)
  4167. * installation: Installation. (line 6)
  4168. * internal archiving: ARCHIVE tag. (line 6)
  4169. * internal links: Internal links. (line 6)
  4170. * internal links, in HTML export: HTML export. (line 35)
  4171. * introduction: Introduction. (line 6)
  4172. * italic text: Enhancing text. (line 15)
  4173. * jumping, to headlines: Motion. (line 6)
  4174. * keybindings, global: Activation. (line 6)
  4175. * keyword options: Per file keywords. (line 6)
  4176. * LaTeX fragments <1>: Export options. (line 25)
  4177. * LaTeX fragments: LaTeX fragments. (line 6)
  4178. * LaTeX fragments, export: Enhancing text. (line 18)
  4179. * LaTeX fragments, preview: Processing LaTeX fragments.
  4180. (line 6)
  4181. * LaTeX interpretation: Embedded LaTeX. (line 6)
  4182. * linebreak preservation: Export options. (line 25)
  4183. * linebreak, forced: Enhancing text. (line 32)
  4184. * link abbreviations: Link abbreviations. (line 6)
  4185. * link completion: Handling links. (line 27)
  4186. * link format: Link format. (line 6)
  4187. * links, external: External links. (line 6)
  4188. * links, handling: Handling links. (line 6)
  4189. * links, in HTML export: HTML export. (line 35)
  4190. * links, internal: Internal links. (line 6)
  4191. * links, publishing: Publishing links. (line 6)
  4192. * links, radio targets: Radio targets. (line 6)
  4193. * links, returning to: Handling links. (line 85)
  4194. * Lisp forms, as table formulas: Lisp formulas. (line 6)
  4195. * lists, hand-formatted: Enhancing text. (line 11)
  4196. * lists, ordered: Plain lists. (line 6)
  4197. * lists, plain: Plain lists. (line 6)
  4198. * logging, of progress: Progress logging. (line 6)
  4199. * maintainer: Feedback. (line 6)
  4200. * mark ring: Handling links. (line 81)
  4201. * marking characters, tables: Advanced features. (line 34)
  4202. * matching, of tags: Matching headline tags.
  4203. (line 6)
  4204. * matching, tags: Tags. (line 6)
  4205. * math symbols: Math symbols. (line 6)
  4206. * MH-E links: External links. (line 6)
  4207. * minor mode for tables: orgtbl-mode. (line 6)
  4208. * mode, for calc: Formula syntax. (line 34)
  4209. * motion commands in agenda: Agenda commands. (line 19)
  4210. * motion, between headlines: Motion. (line 6)
  4211. * name, of column or field: Formula syntax. (line 26)
  4212. * named field formula: Named-field formulas.
  4213. (line 6)
  4214. * names as TODO keywords: TODO types. (line 6)
  4215. * narrow columns in tables: Narrow columns. (line 6)
  4216. * occur, command: Sparse trees. (line 6)
  4217. * option keyword completion: Completion. (line 6)
  4218. * options, for custom agenda views: Setting Options. (line 6)
  4219. * options, for customization: Customization. (line 6)
  4220. * options, for export: Export options. (line 6)
  4221. * options, for publishing: Publishing options. (line 6)
  4222. * ordered lists: Plain lists. (line 6)
  4223. * org-agenda, command: Weekly/Daily agenda. (line 9)
  4224. * org-blog.el: Extensions. (line 29)
  4225. * org-blogging.el: Extensions. (line 33)
  4226. * org-mode, turning on: Activation. (line 22)
  4227. * org-mouse.el: Extensions. (line 17)
  4228. * org-publish-project-alist: Project alist. (line 6)
  4229. * org-publish.el: Extensions. (line 8)
  4230. * orgtbl-mode: orgtbl-mode. (line 6)
  4231. * outline tree: Headlines. (line 6)
  4232. * outline-mode: Outlines. (line 6)
  4233. * outlines: Outlines. (line 6)
  4234. * overview, global visibility state: Visibility cycling. (line 22)
  4235. * packages, interaction with other: Interaction. (line 6)
  4236. * pasting, of subtrees: Structure editing. (line 6)
  4237. * per file keywords: Per file keywords. (line 6)
  4238. * plain lists: Plain lists. (line 6)
  4239. * plain text external links: External links. (line 38)
  4240. * presentation, of agenda items: Presentation and sorting.
  4241. (line 6)
  4242. * printing sparse trees: Sparse trees. (line 41)
  4243. * priorities: Priorities. (line 6)
  4244. * priorities, of agenda items: Sorting of agenda items.
  4245. (line 6)
  4246. * progress logging: Progress logging. (line 6)
  4247. * projects, for publishing: Project alist. (line 6)
  4248. * promotion, of subtrees: Structure editing. (line 6)
  4249. * publishing: Publishing. (line 6)
  4250. * quoted HTML tags: Export options. (line 25)
  4251. * radio targets: Radio targets. (line 6)
  4252. * ranges, time: Time stamps. (line 6)
  4253. * recomputing table fields: Column formulas. (line 27)
  4254. * region, active <1>: HTML export. (line 10)
  4255. * region, active <2>: ASCII export. (line 9)
  4256. * region, active <3>: Built-in table editor.
  4257. (line 165)
  4258. * region, active: Structure editing. (line 54)
  4259. * remember.el <1>: Cooperation. (line 33)
  4260. * remember.el: Remember. (line 6)
  4261. * remote editing, from agenda: Agenda commands. (line 100)
  4262. * richer text: Enhancing text. (line 6)
  4263. * RMAIL links: External links. (line 6)
  4264. * SCHEDULED keyword: Time stamps. (line 40)
  4265. * scheduling: Time stamps. (line 6)
  4266. * search option in file links: Search options. (line 6)
  4267. * search strings, custom: Custom searches. (line 6)
  4268. * searching for tags: Tag searches. (line 6)
  4269. * section-numbers: Export options. (line 25)
  4270. * setting tags: Setting tags. (line 6)
  4271. * SHELL links: External links. (line 6)
  4272. * show all, command: Visibility cycling. (line 31)
  4273. * show all, global visibility state: Visibility cycling. (line 22)
  4274. * show hidden text: Visibility cycling. (line 6)
  4275. * sorting, of agenda items: Sorting of agenda items.
  4276. (line 6)
  4277. * sparse tree, for deadlines: Creating timestamps. (line 41)
  4278. * sparse tree, for TODO: TODO basics. (line 26)
  4279. * sparse tree, tag based: Tags. (line 6)
  4280. * sparse trees: Sparse trees. (line 6)
  4281. * special keywords: In-buffer settings. (line 6)
  4282. * spreadsheet capabilities: Table calculations. (line 6)
  4283. * statistics, for checkboxes: Checkboxes. (line 23)
  4284. * storing links: Handling links. (line 9)
  4285. * structure editing: Structure editing. (line 6)
  4286. * structure of document: Document structure. (line 6)
  4287. * sublevels, inclusion into tags match: Tag inheritance. (line 6)
  4288. * sublevels, inclusion into todo list: Global TODO list. (line 33)
  4289. * subscript: Subscripts and Superscripts.
  4290. (line 6)
  4291. * subtree cycling: Visibility cycling. (line 10)
  4292. * subtree visibility states: Visibility cycling. (line 10)
  4293. * subtree, cut and paste: Structure editing. (line 6)
  4294. * subtree, subtree visibility state: Visibility cycling. (line 10)
  4295. * subtrees, cut and paste: Structure editing. (line 6)
  4296. * summary: Summary. (line 6)
  4297. * superscript: Subscripts and Superscripts.
  4298. (line 6)
  4299. * syntax, of formulas: Formula syntax. (line 6)
  4300. * table editor, builtin: Built-in table editor.
  4301. (line 6)
  4302. * table editor, table.el: table.el. (line 6)
  4303. * table of contents: Export options. (line 25)
  4304. * table.el <1>: Cooperation. (line 34)
  4305. * table.el: table.el. (line 6)
  4306. * tables <1>: Export options. (line 25)
  4307. * tables: Tables. (line 6)
  4308. * tables, export: Enhancing text. (line 21)
  4309. * tag completion: Completion. (line 6)
  4310. * tag searches: Tag searches. (line 6)
  4311. * tags: Tags. (line 6)
  4312. * tags view: Matching headline tags.
  4313. (line 6)
  4314. * tags, setting: Setting tags. (line 6)
  4315. * targets, for links: Internal links. (line 6)
  4316. * targets, radio: Radio targets. (line 6)
  4317. * tasks, breaking down: Breaking down tasks. (line 6)
  4318. * templates, for remember: Remember. (line 23)
  4319. * TeX interpretation: Embedded LaTeX. (line 6)
  4320. * TeX macros <1>: Export options. (line 25)
  4321. * TeX macros: Math symbols. (line 6)
  4322. * TeX macros, export: Enhancing text. (line 18)
  4323. * TeX symbol completion: Completion. (line 6)
  4324. * TeX-like syntax for sub- and superscripts: Export options. (line 25)
  4325. * thanks: History and Acknowledgments.
  4326. (line 6)
  4327. * time format, custom: Custom time format. (line 6)
  4328. * time grid: Time-of-day specifications.
  4329. (line 26)
  4330. * time stamps <1>: Time stamps. (line 6)
  4331. * time stamps: Timestamps. (line 6)
  4332. * time, reading in minibuffer: The date/time prompt.
  4333. (line 6)
  4334. * time-of-day specification: Time-of-day specifications.
  4335. (line 6)
  4336. * time-sorted view: Timeline. (line 6)
  4337. * timeline, single file: Timeline. (line 6)
  4338. * timerange: Time stamps. (line 31)
  4339. * timestamp: Time stamps. (line 14)
  4340. * timestamp, inactive: Time stamps. (line 24)
  4341. * timestamps, creating: Creating timestamps. (line 6)
  4342. * TODO items: TODO items. (line 6)
  4343. * TODO keyword matching: Global TODO list. (line 17)
  4344. * TODO keyword matching, with tags search: Tag searches. (line 38)
  4345. * TODO keywords completion: Completion. (line 6)
  4346. * TODO list, global: Global TODO list. (line 6)
  4347. * TODO types: TODO types. (line 6)
  4348. * TODO workflow: Workflow states. (line 6)
  4349. * transient-mark-mode <1>: HTML export. (line 10)
  4350. * transient-mark-mode <2>: ASCII export. (line 9)
  4351. * transient-mark-mode <3>: Built-in table editor.
  4352. (line 165)
  4353. * transient-mark-mode: Structure editing. (line 54)
  4354. * trees, sparse: Sparse trees. (line 6)
  4355. * trees, visibility: Visibility cycling. (line 6)
  4356. * tty keybindings: TTY keys. (line 6)
  4357. * types as TODO keywords: TODO types. (line 6)
  4358. * underlined text: Enhancing text. (line 15)
  4359. * URL links: External links. (line 6)
  4360. * USENET links: External links. (line 6)
  4361. * variables, for customization: Customization. (line 6)
  4362. * vectors, in table calculations: Formula syntax. (line 23)
  4363. * visibility cycling: Visibility cycling. (line 6)
  4364. * visible text, printing: Sparse trees. (line 41)
  4365. * VM links: External links. (line 6)
  4366. * WANDERLUST links: External links. (line 6)
  4367. * weekly agenda: Weekly/Daily agenda. (line 6)
  4368. * windmove.el: Conflicts. (line 33)
  4369. * workflow states as TODO keywords: Workflow states. (line 6)
  4370. * XEmacs: Installation. (line 6)
  4371. * XOXO export: XOXO export. (line 6)
  4372. 
  4373. File: org, Node: Key Index, Prev: Index, Up: Top
  4374. Key Index
  4375. *********
  4376. �[index�]
  4377. * Menu:
  4378. * ': CDLaTeX mode. (line 43)
  4379. * +: Agenda commands. (line 126)
  4380. * ,: Agenda commands. (line 118)
  4381. * -: Agenda commands. (line 132)
  4382. * .: Agenda commands. (line 94)
  4383. * :: Agenda commands. (line 112)
  4384. * <: The date/time prompt.
  4385. (line 28)
  4386. * <left>: Agenda commands. (line 91)
  4387. * <RET> <1>: Agenda commands. (line 41)
  4388. * <RET> <2>: Setting tags. (line 76)
  4389. * <RET> <3>: The date/time prompt.
  4390. (line 53)
  4391. * <RET>: Built-in table editor.
  4392. (line 64)
  4393. * <right>: Agenda commands. (line 86)
  4394. * <SPC> <1>: Agenda commands. (line 28)
  4395. * <SPC>: Setting tags. (line 73)
  4396. * <TAB> <1>: CDLaTeX mode. (line 23)
  4397. * <TAB> <2>: Agenda commands. (line 35)
  4398. * <TAB> <3>: Setting tags. (line 68)
  4399. * <TAB> <4>: Built-in table editor.
  4400. (line 57)
  4401. * <TAB> <5>: Plain lists. (line 37)
  4402. * <TAB>: Visibility cycling. (line 10)
  4403. * > <1>: Agenda commands. (line 154)
  4404. * >: The date/time prompt.
  4405. (line 29)
  4406. * ^: CDLaTeX mode. (line 33)
  4407. * _: CDLaTeX mode. (line 33)
  4408. * `: CDLaTeX mode. (line 39)
  4409. * a: Agenda commands. (line 115)
  4410. * C: Agenda commands. (line 194)
  4411. * c: Agenda commands. (line 172)
  4412. * C-#: Built-in table editor.
  4413. (line 155)
  4414. * C-,: Agenda files. (line 18)
  4415. * C-a a L: Timeline. (line 10)
  4416. * C-c !: Creating timestamps. (line 21)
  4417. * C-c #: Checkboxes. (line 55)
  4418. * C-c $: Moving subtrees. (line 10)
  4419. * C-c %: Handling links. (line 81)
  4420. * C-c &: Handling links. (line 85)
  4421. * C-c ' <1>: Editing/debugging formulas.
  4422. (line 20)
  4423. * C-c ': Built-in table editor.
  4424. (line 144)
  4425. * C-c *: Built-in table editor.
  4426. (line 148)
  4427. * C-c +: Built-in table editor.
  4428. (line 165)
  4429. * C-c ,: Priorities. (line 18)
  4430. * C-c -: Built-in table editor.
  4431. (line 92)
  4432. * C-c .: Creating timestamps. (line 10)
  4433. * C-c /: Sparse trees. (line 15)
  4434. * C-c :: Enhancing text. (line 29)
  4435. * C-c ;: Comment lines. (line 11)
  4436. * C-c <: Creating timestamps. (line 25)
  4437. * C-c <TAB>: Built-in table editor.
  4438. (line 187)
  4439. * C-c =: Built-in table editor.
  4440. (line 135)
  4441. * C-c >: Creating timestamps. (line 29)
  4442. * C-c ? <1>: Editing/debugging formulas.
  4443. (line 20)
  4444. * C-c ?: Built-in table editor.
  4445. (line 161)
  4446. * C-c [: Agenda files. (line 12)
  4447. * C-c \: Tag searches. (line 9)
  4448. * C-c ]: Agenda files. (line 15)
  4449. * C-c ^: Built-in table editor.
  4450. (line 96)
  4451. * C-c `: Built-in table editor.
  4452. (line 181)
  4453. * C-c a a: Weekly/Daily agenda. (line 9)
  4454. * C-c a C: Storing searches. (line 9)
  4455. * C-c a M: Matching headline tags.
  4456. (line 15)
  4457. * C-c a m: Matching headline tags.
  4458. (line 10)
  4459. * C-c a M: Tag searches. (line 14)
  4460. * C-c a m: Tag searches. (line 10)
  4461. * C-c a T: Global TODO list. (line 14)
  4462. * C-c a t <1>: Global TODO list. (line 9)
  4463. * C-c a t: TODO basics. (line 33)
  4464. * C-c C-a: Visibility cycling. (line 31)
  4465. * C-c C-b: Motion. (line 15)
  4466. * C-c C-c <1>: The very busy C-c C-c key.
  4467. (line 6)
  4468. * C-c C-c <2>: Processing LaTeX fragments.
  4469. (line 15)
  4470. * C-c C-c <3>: Setting tags. (line 10)
  4471. * C-c C-c <4>: Checkboxes. (line 37)
  4472. * C-c C-c <5>: table.el. (line 6)
  4473. * C-c C-c <6>: Editing/debugging formulas.
  4474. (line 16)
  4475. * C-c C-c <7>: Built-in table editor.
  4476. (line 54)
  4477. * C-c C-c: Plain lists. (line 74)
  4478. * C-c C-d <1>: Agenda commands. (line 139)
  4479. * C-c C-d: Creating timestamps. (line 37)
  4480. * C-c C-e: Exporting. (line 19)
  4481. * C-c C-e a: ASCII export. (line 9)
  4482. * C-c C-e b: HTML export. (line 11)
  4483. * C-c C-e c: iCalendar export. (line 20)
  4484. * C-c C-e h: HTML export. (line 10)
  4485. * C-c C-e I: iCalendar export. (line 15)
  4486. * C-c C-e i: iCalendar export. (line 13)
  4487. * C-c C-e t: Export options. (line 13)
  4488. * C-c C-e v <1>: XOXO export. (line 11)
  4489. * C-c C-e v: Sparse trees. (line 41)
  4490. * C-c C-e v a: ASCII export. (line 13)
  4491. * C-c C-e v b: HTML export. (line 14)
  4492. * C-c C-e v h: HTML export. (line 14)
  4493. * C-c C-e x: XOXO export. (line 10)
  4494. * C-c C-f: Motion. (line 12)
  4495. * C-c C-j: Motion. (line 21)
  4496. * C-c C-l: Handling links. (line 27)
  4497. * C-c C-n: Motion. (line 8)
  4498. * C-c C-o <1>: Creating timestamps. (line 33)
  4499. * C-c C-o: Handling links. (line 58)
  4500. * C-c C-p: Motion. (line 9)
  4501. * C-c C-q <1>: Editing/debugging formulas.
  4502. (line 20)
  4503. * C-c C-q: Built-in table editor.
  4504. (line 119)
  4505. * C-c C-r: Visibility cycling. (line 32)
  4506. * C-c C-s <1>: Agenda commands. (line 136)
  4507. * C-c C-s: Creating timestamps. (line 48)
  4508. * C-c C-t <1>: Clocking work time. (line 26)
  4509. * C-c C-t: TODO basics. (line 13)
  4510. * C-c C-u: Motion. (line 18)
  4511. * C-c C-v: TODO basics. (line 26)
  4512. * C-c C-w: Creating timestamps. (line 41)
  4513. * C-c C-x C-a: ARCHIVE tag. (line 28)
  4514. * C-c C-x C-b: Checkboxes. (line 38)
  4515. * C-c C-x C-c: Agenda commands. (line 201)
  4516. * C-c C-x C-d: Clocking work time. (line 34)
  4517. * C-c C-x C-i: Clocking work time. (line 12)
  4518. * C-c C-x C-k: Structure editing. (line 39)
  4519. * C-c C-x C-l: Processing LaTeX fragments.
  4520. (line 9)
  4521. * C-c C-x C-o: Clocking work time. (line 14)
  4522. * C-c C-x C-r: Clocking work time. (line 42)
  4523. * C-c C-x C-t: Custom time format. (line 12)
  4524. * C-c C-x C-u: Dynamic blocks. (line 21)
  4525. * C-c C-x C-w <1>: Built-in table editor.
  4526. (line 108)
  4527. * C-c C-x C-w: Structure editing. (line 39)
  4528. * C-c C-x C-x: Clocking work time. (line 30)
  4529. * C-c C-x C-y <1>: Built-in table editor.
  4530. (line 112)
  4531. * C-c C-x C-y: Structure editing. (line 46)
  4532. * C-c C-x M-w <1>: Built-in table editor.
  4533. (line 105)
  4534. * C-c C-x M-w: Structure editing. (line 43)
  4535. * C-c C-y <1>: Clocking work time. (line 21)
  4536. * C-c C-y: Creating timestamps. (line 66)
  4537. * C-c l: Handling links. (line 9)
  4538. * C-c {: CDLaTeX mode. (line 21)
  4539. * C-c |: Built-in table editor.
  4540. (line 40)
  4541. * C-c ~: table.el. (line 18)
  4542. * C-TAB: ARCHIVE tag. (line 38)
  4543. * C-u C-c $: Moving subtrees. (line 12)
  4544. * C-u C-c .: Creating timestamps. (line 16)
  4545. * C-u C-c =: Built-in table editor.
  4546. (line 139)
  4547. * C-u C-c C-l: Handling links. (line 43)
  4548. * C-u C-c C-x C-a: ARCHIVE tag. (line 31)
  4549. * C-u C-c C-x C-u <1>: Dynamic blocks. (line 22)
  4550. * C-u C-c C-x C-u: Clocking work time. (line 69)
  4551. * D: Agenda commands. (line 68)
  4552. * d: Agenda commands. (line 65)
  4553. * f: Agenda commands. (line 44)
  4554. * g: Agenda commands. (line 72)
  4555. * H: Agenda commands. (line 198)
  4556. * i: Agenda commands. (line 179)
  4557. * I: Agenda commands. (line 159)
  4558. * l: Agenda commands. (line 51)
  4559. * L: Agenda commands. (line 32)
  4560. * M: Agenda commands. (line 185)
  4561. * M-<down>: Built-in table editor.
  4562. (line 82)
  4563. * M-<left> <1>: Built-in table editor.
  4564. (line 72)
  4565. * M-<left>: Structure editing. (line 21)
  4566. * M-<RET> <1>: Plain lists. (line 42)
  4567. * M-<RET>: Structure editing. (line 6)
  4568. * M-<right> <1>: Built-in table editor.
  4569. (line 72)
  4570. * M-<right>: Structure editing. (line 24)
  4571. * M-<TAB> <1>: Completion. (line 10)
  4572. * M-<TAB> <2>: Setting tags. (line 6)
  4573. * M-<TAB>: Per file keywords. (line 17)
  4574. * M-<up>: Built-in table editor.
  4575. (line 82)
  4576. * M-S-<down> <1>: Built-in table editor.
  4577. (line 89)
  4578. * M-S-<down> <2>: Plain lists. (line 59)
  4579. * M-S-<down>: Structure editing. (line 36)
  4580. * M-S-<left> <1>: The date/time prompt.
  4581. (line 50)
  4582. * M-S-<left> <2>: Built-in table editor.
  4583. (line 76)
  4584. * M-S-<left> <3>: Plain lists. (line 65)
  4585. * M-S-<left>: Structure editing. (line 27)
  4586. * M-S-<RET> <1>: Checkboxes. (line 52)
  4587. * M-S-<RET> <2>: Plain lists. (line 52)
  4588. * M-S-<RET>: Structure editing. (line 18)
  4589. * M-S-<right> <1>: The date/time prompt.
  4590. (line 47)
  4591. * M-S-<right> <2>: Built-in table editor.
  4592. (line 79)
  4593. * M-S-<right> <3>: Plain lists. (line 65)
  4594. * M-S-<right>: Structure editing. (line 30)
  4595. * M-S-<up> <1>: Built-in table editor.
  4596. (line 86)
  4597. * M-S-<up> <2>: Plain lists. (line 59)
  4598. * M-S-<up>: Structure editing. (line 33)
  4599. * mouse-1 <1>: Agenda commands. (line 35)
  4600. * mouse-1 <2>: The date/time prompt.
  4601. (line 32)
  4602. * mouse-1: Handling links. (line 72)
  4603. * mouse-2 <1>: Agenda commands. (line 35)
  4604. * mouse-2: Handling links. (line 72)
  4605. * mouse-3 <1>: Agenda commands. (line 28)
  4606. * mouse-3: Handling links. (line 77)
  4607. * n: Agenda commands. (line 19)
  4608. * O: Agenda commands. (line 161)
  4609. * o: Agenda commands. (line 59)
  4610. * P: Agenda commands. (line 123)
  4611. * p: Agenda commands. (line 20)
  4612. * q: Agenda commands. (line 208)
  4613. * r <1>: Agenda commands. (line 76)
  4614. * r: Global TODO list. (line 20)
  4615. * S: Agenda commands. (line 189)
  4616. * s: Agenda commands. (line 83)
  4617. * S-<down> <1>: Agenda commands. (line 132)
  4618. * S-<down> <2>: The date/time prompt.
  4619. (line 41)
  4620. * S-<down> <3>: Creating timestamps. (line 58)
  4621. * S-<down> <4>: Priorities. (line 25)
  4622. * S-<down>: Plain lists. (line 55)
  4623. * S-<left> <1>: Agenda commands. (line 150)
  4624. * S-<left> <2>: The date/time prompt.
  4625. (line 38)
  4626. * S-<left> <3>: Creating timestamps. (line 53)
  4627. * S-<left>: TODO basics. (line 20)
  4628. * S-<RET>: Built-in table editor.
  4629. (line 170)
  4630. * S-<right> <1>: Agenda commands. (line 142)
  4631. * S-<right> <2>: The date/time prompt.
  4632. (line 35)
  4633. * S-<right> <3>: Creating timestamps. (line 53)
  4634. * S-<right>: TODO basics. (line 20)
  4635. * S-<TAB> <1>: Built-in table editor.
  4636. (line 61)
  4637. * S-<TAB>: Visibility cycling. (line 22)
  4638. * S-<up> <1>: Agenda commands. (line 126)
  4639. * S-<up> <2>: The date/time prompt.
  4640. (line 44)
  4641. * S-<up> <3>: Creating timestamps. (line 58)
  4642. * S-<up> <4>: Priorities. (line 25)
  4643. * S-<up>: Plain lists. (line 55)
  4644. * T: Agenda commands. (line 107)
  4645. * t: Agenda commands. (line 103)
  4646. * w: Agenda commands. (line 62)
  4647. * x: Agenda commands. (line 211)
  4648. * X: Agenda commands. (line 164)
  4649. 
  4650. Tag Table:
  4651. Node: Top964
  4652. Node: Introduction10362
  4653. Node: Summary10777
  4654. Node: Installation13689
  4655. Node: Activation15067
  4656. Node: Feedback16316
  4657. Node: Document structure18395
  4658. Node: Outlines19169
  4659. Node: Headlines19829
  4660. Node: Visibility cycling20452
  4661. Ref: Visibility cycling-Footnote-122203
  4662. Ref: Visibility cycling-Footnote-222261
  4663. Node: Motion22311
  4664. Node: Structure editing23095
  4665. Node: Archiving25411
  4666. Node: ARCHIVE tag25969
  4667. Node: Moving subtrees27762
  4668. Node: Sparse trees28803
  4669. Ref: Sparse trees-Footnote-130934
  4670. Ref: Sparse trees-Footnote-231026
  4671. Node: Plain lists31141
  4672. Ref: Plain lists-Footnote-134666
  4673. Ref: Plain lists-Footnote-235023
  4674. Node: Tables35205
  4675. Node: Built-in table editor35753
  4676. Node: Narrow columns43361
  4677. Ref: Narrow columns-Footnote-145300
  4678. Node: Table calculations45346
  4679. Node: Formula syntax46666
  4680. Ref: Formula syntax-Footnote-149571
  4681. Node: Lisp formulas49871
  4682. Node: Column formulas50660
  4683. Node: Advanced features52422
  4684. Node: Named-field formulas55676
  4685. Node: Editing/debugging formulas56316
  4686. Node: Appetizer58074
  4687. Node: orgtbl-mode59177
  4688. Node: table.el59668
  4689. Node: Hyperlinks60645
  4690. Node: Link format61418
  4691. Node: Internal links62711
  4692. Ref: Internal links-Footnote-164700
  4693. Node: Radio targets64832
  4694. Node: CamelCase links65547
  4695. Node: External links66141
  4696. Node: Handling links68272
  4697. Ref: Handling links-Footnote-172924
  4698. Ref: Handling links-Footnote-273161
  4699. Node: Link abbreviations73235
  4700. Node: Search options74914
  4701. Ref: Search options-Footnote-176692
  4702. Node: Custom searches76773
  4703. Node: Remember77821
  4704. Node: TODO items81511
  4705. Node: TODO basics82493
  4706. Node: TODO extensions84020
  4707. Node: Workflow states84815
  4708. Node: TODO types85683
  4709. Ref: TODO types-Footnote-187341
  4710. Node: Per file keywords87423
  4711. Ref: Per file keywords-Footnote-188877
  4712. Node: Priorities89078
  4713. Node: Breaking down tasks90322
  4714. Ref: Breaking down tasks-Footnote-190842
  4715. Node: Checkboxes90938
  4716. Node: Timestamps93674
  4717. Node: Time stamps94135
  4718. Ref: Time stamps-Footnote-197624
  4719. Node: Creating timestamps97740
  4720. Node: The date/time prompt100365
  4721. Ref: The date/time prompt-Footnote-1102058
  4722. Node: Custom time format102164
  4723. Node: Progress logging103723
  4724. Node: Closing items104252
  4725. Node: Clocking work time105156
  4726. Ref: Clocking work time-Footnote-1108782
  4727. Node: Tags108908
  4728. Node: Tag inheritance109670
  4729. Node: Setting tags110607
  4730. Ref: Setting tags-Footnote-1114805
  4731. Ref: Setting tags-Footnote-2114917
  4732. Node: Tag searches115000
  4733. Node: Agenda views117000
  4734. Node: Agenda files119093
  4735. Ref: Agenda files-Footnote-1120053
  4736. Ref: Agenda files-Footnote-2120202
  4737. Node: Agenda dispatcher120395
  4738. Node: Weekly/Daily agenda122012
  4739. Node: Calendar/Diary integration122977
  4740. Node: Global TODO list124315
  4741. Node: Matching headline tags126475
  4742. Node: Timeline127533
  4743. Node: Presentation and sorting128196
  4744. Node: Categories128974
  4745. Node: Time-of-day specifications129638
  4746. Node: Sorting of agenda items131616
  4747. Node: Agenda commands132898
  4748. Node: Custom agenda views138786
  4749. Node: Storing searches139461
  4750. Node: Block agenda141373
  4751. Node: Setting Options142603
  4752. Node: Batch processing145315
  4753. Node: Embedded LaTeX146445
  4754. Ref: Embedded LaTeX-Footnote-1147537
  4755. Node: Math symbols147727
  4756. Node: Subscripts and Superscripts148492
  4757. Node: LaTeX fragments149336
  4758. Ref: LaTeX fragments-Footnote-1151444
  4759. Node: Processing LaTeX fragments151706
  4760. Node: CDLaTeX mode152652
  4761. Ref: CDLaTeX mode-Footnote-1155136
  4762. Node: Exporting155284
  4763. Node: ASCII export156598
  4764. Node: HTML export157888
  4765. Node: XOXO export160724
  4766. Node: iCalendar export161163
  4767. Node: Text interpretation162986
  4768. Node: Comment lines163465
  4769. Node: Enhancing text163936
  4770. Node: Export options165628
  4771. Node: Publishing167295
  4772. Ref: Publishing-Footnote-1168091
  4773. Node: Configuration168287
  4774. Node: Project alist169005
  4775. Node: Sources and destinations170071
  4776. Node: Selecting files170801
  4777. Node: Publishing action171549
  4778. Node: Publishing options172782
  4779. Node: Publishing links174934
  4780. Node: Project page index176447
  4781. Node: Sample configuration177225
  4782. Node: Simple example177717
  4783. Node: Complex example178390
  4784. Node: Triggering publication180466
  4785. Node: Miscellaneous181151
  4786. Node: Completion181785
  4787. Node: Customization183256
  4788. Node: In-buffer settings183841
  4789. Node: The very busy C-c C-c key187461
  4790. Node: Clean view189105
  4791. Node: TTY keys191682
  4792. Node: Interaction193291
  4793. Node: Cooperation193688
  4794. Node: Conflicts195555
  4795. Node: Bugs197147
  4796. Node: Extensions and Hacking198770
  4797. Node: Extensions199256
  4798. Node: Dynamic blocks201057
  4799. Node: History and Acknowledgments202984
  4800. Node: Index207992
  4801. Node: Key Index235080
  4802. 
  4803. End Tag Table