org 320 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518
  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.77).
  7. Copyright (C) 2004, 2005, 2006, 2007 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.77).
  23. Copyright (C) 2004, 2005, 2006, 2007 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. * Column groups:: Grouping to trigger vertical lines
  73. * orgtbl-mode:: The table editor as minor mode
  74. * The spreadsheet:: The table editor has spreadsheet capabilities.
  75. The spreadsheet
  76. * References:: How to refer to another field or range
  77. * Formula syntax for Calc:: Using Calc to compute stuff
  78. * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
  79. * Field formulas:: Formulas valid for a single field
  80. * Column formulas:: Formulas valid for an entire column
  81. * Editing and debugging formulas:: Fixing formulas
  82. * Updating the table:: Recomputing all dependent fields
  83. * Advanced features:: Field names, parameters and automatic recalc
  84. Hyperlinks
  85. * Link format:: How links in Org-mode are formatted
  86. * Internal links:: Links to other places in the current file
  87. * External links:: URL-like links to the world
  88. * Handling links:: Creating, inserting and following
  89. * Link abbreviations:: Shortcuts for writing complex links
  90. * Search options:: Linking to a specific location
  91. * Custom searches:: When the default search is not enough
  92. * Remember:: Org-trees store quick notes
  93. Internal links
  94. * Radio targets:: Make targets trigger links in plain text.
  95. Remember
  96. * Setting up remember:: Some code for .emacs to get things going
  97. * Remember templates:: Define the outline of different note types
  98. * Storing notes:: Directly get the note to where it belongs
  99. TODO items
  100. * TODO basics:: Marking and displaying TODO entries
  101. * TODO extensions:: Workflow and assignments
  102. * Priorities:: Some things are more important than others
  103. * Breaking down tasks:: Splitting a task into manageable pieces
  104. * Checkboxes:: Tick-off lists
  105. Extended use of TODO keywords
  106. * Workflow states:: From TODO to DONE in steps
  107. * TODO types:: I do this, Fred the rest
  108. * Multiple sets in one file:: Mixing it all, and still finding your way
  109. * Per file keywords:: Different files, different requirements
  110. Timestamps
  111. * Time stamps:: Assigning a time to a tree entry
  112. * Creating timestamps:: Commands which insert timestamps
  113. * Deadlines and scheduling:: Planning your work
  114. * Progress logging:: Documenting when what work was done.
  115. Creating timestamps
  116. * The date/time prompt:: How org-mode helps you entering date and time
  117. * Custom time format:: Making dates look differently
  118. Deadlines and Scheduling
  119. * Inserting deadline/schedule::
  120. * Repeated tasks::
  121. Progress Logging
  122. * Closing items:: When was this entry marked DONE?
  123. * Tracking TODO state changes:: When did the status change?
  124. * Clocking work time:: When exactly did you work on this item?
  125. Tags
  126. * Tag inheritance:: Tags use the tree structure of the outline
  127. * Setting tags:: How to assign tags to a headline
  128. * Tag searches:: Searching for combinations of tags
  129. Agenda Views
  130. * Agenda files:: Files being searched for agenda information
  131. * Agenda dispatcher:: Keyboard access to agenda views
  132. * Built-in agenda views:: What is available out of the box?
  133. * Presentation and sorting:: How agenda items are prepared for display
  134. * Agenda commands:: Remote editing of org trees
  135. * Custom agenda views:: Defining special searches and views
  136. The built-in agenda views
  137. * Weekly/Daily agenda:: The calendar page with current tasks
  138. * Global TODO list:: All unfinished action items
  139. * Matching headline tags:: Structured information with fine-tuned search
  140. * Timeline:: Time-sorted view for single file
  141. * Stuck projects:: Find projects you need to review
  142. Presentation and sorting
  143. * Categories:: Not all tasks are equal
  144. * Time-of-day specifications:: How the agenda knows the time
  145. * Sorting of agenda items:: The order of things
  146. Custom agenda views
  147. * Storing searches:: Type once, use often
  148. * Block agenda:: All the stuff you need in a single buffer
  149. * Setting Options:: Changing the rules
  150. * Exporting Agenda Views:: Writing agendas to files.
  151. * Extracting Agenda Information for other programs::
  152. Embedded LaTeX
  153. * Math symbols:: TeX macros for symbols and Greek letters
  154. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  155. * LaTeX fragments:: Complex formulas made easy
  156. * Processing LaTeX fragments:: Previewing LaTeX processing
  157. * CDLaTeX mode:: Speed up entering of formulas
  158. Exporting
  159. * ASCII export:: Exporting to plain ASCII
  160. * HTML export:: Exporting to HTML
  161. * XOXO export:: Exporting to XOXO
  162. * iCalendar export:: Exporting in iCalendar format
  163. * Text interpretation:: How the exporter looks at the file
  164. HTML export
  165. * Export commands:: How to invoke HTML export
  166. * Quoting HTML tags:: Using direct HTML in Org-mode
  167. * Links:: How hyperlinks get transferred to HTML
  168. * Images:: To inline or not to inline?
  169. * CSS support:: Style specifications
  170. Text interpretation by the exporter
  171. * Comment lines:: Some lines will not be exported
  172. * Initial text:: Text before the first headline
  173. * Footnotes:: Numbers like [1]
  174. * Enhancing text:: Subscripts, symbols and more
  175. * Export options:: How to influence the export settings
  176. Publishing
  177. * Configuration:: Defining projects
  178. * Sample configuration:: Example projects
  179. * Triggering publication:: Publication commands
  180. Configuration
  181. * Project alist:: The central configuration variable
  182. * Sources and destinations:: From here to there
  183. * Selecting files:: What files are part of the project?
  184. * Publishing action:: Setting the function doing the publishing
  185. * Publishing options:: Tweaking HTML export
  186. * Publishing links:: Which links keep working after publishing?
  187. * Project page index:: Publishing a list of project files
  188. Sample configuration
  189. * Simple example:: One-component publishing
  190. * Complex example:: A multi-component publishing example
  191. Miscellaneous
  192. * Completion:: M-TAB knows what you need
  193. * Customization:: Adapting Org-mode to your taste
  194. * In-buffer settings:: Overview of the #+KEYWORDS
  195. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  196. * Clean view:: Getting rid of leading stars in the outline
  197. * TTY keys:: Using Org-mode on a tty
  198. * Interaction:: Other Emacs packages
  199. * Bugs:: Things which do not work perfectly
  200. Interaction with other packages
  201. * Cooperation:: Packages Org-mode cooperates with
  202. * Conflicts:: Packages that lead to conflicts
  203. Extensions, Hooks and Hacking
  204. * Extensions:: Existing 3rd-part extensions
  205. * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
  206. * Dynamic blocks:: Automatically filled blocks
  207. * Special agenda views:: Customized views
  208. Tables in arbitrary syntax
  209. * Radio tables:: Sending and receiving
  210. * A LaTeX example:: Step by step, almost a tutorial
  211. * Translator functions:: Copy and modify
  212. 
  213. File: org, Node: Introduction, Next: Document structure, Prev: Top, Up: Top
  214. 1 Introduction
  215. **************
  216. * Menu:
  217. * Summary:: Brief summary of what Org-mode does
  218. * Installation:: How to install a downloaded version of Org-mode
  219. * Activation:: How to activate Org-mode for certain buffers.
  220. * Feedback:: Bug reports, ideas, patches etc.
  221. 
  222. File: org, Node: Summary, Next: Installation, Prev: Introduction, Up: Introduction
  223. 1.1 Summary
  224. ===========
  225. Org-mode is a mode for keeping notes, maintaining ToDo lists, and doing
  226. project planning with a fast and effective plain-text system.
  227. Org-mode develops organizational tasks around NOTES files that
  228. contain lists or information about projects as plain text. Org-mode is
  229. implemented on top of outline-mode, which makes it possible to keep the
  230. content of large files well structured. Visibility cycling and
  231. structure editing help to work with the tree. Tables are easily created
  232. with a built-in table editor. Org-mode supports ToDo items, deadlines,
  233. time stamps, and scheduling. It dynamically compiles entries into an
  234. agenda that utilizes and smoothly integrates much of the Emacs calendar
  235. and diary. Plain text URL-like links connect to websites, emails,
  236. Usenet messages, BBDB entries, and any files related to the projects.
  237. For printing and sharing of notes, an Org-mode file can be exported as a
  238. structured ASCII file, as HTML, or (todo and agenda items only) as an
  239. iCalendar file. It can also serve as a publishing tool for a set of
  240. linked webpages.
  241. An important design aspect that distinguishes Org-mode from for
  242. example Planner/Muse is that it encourages to store every piece of
  243. information only once. In Planner, you have project pages, day pages
  244. and possibly other files, duplicating some information such as tasks.
  245. In Org-mode, you only have notes files. In your notes you mark entries
  246. as tasks, label them with tags and timestamps. All necessary lists
  247. like a schedule for the day, the agenda for a meeting, tasks lists
  248. selected by tags etc are created dynamically when you need them.
  249. Org-mode keeps simple things simple. When first fired up, it should
  250. feel like a straightforward, easy to use outliner. Complexity is not
  251. imposed, but a large amount of functionality is available when you need
  252. it. Org-mode can be used on different levels and in different ways, for
  253. example as:
  254. * outline extension with visibility cycling and structure editing
  255. * ASCII system and table editor for taking structured notes
  256. * ASCII table editor with spreadsheet-like capabilities
  257. * TODO list editor
  258. * full agenda and planner with deadlines and work scheduling
  259. * environment to implement David Allen's GTD system
  260. * simple hypertext system, with HTML export
  261. * publishing tool to create a set of interlinked webpages
  262. Org-mode's automatic, context sensitive table editor with spreadsheet
  263. capabilities can be integrated into any major mode by activating the
  264. minor Orgtbl-mode. Using a translation step, it can be used to maintain
  265. tables in arbitrary file types, for example in LaTeX.
  266. There is a website for Org-mode which provides links to the newest
  267. version of Org-mode, as well as additional information, frequently asked
  268. questions (FAQ), links to tutorials etc. This page is located at
  269. `http://www.astro.uva.nl/~dominik/Tools/org/'.
  270. 
  271. File: org, Node: Installation, Next: Activation, Prev: Summary, Up: Introduction
  272. 1.2 Installation
  273. ================
  274. Important: If Org-mode is part of the Emacs distribution or an XEmacs
  275. package, please skip this section and go directly to *Note Activation::.
  276. If you have downloaded Org-mode from the Web, you must take the
  277. following steps to install it: Go into the Org-mode distribution
  278. directory and edit the top section of the file `Makefile'. You must
  279. set the name of the Emacs binary (likely either `emacs' or `xemacs'),
  280. and the paths to the directories where local Lisp and Info files are
  281. kept. If you don't have access to the system-wide directories, create
  282. your own two directories for these files, enter them into the Makefile,
  283. and make sure Emacs finds the Lisp files by adding the following line
  284. to `.emacs':
  285. (setq load-path (cons "~/path/to/lispdir" load-path))
  286. XEmacs users now need to install the file `noutline.el' from the
  287. `xemacs' subdirectory of the Org-mode distribution. Use the command:
  288. make install-noutline
  289. Now byte-compile and install the Lisp files with the shell commands:
  290. make
  291. make install
  292. If you want to install the info documentation, use this command:
  293. make install-info
  294. Then add to `.emacs':
  295. ;; This line only if org-mode is not part of the X/Emacs distribution.
  296. (require 'org-install)
  297. 
  298. File: org, Node: Activation, Next: Feedback, Prev: Installation, Up: Introduction
  299. 1.3 Activation
  300. ==============
  301. Add the following lines to your `.emacs' file. The last two lines
  302. define _global_ keys for the commands `org-store-link' and `org-agenda'
  303. - please choose suitable keys yourself.
  304. ;; The following lines are always needed. Choose your own keys.
  305. (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
  306. (define-key global-map "\C-cl" 'org-store-link)
  307. (define-key global-map "\C-ca" 'org-agenda)
  308. Furthermore, you must activate `font-lock-mode' in org-mode buffers,
  309. because significant functionality depends on font-locking being active.
  310. You can do this with either one of the following two lines (XEmacs
  311. user must use the second option):
  312. (global-font-lock-mode 1) ; for all buffers
  313. (add-hook 'org-mode-hook 'turn-on-font-lock) ; org-mode buffers only
  314. With this setup, all files with extension `.org' will be put into
  315. Org-mode. As an alternative, make the first line of a file look like
  316. this:
  317. MY PROJECTS -*- mode: org; -*-
  318. which will select Org-mode for this buffer no matter what the file's
  319. name is. See also the variable `org-insert-mode-line-in-empty-file'.
  320. 
  321. File: org, Node: Feedback, Prev: Activation, Up: Introduction
  322. 1.4 Feedback
  323. ============
  324. If you find problems with Org-mode, or if you have questions, remarks,
  325. or ideas about it, please contact the maintainer Carsten Dominik at
  326. <dominik at science dot uva dot nl>.
  327. For bug reports, please provide as much information as possible,
  328. including the version information of Emacs (`C-h v emacs-version
  329. <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
  330. Org-mode related setup in `.emacs'. If an error occurs, a backtrace
  331. can be very useful (see below on how to create one). Often a small
  332. example file helps, along with clear information about:
  333. 1. What exactly did you do?
  334. 2. What did you expect to happen?
  335. 3. What happened instead?
  336. Thank you for helping to improve this mode.
  337. How to create a useful backtrace
  338. ................................
  339. If working with Org-mode produces an error with a message you don't
  340. understand, you may have hit a bug. The best way to report this is by
  341. providing, in addition to what was mentioned above, a _Backtrace_.
  342. This is information from the built-in debugger about where and how the
  343. error occurred. Here is how to produce a useful backtrace:
  344. 1. Start a fresh Emacs or XEmacs, and make sure that it will load the
  345. original Lisp code in `org.el' instead of the compiled version in
  346. `org.elc'. The backtrace contains much more information if it is
  347. produced with uncompiled code. To do this, either rename `org.elc'
  348. to something else before starting Emacs, or ask Emacs explicitly
  349. to load `org.el' by using the command line
  350. emacs -l /path/to/org.el
  351. 2. Go to the `Options' menu and select `Enter Debugger on Error'
  352. (XEmacs has this option in the `Troubleshooting' sub-menu).
  353. 3. Do whatever you have to do to hit the error. Don't forget to
  354. document the steps you take.
  355. 4. When you hit the error, a `*Backtrace*' buffer will appear on the
  356. screen. Save this buffer to a file (for example using `C-x C-w')
  357. and attach it to your bug report.
  358. 
  359. File: org, Node: Document structure, Next: Tables, Prev: Introduction, Up: Top
  360. 2 Document Structure
  361. ********************
  362. Org-mode is based on outline mode and provides flexible commands to
  363. edit the structure of the document.
  364. * Menu:
  365. * Outlines:: Org-mode is based on outline-mode
  366. * Headlines:: How to typeset org-tree headlines
  367. * Visibility cycling:: Show and hide, much simplified
  368. * Motion:: Jumping to other headlines
  369. * Structure editing:: Changing sequence and level of headlines
  370. * Archiving:: Move done task trees to a different place
  371. * Sparse trees:: Matches embedded in context
  372. * Plain lists:: Additional structure within an entry
  373. 
  374. File: org, Node: Outlines, Next: Headlines, Prev: Document structure, Up: Document structure
  375. 2.1 Outlines
  376. ============
  377. Org-mode is implemented on top of outline-mode. Outlines allow to
  378. organize a document in a hierarchical structure, which (at least for
  379. me) is the best representation of notes and thoughts. Overview over
  380. this structure is achieved by folding (hiding) large parts of the
  381. document to show only the general document structure and the parts
  382. currently being worked on. Org-mode greatly simplifies the use of
  383. outlines by compressing the entire show/hide functionality into a
  384. single command `org-cycle', which is bound to the <TAB> key.
  385. 
  386. File: org, Node: Headlines, Next: Visibility cycling, Prev: Outlines, Up: Document structure
  387. 2.2 Headlines
  388. =============
  389. Headlines define the structure of an outline tree. The headlines in
  390. Org-mode start with one or more stars, on the left margin(1). For
  391. example:
  392. * Top level headline
  393. ** Second level
  394. *** 3rd level
  395. some text
  396. *** 3rd level
  397. more text
  398. * Another top level headline
  399. Some people find the many stars too noisy and would prefer an outline
  400. that has whitespace followed by a single star as headline starters.
  401. *Note Clean view:: describes a setup to realize this.
  402. An empty line after the end of a subtree is considered part of it and
  403. will be hidden when the subtree is folded. However, if you leave at
  404. least two empty lines, one empty line will remain visible after folding
  405. the subtree, in order to structure the collapsed view. See the
  406. variable `org-cycle-separator-lines' for modifying this behavior.
  407. ---------- Footnotes ----------
  408. (1) See the variable `org-special-ctrl-a' to configure special
  409. behavior of `C-a' in headlines.
  410. 
  411. File: org, Node: Visibility cycling, Next: Motion, Prev: Headlines, Up: Document structure
  412. 2.3 Visibility cycling
  413. ======================
  414. Outlines make it possible to hide parts of the text in the buffer.
  415. Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
  416. the visibility in the buffer.
  417. `<TAB>'
  418. _Subtree cycling_: Rotate current subtree among the states
  419. ,-> FOLDED -> CHILDREN -> SUBTREE --.
  420. '-----------------------------------'
  421. The cursor must be on a headline for this to work(1). When the
  422. cursor is at the beginning of the buffer and the first line is not
  423. a headline, then <TAB> actually runs global cycling (see
  424. below)(2). Also when called with a prefix argument (`C-u <TAB>'),
  425. global cycling is invoked.
  426. `S-<TAB>'
  427. `C-u <TAB>'
  428. _Global cycling_: Rotate the entire buffer among the states
  429. ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
  430. '--------------------------------------'
  431. When `S-<TAB>' is called with a numerical prefix N, the CONTENTS
  432. view up to headlines of level N will be shown. Note that inside
  433. tables, `S-<TAB>' jumps to the previous field.
  434. `C-c C-a'
  435. Show all.
  436. `C-c C-r'
  437. Reveal context around point, showing the current entry, the
  438. following heading and the hierarchy above. Useful for working
  439. near a location exposed by a sparse tree command (*note Sparse
  440. trees::) or an agenda command (*note Agenda commands::). With
  441. prefix arg show, on each level, all sibling headings.
  442. `C-c C-x b'
  443. Show the current subtree in an indirect buffer(3). With numerical
  444. prefix ARG, go up to this level and then take that tree. If ARG is
  445. negative, go up that many levels. With `C-u' prefix, do not remove
  446. the previously used indirect buffer.
  447. When Emacs first visits an Org-mode file, the global state is set to
  448. OVERVIEW, i.e. only the top level headlines are visible. This can be
  449. configured through the variable `org-startup-folded', or on a per-file
  450. basis by adding one of the following lines anywhere in the buffer:
  451. #+STARTUP: overview
  452. #+STARTUP: content
  453. #+STARTUP: showall
  454. ---------- Footnotes ----------
  455. (1) see, however, the option `org-cycle-emulate-tab'.
  456. (2) see the option `org-cycle-global-at-bob'.
  457. (3) The indirect buffer (*note Indirect Buffers: (emacs)Indirect
  458. Buffers.) will contain the entire buffer, but will be narrowed to the
  459. current tree. Editing the indirect buffer will also change the
  460. original buffer, but without affecting visibility in that buffer.
  461. 
  462. File: org, Node: Motion, Next: Structure editing, Prev: Visibility cycling, Up: Document structure
  463. 2.4 Motion
  464. ==========
  465. The following commands jump to other headlines in the buffer.
  466. `C-c C-n'
  467. Next heading.
  468. `C-c C-p'
  469. Previous heading.
  470. `C-c C-f'
  471. Next heading same level.
  472. `C-c C-b'
  473. Previous heading same level.
  474. `C-c C-u'
  475. Backward to higher level heading.
  476. `C-c C-j'
  477. Jump to a different place without changing the current outline
  478. visibility. Shows the document structure in a temporary buffer,
  479. where you can use the following keys to find your destination:
  480. <TAB> Cycle visibility.
  481. <down> / <up> Next/previous visible headline.
  482. n / p Next/previous visible headline.
  483. f / b Next/previous headline same level.
  484. u One level up.
  485. 0-9 Digit argument.
  486. <RET> Select this location.
  487. 
  488. File: org, Node: Structure editing, Next: Archiving, Prev: Motion, Up: Document structure
  489. 2.5 Structure editing
  490. =====================
  491. `M-<RET>'
  492. Insert new heading with same level as current. If the cursor is
  493. in a plain list item, a new item is created (*note Plain lists::).
  494. To force creation of a new headline, use a prefix arg, or first
  495. press <RET> to get to the beginning of the next line. When this
  496. command is used in the middle of a line, the line is split and the
  497. rest of the line becomes the new headline. If the command is used
  498. at the beginning of a headline, the new headline is created before
  499. the current line. If at the beginning of any other line, the
  500. content of that line is made the new heading. If the command is
  501. used at the end of a folded subtree (i.e. behind the ellipses at
  502. the end of a headline), then a headline like the current one will
  503. be inserted after the end of the subtree.
  504. `M-S-<RET>'
  505. Insert new TODO entry with same level as current heading.
  506. `M-<left>'
  507. Promote current heading by one level.
  508. `M-<right>'
  509. Demote current heading by one level.
  510. `M-S-<left>'
  511. Promote the current subtree by one level.
  512. `M-S-<right>'
  513. Demote the current subtree by one level.
  514. `M-S-<up>'
  515. Move subtree up (swap with previous subtree of same level).
  516. `M-S-<down>'
  517. Move subtree down (swap with next subtree of same level).
  518. `C-c C-x C-w'
  519. `C-c C-x C-k'
  520. Kill subtree, i.e. remove it from buffer but save in kill ring.
  521. `C-c C-x M-w'
  522. Copy subtree to kill ring.
  523. `C-c C-x C-y'
  524. Yank subtree from kill ring. This does modify the level of the
  525. subtree to make sure the tree fits in nicely at the yank position.
  526. The yank level can also be specified with a prefix arg, or by
  527. yanking after a headline marker like `****'.
  528. `C-c ^'
  529. Sort same-level entries. When there is an active region, all
  530. entries in the region will be sorted. Otherwise the children of
  531. the current headline are sorted. The command prompts for the
  532. sorting method, which can be alphabetically, numerically, by time
  533. (using the first time stamp in each entry), and each of these in
  534. reverse order. With a `C-u' prefix, sorting will be
  535. case-sensitive. With two `C-u C-u' prefixes, duplicate entries
  536. will also be removed.
  537. When there is an active region (transient-mark-mode), promotion and
  538. demotion work on all headlines in the region. To select a region of
  539. headlines, it is best to place both point and mark at the beginning of a
  540. line, mark at the beginning of the first headline, and point at the line
  541. just after the last headline to change. Note that when the cursor is
  542. inside a table (*note Tables::), the Meta-Cursor keys have different
  543. functionality.
  544. 
  545. File: org, Node: Archiving, Next: Sparse trees, Prev: Structure editing, Up: Document structure
  546. 2.6 Archiving
  547. =============
  548. When a project represented by a (sub)tree is finished, you may want to
  549. move the tree out of the way and to stop it from contributing to the
  550. agenda. Org-mode knows two ways of archiving. You can mark a tree with
  551. the ARCHIVE tag, or you can move an entire (sub)tree to a different
  552. location.
  553. * Menu:
  554. * ARCHIVE tag:: Marking a tree as inactive
  555. * Moving subtrees:: Moving a tree to an archive file
  556. 
  557. File: org, Node: ARCHIVE tag, Next: Moving subtrees, Prev: Archiving, Up: Archiving
  558. 2.6.1 The ARCHIVE tag
  559. ---------------------
  560. A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
  561. its location in the outline tree, but behaves in the following way:
  562. - It does not open when you attempt to do so with a visibility
  563. cycling command (*note Visibility cycling::). You can force
  564. cycling archived subtrees with `C-<TAB>', or by setting the option
  565. `org-cycle-open-archived-trees'. Also normal outline commands like
  566. `show-all' will open archived subtrees.
  567. - During sparse tree construction (*note Sparse trees::), matches in
  568. archived subtrees are not exposed, unless you configure the option
  569. `org-sparse-tree-open-archived-trees'.
  570. - During agenda view construction (*note Agenda views::), the
  571. content of archived trees is ignored unless you configure the
  572. option `org-agenda-skip-archived-trees'.
  573. - Archived trees are not exported (*note Exporting::), only the
  574. headline is. Configure the details using the variable
  575. `org-export-with-archived-trees'.
  576. The following commands help managing the ARCHIVE tag:
  577. `C-c C-x C-a'
  578. Toggle the ARCHIVE tag for the current headline. When the tag is
  579. set, the headline changes to a shadowish face, and the subtree
  580. below it is hidden.
  581. `C-u C-c C-x C-a'
  582. Check if any direct children of the current headline should be
  583. archived. To do this, each subtree is checked for open TODO
  584. entries. If none are found, the command offers to set the ARCHIVE
  585. tag for the child. If the cursor is _not_ on a headline when this
  586. command is invoked, the level 1 trees will be checked.
  587. `C-TAB'
  588. Cycle a tree even if it is tagged with ARCHIVE.
  589. 
  590. File: org, Node: Moving subtrees, Prev: ARCHIVE tag, Up: Archiving
  591. 2.6.2 Moving subtrees
  592. ---------------------
  593. Once an entire project is finished, you may want to move it to a
  594. different location, either in the current file, or even in a different
  595. file, the archive file.
  596. `C-c C-x C-s'
  597. Archive the subtree starting at the cursor position to the location
  598. given by `org-archive-location'.
  599. `C-u C-c C-x C-s'
  600. Check if any direct children of the current headline could be
  601. moved to the archive. To do this, each subtree is checked for
  602. open TODO entries. If none are found, the command offers to move
  603. it to the archive location. If the cursor is _not_ on a headline
  604. when this command is invoked, the level 1 trees will be checked.
  605. The default archive location is a file in the same directory as the
  606. current file, with the name derived by appending `_archive' to the
  607. current file name. For information and examples on how to change this,
  608. see the documentation string of the variable `org-archive-location'.
  609. There is also an in-buffer option for setting this variable, for example
  610. #+ARCHIVE: %s_done::
  611. You may have several such lines in the buffer, they will then be valid
  612. for the entries following the line (the first will also apply to any
  613. text before it).
  614. 
  615. File: org, Node: Sparse trees, Next: Plain lists, Prev: Archiving, Up: Document structure
  616. 2.7 Sparse trees
  617. ================
  618. An important feature of Org-mode is the ability to construct _sparse
  619. trees_ for selected information in an outline tree. A sparse tree
  620. means that the entire document is folded as much as possible, but the
  621. selected information is made visible along with the headline structure
  622. above it(1). Just try it out and you will see immediately how it works.
  623. Org-mode contains several commands creating such trees. The most
  624. basic one is `org-occur':
  625. `C-c /'
  626. Occur. Prompts for a regexp and shows a sparse tree with all
  627. matches. If the match is in a headline, the headline is made
  628. visible. If the match is in the body of an entry, headline and
  629. body are made visible. In order to provide minimal context, also
  630. the full hierarchy of headlines above the match is shown, as well
  631. as the headline following the match. Each match is also
  632. highlighted; the highlights disappear when the buffer is changes
  633. an editing command, or by pressing `C-c C-c'. When called with a
  634. `C-u' prefix argument, previous highlights are kept, so several
  635. calls to this command can be stacked.
  636. For frequently used sparse trees of specific search strings, you can
  637. use the variable `org-agenda-custom-commands' to define fast keyboard
  638. access to specific sparse trees. These commands will then be
  639. accessible through the agenda dispatcher (*note Agenda dispatcher::).
  640. For example:
  641. (setq org-agenda-custom-commands
  642. '(("f" occur-tree "FIXME")))
  643. will define the key `C-c a f' as a shortcut for creating a sparse tree
  644. matching the string `FIXME'.
  645. Other commands use sparse trees as well. For example `C-c C-v'
  646. creates a sparse TODO tree (*note TODO basics::).
  647. To print a sparse tree, you can use the Emacs command
  648. `ps-print-buffer-with-faces' which does not print invisible parts of
  649. the document (2). Or you can use the command `C-c C-e v' to export
  650. only the visible part of the document and print the resulting file.
  651. ---------- Footnotes ----------
  652. (1) See also the variables `org-show-hierarchy-above',
  653. `org-show-following-heading', and `org-show-siblings' for detailed
  654. control on how much context is shown around each match.
  655. (2) This does not work under XEmacs, because XEmacs uses selective
  656. display for outlining, not text properties.
  657. 
  658. File: org, Node: Plain lists, Prev: Sparse trees, Up: Document structure
  659. 2.8 Plain lists
  660. ===============
  661. Within an entry of the outline tree, hand-formatted lists can provide
  662. additional structure. They also provide a way to create lists of
  663. checkboxes (*note Checkboxes::). Org-mode supports editing such lists,
  664. and the HTML exporter (*note Exporting::) does parse and format them.
  665. Org-mode knows ordered and unordered lists. Unordered list items
  666. start with `-', `+', or `*'(1) as bullets. Ordered list items start
  667. with `1.' or `1)'. Items belonging to the same list must have the same
  668. indentation on the first line. In particular, if an ordered list
  669. reaches number `10.', then the 2-digit numbers must be written
  670. left-aligned with the other numbers in the list. Indentation also
  671. determines the end of a list item. It ends before the next line that
  672. is indented like the bullet/number, or less. Empty lines are part of
  673. the previous item, so you can have several paragraphs in one item. If
  674. you would like an emtpy line to terminate all currently open plain
  675. lists, configure the variable `org-empty-line-terminates-plain-lists'.
  676. Here is an for example:
  677. ** Lord of the Rings
  678. My favorite scenes are (in this order)
  679. 1. The attack of the Rohirrim
  680. 2. Eowyns fight with the witch king
  681. + this was already my favorite scene in the book
  682. + I really like Miranda Otto.
  683. 3. Peter Jackson being shot by Legolas
  684. - on DVD only
  685. He makes a really funny face when it happens.
  686. But in the end, not individual scenes matter but the film as a whole.
  687. Org-mode supports these lists by tuning filling and wrapping
  688. commands to deal with them correctly(2).
  689. The following commands act on items when the cursor is in the first
  690. line of an item (the line with the bullet or number).
  691. `<TAB>'
  692. Items can be folded just like headline levels if you set the
  693. variable `org-cycle-include-plain-lists'. The level of an item is
  694. then given by the indentation of the bullet/number. Items are
  695. always subordinate to real headlines, however; the hierarchies
  696. remain completely separated.
  697. `M-<RET>'
  698. Insert new item at current level. With prefix arg, force a new
  699. heading (*note Structure editing::). If this command is used in
  700. the middle of a line, the line is _split_ and the rest of the line
  701. becomes the new item. If this command is executed in the
  702. _whitespace before a bullet or number_, the new item is created
  703. _before_ the current item. If the command is executed in the
  704. white space before the text that is part of an item but does not
  705. contain the bullet, a bullet is added to the current line.
  706. `M-S-<RET>'
  707. Insert a new item with a checkbox (*note Checkboxes::).
  708. `S-<up>'
  709. `S-<down>'
  710. Jump to the previous/next item in the current list.
  711. `M-S-<up>'
  712. `M-S-<down>'
  713. Move the item including subitems up/down (swap with previous/next
  714. item of same indentation). If the list is ordered, renumbering is
  715. automatic.
  716. `M-S-<left>'
  717. `M-S-<right>'
  718. Decrease/increase the indentation of the item, including subitems.
  719. Initially, the item tree is selected based on current indentation.
  720. When these commands are executed several times in direct
  721. succession, the initially selected region is used, even if the new
  722. indentation would imply a different hierarchy. To use the new
  723. hierarchy, break the command chain with a cursor motion or so.
  724. `C-c C-c'
  725. If there is a checkbox (*note Checkboxes::) in the item line,
  726. toggle the state of the checkbox. Otherwise, if this is an
  727. ordered list, renumber the ordered list at the cursor.
  728. ---------- Footnotes ----------
  729. (1) When using `*' as a bullet, lines must be indented or they will
  730. be seen as top-level headlines. Also, when you are hiding leading
  731. stars to get a clean outline view, plain list items starting with a
  732. star are visually indistinguishable from true headlines. In short:
  733. even though `*' is supported, it may be better not to use it for plain
  734. list items.
  735. (2) Org-mode only changes the filling settings for Emacs. For
  736. XEmacs, you should use Kyle E. Jones' `filladapt.el'. To turn this on,
  737. put into `.emacs':
  738. (require 'filladapt)
  739. 
  740. File: org, Node: Tables, Next: Hyperlinks, Prev: Document structure, Up: Top
  741. 3 Tables
  742. ********
  743. Org-mode has a very fast and intuitive table editor built-in.
  744. Spreadsheet-like calculations are supported in connection with the
  745. Emacs `calc' package.
  746. * Menu:
  747. * Built-in table editor:: Simple tables
  748. * Narrow columns:: Stop wasting space in tables
  749. * Column groups:: Grouping to trigger vertical lines
  750. * orgtbl-mode:: The table editor as minor mode
  751. * The spreadsheet:: The table editor has spreadsheet capabilities.
  752. 
  753. File: org, Node: Built-in table editor, Next: Narrow columns, Prev: Tables, Up: Tables
  754. 3.1 The built-in table editor
  755. =============================
  756. Org-mode makes it easy to format tables in plain ASCII. Any line with
  757. `|' as the first non-white character is considered part of a table.
  758. `|' is also the column separator. A table might look like this:
  759. | Name | Phone | Age |
  760. |-------+-------+-----|
  761. | Peter | 1234 | 17 |
  762. | Anna | 4321 | 25 |
  763. A table is re-aligned automatically each time you press <TAB> or
  764. <RET> or `C-c C-c' inside the table. <TAB> also moves to the next
  765. field (<RET> to the next row) and creates new table rows at the end of
  766. the table or before horizontal lines. The indentation of the table is
  767. set by the first line. Any line starting with `|-' is considered as a
  768. horizontal separator line and will be expanded on the next re-align to
  769. span the whole table width. So, to create the above table, you would
  770. only type
  771. |Name|Phone|Age|
  772. |-
  773. and then press <TAB> to align the table and start filling in fields.
  774. When typing text into a field, Org-mode treats <DEL>, <Backspace>,
  775. and all character keys in a special way, so that inserting and deleting
  776. avoids shifting other fields. Also, when typing _immediately after the
  777. cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
  778. the field is automatically made blank. If this behavior is too
  779. unpredictable for you, configure the variables
  780. `org-enable-table-editor' and `org-table-auto-blank-field'.
  781. Creation and conversion
  782. .......................
  783. `C-c |'
  784. Convert the active region to table. If every line contains at
  785. least one TAB character, the function assumes that the material is
  786. tab separated. If not, lines are split at whitespace into fields.
  787. You can use a prefix argument to indicate the minimum number of
  788. consecutive spaces required to identify a field separator
  789. (default: just one).
  790. If there is no active region, this command creates an empty
  791. Org-mode table. But it's easier just to start typing, like
  792. `|Name|Phone|Age <RET> |- <TAB>'.
  793. Re-aligning and field motion
  794. ............................
  795. `C-c C-c'
  796. Re-align the table without moving the cursor.
  797. `<TAB>'
  798. Re-align the table, move to the next field. Creates a new row if
  799. necessary.
  800. `S-<TAB>'
  801. Re-align, move to previous field.
  802. `<RET>'
  803. Re-align the table and move down to next row. Creates a new row if
  804. necessary. At the beginning or end of a line, <RET> still does
  805. NEWLINE, so it can be used to split a table.
  806. Column and row editing
  807. ......................
  808. `M-<left>'
  809. `M-<right>'
  810. Move the current column left/right.
  811. `M-S-<left>'
  812. Kill the current column.
  813. `M-S-<right>'
  814. Insert a new column to the left of the cursor position.
  815. `M-<up>'
  816. `M-<down>'
  817. Move the current row up/down.
  818. `M-S-<up>'
  819. Kill the current row or horizontal line.
  820. `M-S-<down>'
  821. Insert a new row above (with arg: below) the current row.
  822. `C-c -'
  823. Insert a horizontal line below current row. With prefix arg, the
  824. line is created above the current line.
  825. `C-c ^'
  826. Sort the table lines in the region. The position of point
  827. indicates the column to be used for sorting, and the range of
  828. lines is the range between the nearest horizontal separator lines,
  829. or the entire table. If point is before the first column, you
  830. will be prompted for the sorting column. If there is an active
  831. region, the mark specifies the first line and the sorting column,
  832. while point should be in the last line to be included into the
  833. sorting. The command prompts for the sorting type
  834. (alphabetically, numerically, or by time). When called with a
  835. prefix argument, alphabetic sorting will be case-sensitive.
  836. Regions
  837. .......
  838. `C-c C-x M-w'
  839. Copy a rectangular region from a table to a special clipboard.
  840. Point and mark determine edge fields of the rectangle. The
  841. process ignores horizontal separator lines.
  842. `C-c C-x C-w'
  843. Copy a rectangular region from a table to a special clipboard, and
  844. blank all fields in the rectangle. So this is the "cut" operation.
  845. `C-c C-x C-y'
  846. Paste a rectangular region into a table. The upper right corner
  847. ends up in the current field. All involved fields will be
  848. overwritten. If the rectangle does not fit into the present table,
  849. the table is enlarged as needed. The process ignores horizontal
  850. separator lines.
  851. `C-c C-q'
  852. Wrap several fields in a column like a paragraph. If there is an
  853. active region, and both point and mark are in the same column, the
  854. text in the column is wrapped to minimum width for the given
  855. number of lines. A prefix ARG may be used to change the number of
  856. desired lines. If there is no region, the current field is split
  857. at the cursor position and the text fragment to the right of the
  858. cursor is prepended to the field one line down. If there is no
  859. region, but you specify a prefix ARG, the current field is made
  860. blank, and the content is appended to the field above.
  861. Calculations
  862. ............
  863. `C-c +'
  864. Sum the numbers in the current column, or in the rectangle defined
  865. by the active region. The result is shown in the echo area and can
  866. be inserted with `C-y'.
  867. `S-<RET>'
  868. When current field is empty, copy from first non-empty field above.
  869. When not empty, copy current field down to next row and move cursor
  870. along with it. Depending on the variable
  871. `org-table-copy-increment', integer field values will be
  872. incremented during copy. This key is also used by CUA-mode (*note
  873. Cooperation::).
  874. Miscellaneous
  875. .............
  876. `C-c `'
  877. Edit the current field in a separate window. This is useful for
  878. fields that are not fully visible (*note Narrow columns::). When
  879. called with a `C-u' prefix, just make the full field visible, so
  880. that it can be edited in place.
  881. `C-c <TAB>'
  882. This is an alias for `C-u C-c `' to make the current field fully
  883. visible.
  884. `M-x org-table-import'
  885. Import a file as a table. The table should be TAB- or whitespace
  886. separated. Useful, for example, to import an Excel table or data
  887. from a database, because these programs generally can write
  888. TAB-separated text files. This command works by inserting the
  889. file into the buffer and then converting the region to a table.
  890. Any prefix argument is passed on to the converter, which uses it
  891. to determine the separator.
  892. `C-c |'
  893. Tables can also be imported by pasting tabular text into the
  894. org-mode buffer, selecting the pasted text with `C-x C-x' and then
  895. using the `C-c |' command (see above under Creation and conversion.
  896. `M-x org-table-export'
  897. Export the table as a TAB-separated file. Useful for data
  898. exchange with, for example, Excel or database programs.
  899. If you don't like the automatic table editor because it gets in your
  900. way on lines which you would like to start with `|', you can turn it
  901. off with
  902. (setq org-enable-table-editor nil)
  903. Then the only table command that still works is `C-c C-c' to do a
  904. manual re-align.
  905. 
  906. File: org, Node: Narrow columns, Next: Column groups, Prev: Built-in table editor, Up: Tables
  907. 3.2 Narrow columns
  908. ==================
  909. The width of columns is automatically determined by the table editor.
  910. Sometimes a single field or a few fields need to carry more text,
  911. leading to inconveniently wide columns. To limit(1) the width of a
  912. column, one field anywhere in the column may contain just the string
  913. `<N>' where `N' is an integer specifying the width of the column in
  914. characters. The next re-align will then set the width of this column
  915. to no more than this value.
  916. |---+------------------------------| |---+--------|
  917. | | | | | <6> |
  918. | 1 | one | | 1 | one |
  919. | 2 | two | ----\ | 2 | two |
  920. | 3 | This is a long chunk of text | ----/ | 3 | This=> |
  921. | 4 | four | | 4 | four |
  922. |---+------------------------------| |---+--------|
  923. Fields that are wider become clipped and end in the string `=>'. Note
  924. that the full text is still in the buffer, it is only invisible. To
  925. see the full text, hold the mouse over the field - a tool-tip window
  926. will show the full content. To edit such a field, use the command `C-c
  927. `' (that is `C-c' followed by the backquote). This will open a new
  928. window with the full field. Edit it and finish with `C-c C-c'.
  929. When visiting a file containing a table with narrowed columns, the
  930. necessary character hiding has not yet happened, and the table needs to
  931. be aligned before it looks nice. Setting the option
  932. `org-startup-align-all-tables' will realign all tables in a file upon
  933. visiting, but also slow down startup. You can also set this option on
  934. a per-file basis with:
  935. #+STARTUP: align
  936. #+STARTUP: noalign
  937. ---------- Footnotes ----------
  938. (1) This feature does not work on XEmacs.
  939. 
  940. File: org, Node: Column groups, Next: orgtbl-mode, Prev: Narrow columns, Up: Tables
  941. 3.3 Column groups
  942. =================
  943. When Org-mode exports tables, it does so by default without vertical
  944. lines because that is visually more satisfying in general. Occasionally
  945. however, vertical lines can be useful to structure a table into groups
  946. of columns, much like horizontal lines can do for groups of rows. In
  947. order to specify column groups, you can use a special row where the
  948. first field contains only `/'. The further fields can either contain
  949. `<' to indicate that this column should start a group, `>' to indicate
  950. the end of a column, or `<>' to make a column a group of its own.
  951. Boundaries between colum groups will upon export be marked with
  952. vertical lines. Here is an example:
  953. | | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
  954. |---+----+-----+-----+-----+---------+------------|
  955. | / | <> | < | | > | < | > |
  956. | # | 1 | 1 | 1 | 1 | 1 | 1 |
  957. | # | 2 | 4 | 8 | 16 | 1.4142 | 1.1892 |
  958. | # | 3 | 9 | 27 | 81 | 1.7321 | 1.3161 |
  959. |---+----+-----+-----+-----+---------+------------|
  960. #+TBLFM: $3=$2^2::$4=$2^3::$5=$2^4::$6=sqrt($2)::$7=sqrt(sqrt(($2))
  961. It is also sufficient to just insert the colum group starters after
  962. every vertical line you'd like to have:
  963. | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
  964. |----+-----+-----+-----+---------+------------|
  965. | / | < | | | < | |
  966. 
  967. File: org, Node: orgtbl-mode, Next: The spreadsheet, Prev: Column groups, Up: Tables
  968. 3.4 The Orgtbl minor mode
  969. =========================
  970. If you like the intuitive way the Org-mode table editor works, you
  971. might also want to use it in other modes like text-mode or mail-mode.
  972. The minor mode Orgtbl-mode makes this possible. You can always toggle
  973. the mode with `M-x orgtbl-mode'. To turn it on by default, for example
  974. in mail mode, use
  975. (add-hook 'mail-mode-hook 'turn-on-orgtbl)
  976. Furthermore, with some special setup, it is possible to maintain
  977. tables in arbitrary syntax with Orgtbl-mode. For example, it is
  978. possible to construct LaTeX tables with the underlying ease and power of
  979. Orgtbl-mode, including spreadsheet capabilities. For details, see
  980. *Note Tables in arbitrary syntax::.
  981. 
  982. File: org, Node: The spreadsheet, Prev: orgtbl-mode, Up: Tables
  983. 3.5 The spreadsheet
  984. ===================
  985. The table editor makes use of the Emacs `calc' package to implement
  986. spreadsheet-like capabilities. It can also evaluate Emacs Lisp forms to
  987. derive fields from other fields. While fully featured, Org-mode's
  988. implementation is not identical to other spreadsheets. For example,
  989. Org-mode knows the concept of a _column formula_ that will be applied
  990. to all non-header fields in a column without having to copy the formula
  991. to each relevant field.
  992. * Menu:
  993. * References:: How to refer to another field or range
  994. * Formula syntax for Calc:: Using Calc to compute stuff
  995. * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
  996. * Field formulas:: Formulas valid for a single field
  997. * Column formulas:: Formulas valid for an entire column
  998. * Editing and debugging formulas:: Fixing formulas
  999. * Updating the table:: Recomputing all dependent fields
  1000. * Advanced features:: Field names, parameters and automatic recalc
  1001. 
  1002. File: org, Node: References, Next: Formula syntax for Calc, Prev: The spreadsheet, Up: The spreadsheet
  1003. 3.5.1 References
  1004. ----------------
  1005. To compute fields in the table from other fields, formulas must
  1006. reference other fields or ranges. In Org-mode, fields can be referenced
  1007. by name, by absolute coordinates, and by relative coordinates. To find
  1008. out what the coordinates of a field are, press `C-c ?' in that field,
  1009. or press `C-c }' to toggle the display of a grid.
  1010. Field references
  1011. ................
  1012. Formulas can reference the value of another field in two ways. Like in
  1013. any other spreadsheet, you may reference fields with a letter/number
  1014. combination like `B3', meaning the 2nd field in the 3rd row.
  1015. Org-mode also uses another, more general operator that looks like this:
  1016. @row$column
  1017. Column references can be absolute like `1', `2',...`N', or relative to
  1018. the current column like `+1' or `-2'.
  1019. The row specification only counts data lines and ignores horizontal
  1020. separator lines (hlines). You can use absolute row numbers `1'...`N',
  1021. and row numbers relative to the current row like `+3' or `-1'. Or
  1022. specify the row relative to one of the hlines: `I' refers to the first
  1023. hline, `II' to the second etc. `-I' refers to the first such line
  1024. above the current line, `+I' to the first such line below the current
  1025. line. You can also write `III+2' which is the second data line after
  1026. the third hline in the table. Relative row numbers like `-3' will not
  1027. cross hlines if the current line is too close to the hline. Instead,
  1028. the value directly at the hline is used.
  1029. `0' refers to the current row and column. Also, if you omit either
  1030. the column or the row part of the reference, the current row/column is
  1031. implied.
  1032. Org-mode's references with _unsigned_ numbers are fixed references
  1033. in the sense that if you use the same reference in the formula for two
  1034. different fields, the same field will be referenced each time.
  1035. Org-mode's references with _signed_ numbers are floating references
  1036. because the same reference operator can reference different fields
  1037. depending on the field being calculated by the formula.
  1038. Here are a few examples:
  1039. @2$3 2nd row, 3rd column
  1040. C2 same as previous
  1041. $5 column 5 in the current row
  1042. E& same as previous
  1043. @2 current column, row 2
  1044. @-1$-3 the field one row up, three columns to the left
  1045. @-I$2 field just under hline above current row, column 2
  1046. Range references
  1047. ................
  1048. You may reference a rectangular range of fields by specifying two field
  1049. references connected by two dots `..'. If both fields are in the
  1050. current row, you may simply use `$2..$7', but if at least one field is
  1051. in a different row, you need to use the general `@row$column' format at
  1052. least for the first field (i.e the reference must start with `@' in
  1053. order to be interpreted correctly). Examples:
  1054. $1..$3 First three fields in the current row.
  1055. $P..$Q Range, using column names (see under Advanced)
  1056. @2$1..@4$3 6 fields between these two fields.
  1057. A2..C4 Same as above.
  1058. @-1$-2..@-1 3 numbers from the column to the left, 2 up to current row
  1059. Range references return a vector of values that can be fed into Calc
  1060. vector functions. Empty fields in ranges are normally suppressed, so
  1061. that the vector contains only the non-empty fields (but see the `E'
  1062. mode switch below). If there are no non-empty fields, `[0]' is
  1063. returned to avoid syntax errors in formulas.
  1064. Named references
  1065. ................
  1066. `$name' is interpreted as the name of a column, parameter or constant.
  1067. Constants are defined globally through the variable
  1068. `org-table-formula-constants'. If you have the `constants.el' package,
  1069. it will also be used to resolve constants, including natural constants
  1070. like `$h' for Planck's constant, and units like `$km' for
  1071. kilometers(1). Column names and parameters can be specified in special
  1072. table lines. These are described below, see *Note Advanced features::.
  1073. All names must start with a letter, and further consist of letters and
  1074. numbers.
  1075. ---------- Footnotes ----------
  1076. (1) `Constant.el' can supply the values of constants in two
  1077. different unit systems, `SI' and `cgs'. Which one is used depends on
  1078. the value of the variable `constants-unit-system'. You can use the
  1079. `#+STARTUP' options `constSI' and `constcgs' to set this value for the
  1080. current buffer.
  1081. 
  1082. File: org, Node: Formula syntax for Calc, Next: Formula syntax for Lisp, Prev: References, Up: The spreadsheet
  1083. 3.5.2 Formula syntax for Calc
  1084. -----------------------------
  1085. A formula can be any algebraic expression understood by the Emacs
  1086. `Calc' package. Note that `calc' has the non-standard convention that
  1087. `/' has lower precedence than `*', so that `a/b*c' is interpreted as
  1088. `a/(b*c)'. Before evaluation by `calc-eval' (*note calc-eval:
  1089. (calc)Calling Calc from Your Programs.), variable substitution takes
  1090. place according to the rules described above. The range vectors can be
  1091. directly fed into the calc vector functions like `vmean' and `vsum'.
  1092. A formula can contain an optional mode string after a semicolon.
  1093. This string consists of flags to influence Calc and other modes during
  1094. execution. By default, Org-mode uses the standard calc modes (precision
  1095. 12, angular units degrees, fraction and symbolic modes off. The display
  1096. format, however, has been changed to `(float 5)' to keep tables
  1097. compact. The default settings can be configured using the variable
  1098. `org-calc-default-modes'.
  1099. p20 switch the internal precision to 20 digits
  1100. n3 s3 e2 f4 normal, scientific, engineering, or fixed display format
  1101. D R angle modes: degrees, radians
  1102. F S fraction and symbolic modes
  1103. N interpret all fields as numbers, use 0 for non-numbers
  1104. T force text interpretation
  1105. E keep empty fields in ranges
  1106. In addition, you may provide a `printf' format specifier to reformat
  1107. the final result. A few examples:
  1108. $1+$2 Sum of first and second field
  1109. $1+$2;%.2f Same, format result to two decimals
  1110. exp($2)+exp($1) Math functions can be used
  1111. $0;%.1f Reformat current cell to 1 decimal
  1112. ($3-32)*5/9 Degrees F -> C conversion
  1113. $c/$1/$cm Hz -> cm conversion, using `constants.el'
  1114. tan($1);Dp3s1 Compute in degrees, precision 3, display SCI 1
  1115. sin($1);Dp3%.1e Same, but use printf specifier for display
  1116. vmean($2..$7) Compute column range mean, using vector function
  1117. vmean($2..$7);EN Same, but treat empty fields as 0
  1118. taylor($3,x=7,2) taylor series of $3, at x=7, second degree
  1119. Calc also contains a complete set of logical operations. For example
  1120. if($1<20,teen,string("")) "teen" if age $1 less than 20, else empty
  1121. 
  1122. File: org, Node: Formula syntax for Lisp, Next: Field formulas, Prev: Formula syntax for Calc, Up: The spreadsheet
  1123. 3.5.3 Emacs Lisp forms as formulas
  1124. ----------------------------------
  1125. It is also possible to write a formula in Emacs Lisp; this can be useful
  1126. for string manipulation and control structures, if the Calc's
  1127. functionality is not enough. If a formula starts with a single quote
  1128. followed by an opening parenthesis, then it is evaluated as a lisp form.
  1129. The evaluation should return either a string or a number. Just as with
  1130. `calc' formulas, you can specify modes and a printf format after a
  1131. semicolon. A reference will be replaced with a string (in double
  1132. quotes) containing the field. If you provide the `N' mode switch, all
  1133. referenced elements will be numbers. Ranges are inserted as
  1134. space-separated fields, so you can embed them in list or vector syntax.
  1135. A few examples, note how the `N' mode is used when we do computations
  1136. in lisp.
  1137. Swap the first two characters of the content of column 1
  1138. '(concat (substring $1 1 2) (substring $1 0 1) (substring $1 2))
  1139. Add columns 1 and 2, equivalent to the Calc's `$1+$2'
  1140. '(+ $1 $2);N
  1141. Compute the sum of columns 1-4, like Calc's `vsum($1..$4)'
  1142. '(apply '+ '($1..$4));N
  1143. 
  1144. File: org, Node: Field formulas, Next: Column formulas, Prev: Formula syntax for Lisp, Up: The spreadsheet
  1145. 3.5.4 Field formulas
  1146. --------------------
  1147. To assign a formula to a particular field, type it directly into the
  1148. field, preceded by `:=', for example `:=$1+$2'. When you press <TAB>
  1149. or <RET> or `C-c C-c' with the cursor still in the field, the formula
  1150. will be stored as the formula for this field, evaluated, and the
  1151. current field replaced with the result.
  1152. Formulas are stored in a special line starting with `#+TBLFM:'
  1153. directly below the table. If you typed the equation in the 4th field of
  1154. the 3rd data line in the table, the formula will look like
  1155. `@3$4=$1+$2'. When inserting/deleting/swapping column and rows with
  1156. the appropriate commands, absolute references (but not relative ones)
  1157. in stored formulas are modified in order to still reference the same
  1158. field. Of cause this is not true if you edit the table structure with
  1159. normal editing commands - then you must fix the equations yourself.
  1160. Instead of typing an equation into the field, you may also use the
  1161. following command
  1162. `C-u C-c ='
  1163. Install a new formula for the current field. The command prompts
  1164. for a formula, with default taken from the `#+TBLFM:' line, applies
  1165. it to the current field and stores it.
  1166. 
  1167. File: org, Node: Column formulas, Next: Editing and debugging formulas, Prev: Field formulas, Up: The spreadsheet
  1168. 3.5.5 Column formulas
  1169. ---------------------
  1170. Often in a table, the same formula should be used for all fields in a
  1171. particular column. Instead of having to copy the formula to all fields
  1172. in that column, org-mode allows to assign a single formula to an entire
  1173. column. If the table contains horizontal separator hlines, everything
  1174. before the first such line is considered part of the table _header_ and
  1175. will not be modified by column formulas.
  1176. To assign a formula to a column, type it directly into any field in
  1177. the column, preceded by an equal sign, like `=$1+$2'. When you press
  1178. <TAB> or <RET> or `C-c C-c' with the cursor still in the field, the
  1179. formula will be stored as the formula for the current column, evaluated
  1180. and the current field replaced with the result. If the field contains
  1181. only `=', the previously stored formula for this column is used. For
  1182. each column, Org-mode will only remember the most recently used
  1183. formula. In the `TBLFM:' line, column formulas will look like
  1184. `$4=$1+$2'.
  1185. Instead of typing an equation into the field, you may also use the
  1186. following command:
  1187. `C-c ='
  1188. Install a new formula for the current column and replace current
  1189. field with the result of the formula. The command prompts for a
  1190. formula, with default taken from the `#+TBLFM' line, applies it to
  1191. the current field and stores it. With a numerical prefix (e.g.
  1192. `C-5 C-c =') will apply it to that many consecutive fields in the
  1193. current column.
  1194. 
  1195. File: org, Node: Editing and debugging formulas, Next: Updating the table, Prev: Column formulas, Up: The spreadsheet
  1196. 3.5.6 Editing and Debugging formulas
  1197. ------------------------------------
  1198. You can edit individual formulas in the minibuffer or directly in the
  1199. field. Org-mode can also prepare a special buffer with all active
  1200. formulas of a table. When offering a formula for editing, Org-mode
  1201. converts references to the standard format (like `B3' or `D&') if
  1202. possible. If you prefer to only work with the internal format (like
  1203. `@3$2' or `$4'), configure the variable
  1204. `org-table-use-standard-references'.
  1205. `C-c ='
  1206. `C-u C-c ='
  1207. Edit the formula associated with the current column/field in the
  1208. minibuffer. See *Note Column formulas:: and *Note Field
  1209. formulas::.
  1210. `C-u C-u C-c ='
  1211. Re-insert the active formula (either a field formula, or a column
  1212. formula) into the current field, so that you can edit it directly
  1213. in the field. The advantage over editing in the minibuffer is
  1214. that you can use the command `C-c ?'.
  1215. `C-c ?'
  1216. While editing a formula in a table field, highlight the field(s)
  1217. referenced by the reference at the cursor position in the formula.
  1218. `C-c }'
  1219. Toggle the display of row and column numbers for a table, using
  1220. overlays. These are updated each time the table is aligned, you
  1221. can force it with `C-c C-c'.
  1222. `C-c {'
  1223. Toggle the formula debugger on and off. See below.
  1224. `C-c ''
  1225. Edit all formulas for the current table in a special buffer, where
  1226. the formulas will be displayed one per line. If the current field
  1227. has an active formula, the cursor in the formula editor will mark
  1228. it. While inside the special buffer, Org-mode will automatically
  1229. highlight any field or range reference at the cursor position.
  1230. You may edit, remove and add formulas, and use the following
  1231. commands:
  1232. `C-c C-c'
  1233. `C-x C-s'
  1234. Exit the formula editor and store the modified formulas.
  1235. With `C-u' prefix, also apply the new formulas to the entire
  1236. table.
  1237. `C-c C-q'
  1238. Exit the formula editor without installing changes.
  1239. `C-c C-r'
  1240. Toggle all references in the formula editor between standard
  1241. (like `B3') and internal (like `@3$2').
  1242. `<TAB>'
  1243. Pretty-print or indent lisp formula at point. When in a line
  1244. containing a lisp formula, format the formula according to
  1245. Emacs Lisp rules. Another <TAB> collapses the formula back
  1246. again. In the open formula, <TAB> re-indents just like in
  1247. Emacs-lisp-mode.
  1248. `M-<TAB>'
  1249. Complete Lisp symbols, just like in Emacs-lisp-mode.
  1250. `S-<up>/<down>/<left>/<right>'
  1251. Shift the reference at point. For example, if the reference
  1252. is `B3' and you press `S-<right>', it will become `C3'. This
  1253. also works for relative references, and for hline references.
  1254. `M-S-<up>/<down>'
  1255. Move the test line for column formulas in the Org-mode buffer
  1256. up and down.
  1257. `M-<up>/<down>'
  1258. Scroll the window displaying the table.
  1259. `C-c }'
  1260. Turn the coordinate grid in the table on and off.
  1261. Making a table field blank does not remove the formula associated
  1262. with the field, because that is stored in a different line (the `TBLFM'
  1263. line) - during the next recalculation the field will be filled again.
  1264. To remove a formula from a field, you have to give an empty reply when
  1265. prompted for the formula, or to edit the `#+TBLFM' line.
  1266. You may edit the `#+TBLFM' directly and re-apply the changed
  1267. equations with `C-c C-c' in that line, or with the normal recalculation
  1268. commands in the table.
  1269. Debugging formulas
  1270. ..................
  1271. When the evaluation of a formula leads to an error, the field content
  1272. becomes the string `#ERROR'. If you would like see what is going on
  1273. during variable substitution and calculation in order to find a bug,
  1274. turn on formula debugging in the `Tbl' menu and repeat the calculation,
  1275. for example by pressing `C-u C-u C-c = <RET>' in a field. Detailed
  1276. information will be displayed.
  1277. 
  1278. File: org, Node: Updating the table, Next: Advanced features, Prev: Editing and debugging formulas, Up: The spreadsheet
  1279. 3.5.7 Updating the Table
  1280. ------------------------
  1281. Recalculation of a table is normally not automatic, but needs to be
  1282. triggered by a command. See *Note Advanced features:: for a way to make
  1283. recalculation at least semi-automatically.
  1284. In order to recalculate a line of a table or the entire table, use
  1285. the following commands:
  1286. `C-c *'
  1287. Recalculate the current row by first applying the stored column
  1288. formulas from left to right, and all field formulas in the current
  1289. row.
  1290. `C-u C-c *'
  1291. `C-u C-c C-c'
  1292. Recompute the entire table, line by line. Any lines before the
  1293. first hline are left alone, assuming that these are part of the
  1294. table header.
  1295. `C-u C-u C-c *'
  1296. Iterate the table by recomputing it until no further changes occur.
  1297. This may be necessary if some computed fields use the value of
  1298. other fields that are computed later in the calculation sequence.
  1299. 
  1300. File: org, Node: Advanced features, Prev: Updating the table, Up: The spreadsheet
  1301. 3.5.8 Advanced features
  1302. -----------------------
  1303. If you want the recalculation of fields to happen automatically, or if
  1304. you want to be able to assign names to fields and columns, you need to
  1305. reserve the first column of the table for special marking characters.
  1306. `C-#'
  1307. Rotate the calculation mark in first column through the states `',
  1308. `#', `*', `!', `$'. The meaning of these characters is discussed
  1309. below. When there is an active region, change all marks in the
  1310. region.
  1311. Here is an example of a table that collects exam results of students
  1312. and makes use of these features:
  1313. |---+---------+--------+--------+--------+-------+------|
  1314. | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
  1315. |---+---------+--------+--------+--------+-------+------|
  1316. | ! | | P1 | P2 | P3 | Tot | |
  1317. | # | Maximum | 10 | 15 | 25 | 50 | 10.0 |
  1318. | ^ | | m1 | m2 | m3 | mt | |
  1319. |---+---------+--------+--------+--------+-------+------|
  1320. | # | Peter | 10 | 8 | 23 | 41 | 8.2 |
  1321. | # | Sara | 6 | 14 | 19 | 39 | 7.8 |
  1322. | # | Sam | 2 | 4 | 3 | 9 | 1.8 |
  1323. |---+---------+--------+--------+--------+-------+------|
  1324. | | Average | | | | 29.7 | |
  1325. | ^ | | | | | at | |
  1326. | $ | max=50 | | | | | |
  1327. |---+---------+--------+--------+--------+-------+------|
  1328. #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-II..@-I);%.1f
  1329. Important: Please note that for these special tables, recalculating the
  1330. table with `C-u C-c *' will only affect rows that are marked `#' or
  1331. `*', and fields that have a formula assigned to the field itself. The
  1332. column formulas are not applied in rows with empty first field.
  1333. The marking characters have the following meaning:
  1334. `!'
  1335. The fields in this line define names for the columns, so that you
  1336. may refer to a column as `$Tot' instead of `$6'.
  1337. `^'
  1338. This row defines names for the fields _above_ the row. With such
  1339. a definition, any formula in the table may use `$m1' to refer to
  1340. the value `10'. Also, if you assign a formula to a names field, it
  1341. will be stored as `$name=...'.
  1342. `_'
  1343. Similar to `^', but defines names for the fields in the row
  1344. _below_.
  1345. `$'
  1346. Fields in this row can define _parameters_ for formulas. For
  1347. example, if a field in a `$' row contains `max=50', then formulas
  1348. in this table can refer to the value 50 using `$max'. Parameters
  1349. work exactly like constants, only that they can be defined on a
  1350. per-table basis.
  1351. `#'
  1352. Fields in this row are automatically recalculated when pressing
  1353. <TAB> or <RET> or `S-<TAB>' in this row. Also, this row is
  1354. selected for a global recalculation with `C-u C-c *'. Unmarked
  1355. lines will be left alone by this command.
  1356. `*'
  1357. Selects this line for global recalculation with `C-u C-c *', but
  1358. not for automatic recalculation. Use this when automatic
  1359. recalculation slows down editing too much.
  1360. `'
  1361. Unmarked lines are exempt from recalculation with `C-u C-c *'.
  1362. All lines that should be recalculated should be marked with `#' or
  1363. `*'.
  1364. `/'
  1365. Do not export this line. Useful for lines that contain the
  1366. narrowing `<N>' markers.
  1367. Finally, just to whet your appetite on what can be done with the
  1368. fantastic `calc' package, here is a table that computes the Taylor
  1369. series of degree `n' at location `x' for a couple of functions
  1370. (homework: try that with Excel :-)
  1371. |---+-------------+---+-----+--------------------------------------|
  1372. | | Func | n | x | Result |
  1373. |---+-------------+---+-----+--------------------------------------|
  1374. | # | exp(x) | 1 | x | 1 + x |
  1375. | # | exp(x) | 2 | x | 1 + x + x^2 / 2 |
  1376. | # | exp(x) | 3 | x | 1 + x + x^2 / 2 + x^3 / 6 |
  1377. | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
  1378. | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2 |
  1379. | * | tan(x) | 3 | x | 0.0175 x + 1.77e-6 x^3 |
  1380. |---+-------------+---+-----+--------------------------------------|
  1381. #+TBLFM: $5=taylor($2,$4,$3);n3
  1382. 
  1383. File: org, Node: Hyperlinks, Next: TODO items, Prev: Tables, Up: Top
  1384. 4 Hyperlinks
  1385. ************
  1386. Just like HTML, Org-mode provides links inside a file, and external
  1387. links to other files, Usenet articles, emails, and much more.
  1388. * Menu:
  1389. * Link format:: How links in Org-mode are formatted
  1390. * Internal links:: Links to other places in the current file
  1391. * External links:: URL-like links to the world
  1392. * Handling links:: Creating, inserting and following
  1393. * Link abbreviations:: Shortcuts for writing complex links
  1394. * Search options:: Linking to a specific location
  1395. * Custom searches:: When the default search is not enough
  1396. * Remember:: Org-trees store quick notes
  1397. 
  1398. File: org, Node: Link format, Next: Internal links, Prev: Hyperlinks, Up: Hyperlinks
  1399. 4.1 Link format
  1400. ===============
  1401. Org-mode will recognize plain URL-like links and activate them as
  1402. clickable links. The general link format, however, looks like this:
  1403. [[link][description]] or alternatively [[link]]
  1404. Once a link in the buffer is complete (all brackets present),
  1405. Org-mode will change the display so that `description' is displayed
  1406. instead of `[[link][description]]' and `link' is displayed instead of
  1407. `[[link]]'. Links will be highlighted in the face `org-link', which by
  1408. default is an underlined face. You can directly edit the visible part
  1409. of a link. Note that this can be either the `link' part (if there is
  1410. no description) or the `description' part. To edit also the invisible
  1411. `link' part, use `C-c C-l' with the cursor on the link.
  1412. If you place the cursor at the beginning or just behind the end of
  1413. the displayed text and press <BACKSPACE>, you will remove the
  1414. (invisible) bracket at that location. This makes the link incomplete
  1415. and the internals are again displayed as plain text. Inserting the
  1416. missing bracket hides the link internals again. To show the internal
  1417. structure of all links, use the menu entry `Org->Hyperlinks->Literal
  1418. links'.
  1419. 
  1420. File: org, Node: Internal links, Next: External links, Prev: Link format, Up: Hyperlinks
  1421. 4.2 Internal links
  1422. ==================
  1423. If the link does not look like a URL, it is considered to be internal in
  1424. the current file. Links such as `[[My Target]]' or `[[My Target][Find
  1425. my target]]' lead to a text search in the current file. The link can
  1426. be followed with `C-c C-o' when the cursor is on the link, or with a
  1427. mouse click (*note Handling links::). The preferred match for such a
  1428. link is a dedicated target: the same string in double angular brackets.
  1429. Targets may be located anywhere; sometimes it is convenient to put
  1430. them into a comment line. For example
  1431. # <<My Target>>
  1432. In HTML export (*note HTML export::), such targets will become named
  1433. anchors for direct access through `http' links(1).
  1434. If no dedicated target exists, Org-mode will search for the words in
  1435. the link. In the above example the search would be for `my target'.
  1436. Links starting with a star like `*My Target' restrict the search to
  1437. headlines. When searching, Org-mode will first try an exact match, but
  1438. then move on to more and more lenient searches. For example, the link
  1439. `[[*My Targets]]' will find any of the following:
  1440. ** My targets
  1441. ** TODO my targets are bright
  1442. ** my 20 targets are
  1443. To insert a link targeting a headline, in-buffer completion can be
  1444. used. Just type a star followed by a few optional letters into the
  1445. buffer and press `M-<TAB>'. All headlines in the current buffer will be
  1446. offered as completions. *Note Handling links::, for more commands
  1447. creating links.
  1448. Following a link pushes a mark onto Org-mode's own mark ring. You
  1449. can return to the previous position with `C-c &'. Using this command
  1450. several times in direct succession goes back to positions recorded
  1451. earlier.
  1452. * Menu:
  1453. * Radio targets:: Make targets trigger links in plain text.
  1454. ---------- Footnotes ----------
  1455. (1) Note that text before the first headline will never be exported,
  1456. so the first such target must be after the first headline.
  1457. 
  1458. File: org, Node: Radio targets, Prev: Internal links, Up: Internal links
  1459. 4.2.1 Radio targets
  1460. -------------------
  1461. You can configure Org-mode to link any occurrences of certain target
  1462. names in normal text. So without explicitly creating a link, the text
  1463. connects to the target radioing its position. Radio targets are
  1464. enclosed by triple angular brackets. For example, a target `<<<My
  1465. Target>>>' causes each occurrence of `my target' in normal text to
  1466. become activated as a link. The Org-mode file is scanned automatically
  1467. for radio targets only when the file is first loaded into Emacs. To
  1468. update the target list during editing, press `C-c C-c' with the cursor
  1469. on or at a target.
  1470. 
  1471. File: org, Node: External links, Next: Handling links, Prev: Internal links, Up: Hyperlinks
  1472. 4.3 External links
  1473. ==================
  1474. Org-mode supports links to files, websites, Usenet and email messages,
  1475. and BBDB database entries. External links are URL-like locators. They
  1476. start with a short identifying string followed by a colon. There can be
  1477. no space after the colon. The following list shows examples for each
  1478. link type.
  1479. http://www.astro.uva.nl/~dominik on the web
  1480. file:/home/dominik/images/jupiter.jpg file, absolute path
  1481. file:papers/last.pdf file, relative path
  1482. news:comp.emacs Usenet link
  1483. mailto:adent@galaxy.net Mail link
  1484. vm:folder VM folder link
  1485. vm:folder#id VM message link
  1486. vm://myself@some.where.org/folder#id VM on remote machine
  1487. wl:folder WANDERLUST folder link
  1488. wl:folder#id WANDERLUST message link
  1489. mhe:folder MH-E folder link
  1490. mhe:folder#id MH-E message link
  1491. rmail:folder RMAIL folder link
  1492. rmail:folder#id RMAIL message link
  1493. gnus:group GNUS group link
  1494. gnus:group#id GNUS article link
  1495. bbdb:Richard Stallman BBDB link
  1496. shell:ls *.org A shell command
  1497. elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
  1498. A link should be enclosed in double brackets and may contain a
  1499. descriptive text to be displayed instead of the url (*note Link
  1500. format::), for example:
  1501. [[http://www.gnu.org/software/emacs/][GNU Emacs]]
  1502. If the description is a file name or URL that points to an image, HTML
  1503. export (*note HTML export::) will inline the image as a clickable
  1504. button. If there is no description at all and the link points to an
  1505. image, that image will be inlined into the exported HTML file.
  1506. Org-mode also finds external links in the normal text and activates
  1507. them as links. If spaces must be part of the link (for example in
  1508. `bbdb:Richard Stallman'), or if you need to remove ambiguities about
  1509. the end of the link, enclose them in angular brackets.
  1510. 
  1511. File: org, Node: Handling links, Next: Link abbreviations, Prev: External links, Up: Hyperlinks
  1512. 4.4 Handling links
  1513. ==================
  1514. Org-mode provides methods to create a link in the correct syntax, to
  1515. insert it into an org-mode file, and to follow the link.
  1516. `C-c l'
  1517. Store a link to the current location. This is a _global_ command
  1518. which can be used in any buffer to create a link. The link will be
  1519. stored for later insertion into an Org-mode buffer (see below).
  1520. For Org-mode files, if there is a `<<target>>' at the cursor, the
  1521. link points to the target. Otherwise it points to the current
  1522. headline. For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
  1523. the link will indicate the current article/entry. For W3 and W3M
  1524. buffers, the link goes to the current URL. For any other files,
  1525. the link will point to the file, with a search string (*note
  1526. Search options::) pointing to the contents of the current line.
  1527. If there is an active region, the selected words will form the
  1528. basis of the search string. If the automatically created link is
  1529. not working correctly or accurately enough, you can write custom
  1530. functions to select the search string and to do the search for
  1531. particular file types - see *Note Custom searches::. The key
  1532. binding `C-c l' is only a suggestion - see *Note Installation::.
  1533. `C-c C-l'
  1534. Insert a link. This prompts for a link to be inserted into the
  1535. buffer. You can just type a link, using text for an internal
  1536. link, or one of the link type prefixes mentioned in the examples
  1537. above. All links stored during the current session are part of
  1538. the history for this prompt, so you can access them with <up> and
  1539. <down>. Completion, on the other hand, will help you to insert
  1540. valid link prefixes like `http:' or `ftp:', including the prefixes
  1541. defined through link abbreviations (*note Link abbreviations::).
  1542. The link will be inserted into the buffer(1), along with a
  1543. descriptive text. If some text was selected when this command is
  1544. called, the selected text becomes the default description.
  1545. Note that you don't have to use this command to insert a link.
  1546. Links in Org-mode are plain text, and you can type or paste them
  1547. straight into the buffer. By using this command, the links are
  1548. automatically enclosed in double brackets, and you will be asked
  1549. for the optional descriptive text.
  1550. `C-u C-c C-l'
  1551. When `C-c C-l' is called with a `C-u' prefix argument, a link to a
  1552. file will be inserted and you may use file name completion to
  1553. select the name of the file. The path to the file is inserted
  1554. relative to the directory of the current org file, if the linked
  1555. file is in the current directory or in a subdirectory of it, or if
  1556. the path is written relative to the current directory using `../'.
  1557. Otherwise an absolute path is used, if possible with `~/' for
  1558. your home directory. You can force an absolute path with two
  1559. `C-u' prefixes.
  1560. `C-c C-l (with cursor on existing link)'
  1561. When the cursor is on an existing link, `C-c C-l' allows you to
  1562. edit the link and description parts of the link.
  1563. `C-c C-o'
  1564. Open link at point. This will launch a web browser for URLs (using
  1565. `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
  1566. the corresponding links, and execute the command in a shell link.
  1567. When the cursor is on an internal link, this commands runs the
  1568. corresponding search. When the cursor is on a TAG list in a
  1569. headline, it creates the corresponding TAGS view. If the cursor
  1570. is on a time stamp, it compiles the agenda for that date.
  1571. Furthermore, it will visit text and remote files in `file:' links
  1572. with Emacs and select a suitable application for local non-text
  1573. files. Classification of files is based on file extension only.
  1574. See option `org-file-apps'. If you want to override the default
  1575. application and visit the file with Emacs, use a `C-u' prefix.
  1576. `mouse-2'
  1577. `mouse-1'
  1578. On links, `mouse-2' will open the link just as `C-c C-o' would.
  1579. Under Emacs 22, also `mouse-1' will follow a link.
  1580. `mouse-3'
  1581. Like `mouse-2', but force file links to be opened with Emacs, and
  1582. internal links to be displayed in another window(2).
  1583. `C-c %'
  1584. Push the current position onto the mark ring, to be able to return
  1585. easily. Commands following an internal link do this automatically.
  1586. `C-c &'
  1587. Jump back to a recorded position. A position is recorded by the
  1588. commands following internal links, and by `C-c %'. Using this
  1589. command several times in direct succession moves through a ring of
  1590. previously recorded positions.
  1591. `C-c C-x C-n'
  1592. `C-c C-x C-p'
  1593. Move forward/backward to the next link in the buffer. At the
  1594. limit of the buffer, the search fails once, and then wraps around.
  1595. The key bindings for this are really too long, you might want to
  1596. bind this also to `C-n' and `C-p'
  1597. (add-hook 'org-load-hook
  1598. (lambda ()
  1599. (define-key 'org-mode-map "\C-n" 'org-next-link)
  1600. (define-key 'org-mode-map "\C-p" 'org-previous-link)))
  1601. ---------- Footnotes ----------
  1602. (1) After insertion of a stored link, the link will be removed from
  1603. the list of stored links. To keep it in the list later use, use a
  1604. triple `C-u' prefix to `C-c C-l', or configure the option
  1605. `org-keep-stored-link-after-insertion'.
  1606. (2) See the variable `org-display-internal-link-with-indirect-buffer'
  1607. 
  1608. File: org, Node: Link abbreviations, Next: Search options, Prev: Handling links, Up: Hyperlinks
  1609. 4.5 Link abbreviations
  1610. ======================
  1611. Long URLs can be cumbersome to type, and often many similar links are
  1612. needed in a document. For this you can use link abbreviations. An
  1613. abbreviated link looks like this
  1614. [[linkword:tag][description]]
  1615. where the tag is optional. Such abbreviations are resolved according to
  1616. the information in the variable `org-link-abbrev-alist' that relates
  1617. the linkwords to replacement text. Here is an example:
  1618. (setq org-link-abbrev-alist
  1619. '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
  1620. ("google" . "http://www.google.com/search?q=")
  1621. ("ads" . "http://adsabs.harvard.edu/cgi-bin/
  1622. nph-abs_connect?author=%s&db_key=AST")))
  1623. If the replacement text contains the string `%s', it will be
  1624. replaced with the tag. Otherwise the tag will be appended to the string
  1625. in order to create the link. You may also specify a function that will
  1626. be called with the tag as the only argument to create the link.
  1627. With the above setting, you could link to a specific bug with
  1628. `[[bugzilla:129]]', search the web for `OrgMode' with
  1629. `[[google:OrgMode]]' and find out what the Org-mode author is doing
  1630. besides Emacs hacking with `[[ads:Dominik,C]]'.
  1631. If you need special abbreviations just for a single Org-mode buffer,
  1632. you can define them in the file with
  1633. #+LINK: bugzilla http://10.1.2.9/bugzilla/show_bug.cgi?id=
  1634. #+LINK: google http://www.google.com/search?q=%s
  1635. In-buffer completion *note Completion:: can be used after `[' to
  1636. complete link abbreviations.
  1637. 
  1638. File: org, Node: Search options, Next: Custom searches, Prev: Link abbreviations, Up: Hyperlinks
  1639. 4.6 Search options in file links
  1640. ================================
  1641. File links can contain additional information to make Emacs jump to a
  1642. particular location in the file when following a link. This can be a
  1643. line number or a search option after a double(1) colon. For example,
  1644. when the command `C-c l' creates a link (*note Handling links::) to a
  1645. file, it encodes the words in the current line as a search string that
  1646. can be used to find this line back later when following the link with
  1647. `C-c C-o'.
  1648. Here is the syntax of the different ways to attach a search to a file
  1649. link, together with an explanation:
  1650. [[file:~/code/main.c::255]]
  1651. [[file:~/xx.org::My Target]]
  1652. [[file:~/xx.org::*My Target]]
  1653. [[file:~/xx.org::/regexp/]]
  1654. `255'
  1655. Jump to line 255.
  1656. `My Target'
  1657. Search for a link target `<<My Target>>', or do a text search for
  1658. `my target', similar to the search in internal links, see *Note
  1659. Internal links::. In HTML export (*note HTML export::), such a
  1660. file link will become an HTML reference to the corresponding named
  1661. anchor in the linked file.
  1662. `*My Target'
  1663. In an Org-mode file, restrict search to headlines.
  1664. `/regexp/'
  1665. Do a regular expression search for `regexp'. This uses the Emacs
  1666. command `occur' to list all matches in a separate window. If the
  1667. target file is in Org-mode, `org-occur' is used to create a sparse
  1668. tree with the matches.
  1669. As a degenerate case, a file link with an empty file name can be used
  1670. to search the current file. For example, `[[file:::find me]]' does a
  1671. search for `find me' in the current file, just as `[[find me]]' would.
  1672. ---------- Footnotes ----------
  1673. (1) For backward compatibility, line numbers can also follow a
  1674. single colon.
  1675. 
  1676. File: org, Node: Custom searches, Next: Remember, Prev: Search options, Up: Hyperlinks
  1677. 4.7 Custom Searches
  1678. ===================
  1679. The default mechanism for creating search strings and for doing the
  1680. actual search related to a file link may not work correctly in all
  1681. cases. For example, BibTeX database files have many entries like
  1682. `year="1993"' which would not result in good search strings, because
  1683. the only unique identification for a BibTeX entry is the citation key.
  1684. If you come across such a problem, you can write custom functions to
  1685. set the right search string for a particular file type, and to do the
  1686. search for the string in the file. Using `add-hook', these functions
  1687. need to be added to the hook variables
  1688. `org-create-file-search-functions' and
  1689. `org-execute-file-search-functions'. See the docstring for these
  1690. variables for more information. Org-mode actually uses this mechanism
  1691. for BibTeX database files, and you can use the corresponding code as an
  1692. implementation example. Search for `BibTeX links' in the source file.
  1693. 
  1694. File: org, Node: Remember, Prev: Custom searches, Up: Hyperlinks
  1695. 4.8 Remember
  1696. ============
  1697. Another way to create org entries with links to other files is through
  1698. the remember package by John Wiegley. Remember lets you store quick
  1699. notes with little interruption of your work flow. See
  1700. `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
  1701. information. The notes produced by Remember can be stored in different
  1702. ways, and Org-mode files are a good target. Org-mode significantly
  1703. expands the possibilities of remember: You may define templates for
  1704. different note types, and to associate target files and headlines with
  1705. specific templates. It also allows you to select the location where a
  1706. note should be stored interactively, on the fly.
  1707. * Menu:
  1708. * Setting up remember:: Some code for .emacs to get things going
  1709. * Remember templates:: Define the outline of different note types
  1710. * Storing notes:: Directly get the note to where it belongs
  1711. 
  1712. File: org, Node: Setting up remember, Next: Remember templates, Prev: Remember, Up: Remember
  1713. 4.8.1 Setting up remember
  1714. -------------------------
  1715. The following customization will tell remember to use org files as
  1716. target, and to create annotations compatible with Org-mode links.
  1717. (setq org-directory "~/path/to/my/orgfiles/")
  1718. (setq org-default-notes-file "~/.notes")
  1719. (setq remember-annotation-functions '(org-remember-annotation))
  1720. (setq remember-handler-functions '(org-remember-handler))
  1721. (add-hook 'remember-mode-hook 'org-remember-apply-template)
  1722. 
  1723. File: org, Node: Remember templates, Next: Storing notes, Prev: Setting up remember, Up: Remember
  1724. 4.8.2 Remember templates
  1725. ------------------------
  1726. In combination with Org-mode, you can use templates to generate
  1727. different types of remember notes. For example, if you would like to
  1728. use one template to create general TODO entries, another one for
  1729. journal entries, and a third one for collecting random ideas, you could
  1730. use:
  1731. (setq org-remember-templates
  1732. '((?t "* TODO %?\n %i\n %a" "~/org/TODO.org")
  1733. (?j "* %U %?\n\n %i\n %a" "~/org/JOURNAL.org")
  1734. (?i "* %^{Title}\n %i\n %a" "~/org/JOURNAL.org" "New Ideas")))
  1735. In these entries, the character specifies how to select the template.
  1736. The first string specifies the template. Two more (optional) strings
  1737. give the file in which, and the headline under which the new note
  1738. should be stored. The file defaults (if not present or `nil') to
  1739. `org-default-notes-file', the heading to
  1740. `org-remember-default-headline'. Both defaults help to get to the
  1741. storing location quickly, but you can change the location interactively
  1742. while storing the note.
  1743. When you call `M-x remember' (or `M-x org-remember') to remember
  1744. something, org will prompt for a key to select the template (if you have
  1745. more than one template) and then prepare the buffer like
  1746. * TODO
  1747. [[file:link to where you called remember]]
  1748. or
  1749. * [2006-03-21 Tue 15:37]
  1750. [[file:link to where you called remember]]
  1751. During expansion of the template, special `%'-escapes allow dynamic
  1752. insertion of content:
  1753. %^{prompt} prompt the user for a string and replace this sequence with it.
  1754. %t time stamp, date only
  1755. %T time stamp with date and time
  1756. %u, %U like the above, but inactive time stamps
  1757. %^t like `%t', but prompt for date. Similarly `%^T', `%^u', `%^U'
  1758. You may define a prompt like `%^{Birthday}t'
  1759. %n user name (taken from `user-full-name')
  1760. %a annotation, normally the link created with `org-store-link'
  1761. %i initial content, the region when remember is called with C-u.
  1762. The entire text will be indented like `%i' itself.
  1763. %:keyword specific information for certain link types, see below
  1764. For specific link types, the following keywords will be defined:
  1765. Link type | Available keywords
  1766. -------------------+----------------------------------------------
  1767. bbdb | %:name %:company
  1768. vm, wl, mh, rmail | %:type %:subject %:message-id
  1769. | %:from %:fromname %:fromaddress
  1770. | %:to %:toname %:toaddress
  1771. | %:fromto (either "to NAME" or "from NAME")(1)
  1772. gnus | %:group, for messages also all email fields
  1773. w3, w3m | %:url
  1774. info | %:file %:node
  1775. calendar | %:date"
  1776. To place the cursor after template expansion use:
  1777. %? After completing the template, position cursor here.
  1778. If you change you mind about which template to use, call `org-remember'
  1779. in the remember buffer. You may then select a new template that will
  1780. be filled with the previous context information.
  1781. ---------- Footnotes ----------
  1782. (1) This will always be the other, not the user. See the variable
  1783. `org-from-is-user-regexp'.
  1784. 
  1785. File: org, Node: Storing notes, Prev: Remember templates, Up: Remember
  1786. 4.8.3 Storing notes
  1787. -------------------
  1788. When you are finished preparing a note with remember, you have to press
  1789. `C-c C-c' to file the note away. The handler first prompts for a
  1790. target file - if you press <RET>, the value specified for the template
  1791. is used. Then the command offers the headings tree of the selected
  1792. file, with the cursor position at the default headline (if you had
  1793. specified one in the template). You can either immediately press <RET>
  1794. to get the note placed there. Or you can use the following keys to
  1795. find a better location:
  1796. <TAB> Cycle visibility.
  1797. <down> / <up> Next/previous visible headline.
  1798. n / p Next/previous visible headline.
  1799. f / b Next/previous headline same level.
  1800. u One level up.
  1801. Pressing <RET> or <left> or <right> then leads to the following
  1802. result.
  1803. Cursor Key Note gets inserted
  1804. position
  1805. buffer-start <RET> as level 2 heading at end of file
  1806. on headline <RET> as sublevel of the heading at cursor
  1807. <left>/<right>as same level, before/after current heading
  1808. not on <RET> at cursor position, level taken from context.
  1809. headline
  1810. So a fast way to store the note to its default location is to press
  1811. `C-c C-c <RET> <RET>'. Even shorter would be `C-u C-c C-c', which does
  1812. the same without even asking for a file or showing the tree.
  1813. Before inserting the text into a tree, the function ensures that the
  1814. text has a headline, i.e. a first line that starts with a `*'. If not,
  1815. a headline is constructed from the current date and some additional
  1816. data. If the variable `org-adapt-indentation' is non-nil, the entire
  1817. text is also indented so that it starts in the same column as the
  1818. headline (after the asterisks).
  1819. 
  1820. File: org, Node: TODO items, Next: Timestamps, Prev: Hyperlinks, Up: Top
  1821. 5 TODO items
  1822. ************
  1823. Org-mode does not maintain TODO lists as a separate document. TODO
  1824. items are an integral part of the notes file, because TODO items
  1825. usually come up while taking notes! With Org-mode, you simply mark any
  1826. entry in a tree as being a TODO item. In this way, the information is
  1827. not duplicated, and the entire context from which the item emerged is
  1828. always present when you check.
  1829. Of course, this technique causes TODO items to be scattered
  1830. throughout your file. Org-mode provides methods to give you an
  1831. overview over all things you have to do.
  1832. * Menu:
  1833. * TODO basics:: Marking and displaying TODO entries
  1834. * TODO extensions:: Workflow and assignments
  1835. * Priorities:: Some things are more important than others
  1836. * Breaking down tasks:: Splitting a task into manageable pieces
  1837. * Checkboxes:: Tick-off lists
  1838. 
  1839. File: org, Node: TODO basics, Next: TODO extensions, Prev: TODO items, Up: TODO items
  1840. 5.1 Basic TODO functionality
  1841. ============================
  1842. Any headline can become a TODO item by starting it with the word TODO,
  1843. for example:
  1844. *** TODO Write letter to Sam Fortune
  1845. The most important commands to work with TODO entries are:
  1846. `C-c C-t'
  1847. Rotate the TODO state of the current item among
  1848. ,-> (unmarked) -> TODO -> DONE --.
  1849. '--------------------------------'
  1850. The same rotation can also be done "remotely" from the timeline and
  1851. agenda buffers with the `t' command key (*note Agenda commands::).
  1852. `S-<right>'
  1853. `S-<left>'
  1854. Select the following/preceding TODO state, similar to cycling.
  1855. Mostly useful if more than two TODO states are possible (*note
  1856. TODO extensions::).
  1857. `C-c C-v'
  1858. View TODO items in a _sparse tree_ (*note Sparse trees::). Folds
  1859. the entire buffer, but shows all TODO items and the headings
  1860. hierarchy above them. With prefix arg, search for a specific
  1861. TODO. You will be prompted for the keyword, and you can also give
  1862. a list of keywords like `kwd1|kwd2|...'. With numerical prefix N,
  1863. show the tree for the Nth keyword in the variable
  1864. `org-todo-keywords'. With two prefix args, find all TODO and DONE
  1865. entries.
  1866. `C-c a t'
  1867. Show the global TODO list. This collects the TODO items from all
  1868. agenda files (*note Agenda views::) into a single buffer. The
  1869. buffer is in `agenda-mode', so there are commands to examine and
  1870. manipulate the TODO entries directly from that buffer (*note
  1871. Agenda commands::). *Note Global TODO list::, for more
  1872. information.
  1873. 
  1874. File: org, Node: TODO extensions, Next: Priorities, Prev: TODO basics, Up: TODO items
  1875. 5.2 Extended use of TODO keywords
  1876. =================================
  1877. The default implementation of TODO entries is just two states: TODO and
  1878. DONE. You can use the TODO feature for more complicated things by
  1879. configuring the variable `org-todo-keywords'. With special setup, the
  1880. TODO keyword system can work differently in different files.
  1881. Note that tags are another way to classify headlines in general and
  1882. TODO items in particular (*note Tags::).
  1883. * Menu:
  1884. * Workflow states:: From TODO to DONE in steps
  1885. * TODO types:: I do this, Fred the rest
  1886. * Multiple sets in one file:: Mixing it all, and still finding your way
  1887. * Per file keywords:: Different files, different requirements
  1888. 
  1889. File: org, Node: Workflow states, Next: TODO types, Prev: TODO extensions, Up: TODO extensions
  1890. 5.2.1 TODO keywords as workflow states
  1891. --------------------------------------
  1892. You can use TODO keywords to indicate different _sequential_ states in
  1893. the process of working on an item, for example(1):
  1894. (setq org-todo-keywords
  1895. '((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))
  1896. The vertical bar separates the TODO keywords (states that _need
  1897. action_) from the DONE states (which need _no further action_. If you
  1898. don't provide the separator bar, the last state is used as the DONE
  1899. state. With this setup, the command `C-c C-t' will cycle an entry from
  1900. TODO to FEEDBACK, then to VERIFY, and finally to DONE and DELEGATED.
  1901. You may also use a prefix argument to quickly select a specific state.
  1902. For example `C-3 C-c C-t' will change the state immediately to VERIFY.
  1903. If you define many keywords, you can use in-buffer completion (see
  1904. *Note Completion::) to insert these words into the buffer. Changing a
  1905. todo state can be logged with a timestamp, see *Note Tracking TODO
  1906. state changes:: for more information.
  1907. ---------- Footnotes ----------
  1908. (1) Changing this variable only becomes effective after restarting
  1909. Org-mode in a buffer.
  1910. 
  1911. File: org, Node: TODO types, Next: Multiple sets in one file, Prev: Workflow states, Up: TODO extensions
  1912. 5.2.2 TODO keywords as types
  1913. ----------------------------
  1914. The second possibility is to use TODO keywords to indicate different
  1915. _types_ of action items. For example, you might want to indicate that
  1916. items are for "work" or "home". Or, when you work with several people
  1917. on a single project, you might want to assign action items directly to
  1918. persons, by using their names as TODO keywords. This would be set up
  1919. like this:
  1920. (setq org-todo-keywords '((type "Fred" "Sara" "Lucy" "|" "DONE")))
  1921. In this case, different keywords do not indicate a sequence, but
  1922. rather different types. So the normal work flow would be to assign a
  1923. task to a person, and later to mark it DONE. Org-mode supports this
  1924. style by adapting the workings of the command `C-c C-t'(1). When used
  1925. several times in succession, it will still cycle through all names, in
  1926. order to first select the right type for a task. But when you return
  1927. to the item after some time and execute `C-c C-t' again, it will switch
  1928. from any name directly to DONE. Use prefix arguments or completion to
  1929. quickly select a specific name. You can also review the items of a
  1930. specific TODO type in a sparse tree by using a numeric prefix to `C-c
  1931. C-v'. For example, to see all things Lucy has to do, you would use
  1932. `C-3 C-c C-v'. To collect Lucy's items from all agenda files into a
  1933. single buffer, you would use the prefix arg as well when creating the
  1934. global todo list: `C-3 C-c t'.
  1935. ---------- Footnotes ----------
  1936. (1) This is also true for the `t' command in the timeline and agenda
  1937. buffers.
  1938. 
  1939. File: org, Node: Multiple sets in one file, Next: Per file keywords, Prev: TODO types, Up: TODO extensions
  1940. 5.2.3 Multiple keyword sets in one file
  1941. ---------------------------------------
  1942. Sometimes you may want to use different sets of TODO keywords in
  1943. parallel. For example, you may want to have the basic `TODO'/`DONE',
  1944. but also a workflow for bug fixing, and a separate state indicating
  1945. that an item has been canceled (so it is not DONE, but also does not
  1946. require action). Your setup would then look like this:
  1947. (setq org-todo-keywords
  1948. '((sequence "TODO" "|" "DONE")
  1949. (sequence "REPORT" "BUG" "KNOWNCAUSE" "|" "FIXED")
  1950. (sequence "|" "CANCELED")))
  1951. The keywords should all be different, this helps Org-mode to keep
  1952. track of which subsequence should be used for a given entry. In this
  1953. setup, `C-c C-t' only operates within a subsequence, so it switches from
  1954. `DONE' to (nothing) to `TODO', and from `FIXED' to (nothing) to
  1955. `REPORT'. Therefore you need a mechanism to initially select the
  1956. correct sequence. Besides the obvious ways like typing a keyword or
  1957. using completion, you may also apply the following commands:
  1958. `C-S-<right>'
  1959. `C-S-<left>'
  1960. These keys jump from one TODO subset to the next. In the above
  1961. example, `C-S-<right>' would jump from `TODO' or `DONE' to
  1962. `REPORT', and any of the words in the second row to `CANCELED'.
  1963. `S-<right>'
  1964. `S-<left>'
  1965. `S-<<left>>' and `S-<<right>>' and walk through _all_ keywords
  1966. from all sets, so for example `S-<<right>>' would switch from
  1967. `DONE' to `REPORT' in the example above.
  1968. 
  1969. File: org, Node: Per file keywords, Prev: Multiple sets in one file, Up: TODO extensions
  1970. 5.2.4 Setting up keywords for individual files
  1971. ----------------------------------------------
  1972. It can be very useful to use different aspects of the TODO mechanism in
  1973. different files. For file-local settings, you need to add special lines
  1974. to the file which set the keywords and interpretation for that file
  1975. only. For example, to set one of the two examples discussed above, you
  1976. need one of the following lines, starting in column zero anywhere in the
  1977. file:
  1978. #+SEQ_TODO: TODO FEEDBACK VERIFY | DONE CANCELED
  1979. or
  1980. #+TYP_TODO: Fred Sara Lucy Mike | DONE
  1981. A setup for using several sets in parallel would be:
  1982. #+SEQ_TODO: "TODO" "|" "DONE"
  1983. #+SEQ_TODO: "REPORT" "BUG" "KNOWNCAUSE" "|" "FIXED"
  1984. #+SEQ_TODO: "|" "CANCELED"
  1985. To make sure you are using the correct keyword, type `#+' into the
  1986. buffer and then use `M-<TAB>' completion.
  1987. Remember that the keywords after the vertical bar (or the last
  1988. keyword if no bar is there) must always mean that the item is DONE
  1989. (although you may use a different word). After changing one of these
  1990. lines, use `C-c C-c' with the cursor still in the line to make the
  1991. changes known to Org-mode(1).
  1992. ---------- Footnotes ----------
  1993. (1) Org-mode parses these lines only when Org-mode is activated
  1994. after visiting a file. `C-c C-c' with the cursor in a line starting
  1995. with `#+' is simply restarting Org-mode for the current buffer.
  1996. 
  1997. File: org, Node: Priorities, Next: Breaking down tasks, Prev: TODO extensions, Up: TODO items
  1998. 5.3 Priorities
  1999. ==============
  2000. If you use Org-mode extensively to organize your work, you may end up
  2001. with a number of TODO entries so large that you'd like to prioritize
  2002. them. This can be done by placing a _priority cookie_ into the
  2003. headline, like this
  2004. *** TODO [#A] Write letter to Sam Fortune
  2005. With its standard setup, Org-mode supports priorities `A', `B', and
  2006. `C'. `A' is the highest priority. An entry without a cookie is
  2007. treated as priority `B'. Priorities make a difference only in the
  2008. agenda (*note Weekly/Daily agenda::).
  2009. `C-c ,'
  2010. Set the priority of the current headline. The command prompts for
  2011. a priority character `A', `B' or `C'. When you press <SPC>
  2012. instead, the priority cookie is removed from the headline. The
  2013. priorities can also be changed "remotely" from the timeline and
  2014. agenda buffer with the `,' command (*note Agenda commands::).
  2015. `S-<up>'
  2016. `S-<down>'
  2017. Increase/decrease priority of current headline. Note that these
  2018. keys are also used to modify time stamps (*note Creating
  2019. timestamps::). Furthermore, these keys are also used by CUA-mode
  2020. (*note Conflicts::).
  2021. You can change the range of allowed priorities by setting the
  2022. variables `org-highest-priority', `org-lowest-priority', and
  2023. `org-default-priority'. For an individual buffer, you may set these
  2024. values (highest, lowest, default) like this (please make sure that the
  2025. highest priority is earlier in the alphabet than the lowest priority):
  2026. #+PRIORITIES: A C B
  2027. 
  2028. File: org, Node: Breaking down tasks, Next: Checkboxes, Prev: Priorities, Up: TODO items
  2029. 5.4 Breaking tasks down into subtasks
  2030. =====================================
  2031. It is often advisable to break down large tasks into smaller, manageable
  2032. subtasks. You can do this by creating an outline tree below a TODO
  2033. item, with detailed subtasks on the tree(1). Another possibility is
  2034. the use of checkboxes to identify (a hierarchy of) a large number of
  2035. subtasks (*note Checkboxes::).
  2036. ---------- Footnotes ----------
  2037. (1) To keep subtasks out of the global TODO list, see the
  2038. `org-agenda-todo-list-sublevels'.
  2039. 
  2040. File: org, Node: Checkboxes, Prev: Breaking down tasks, Up: TODO items
  2041. 5.5 Checkboxes
  2042. ==============
  2043. Every item in a plain list (*note Plain lists::) can be made a checkbox
  2044. by starting it with the string `[ ]'. This feature is similar to TODO
  2045. items (*note TODO items::), but more lightweight. Checkboxes are not
  2046. included into the global TODO list, so they are often great to split a
  2047. task into a number of simple steps. Or you can use them in a shopping
  2048. list. To toggle a checkbox, use `C-c C-c', or try Piotr Zielinski's
  2049. `org-mouse.el'. Here is an example of a checkbox list.
  2050. * TODO Organize party [3/6]
  2051. - call people [1/3]
  2052. - [ ] Peter
  2053. - [X] Sarah
  2054. - [ ] Sam
  2055. - [X] order food
  2056. - [ ] think about what music to play
  2057. - [X] talk to the neighbors
  2058. The `[3/6]' and `[1/3]' in the first and second line are cookies
  2059. indicating how many checkboxes are present in this entry, and how many
  2060. of them have been checked off. This can give you an idea on how many
  2061. checkboxes remain, even without opening a folded entry. The cookies
  2062. can be placed into a headline or into (the first line of) a plain list
  2063. item. Each cookie covers all checkboxes structurally below that
  2064. headline/item. You have to insert the cookie yourself by typing either
  2065. `[/]' or `[%]'. In the first case you get an `n out of m' result, in
  2066. the second case you get information about the percentage of checkboxes
  2067. checked (in the above example, this would be `[50%]' and `[33%],
  2068. respectively').
  2069. The following commands work with checkboxes:
  2070. `C-c C-c'
  2071. Toggle checkbox at point.
  2072. `C-c C-x C-b'
  2073. Toggle checkbox at point.
  2074. - If there is an active region, toggle the first checkbox in
  2075. the region and set all remaining boxes to the same status as
  2076. the first. If you want to toggle all boxes in the region
  2077. independently, use a prefix argument.
  2078. - If the cursor is in a headline, toggle checkboxes in the
  2079. region between this headline and the next (so _not_ the
  2080. entire subtree).
  2081. - If there is no active region, just toggle the checkbox at
  2082. point.
  2083. `M-S-<RET>'
  2084. Insert a new item with a checkbox. This works only if the cursor
  2085. is already in a plain list item (*note Plain lists::).
  2086. `C-c #'
  2087. Update the checkbox statistics in the current outline entry. When
  2088. called with a `C-u' prefix, update the entire file. Checkbox
  2089. statistic cookies are updated automatically if you toggle
  2090. checkboxes with `C-c C-c' and make new ones with `M-S-<RET>'. If
  2091. you delete boxes or add/change them by hand, use this command to
  2092. get things back into synch. Or simply toggle any checkbox twice
  2093. with `C-c C-c'.
  2094. 
  2095. File: org, Node: Timestamps, Next: Tags, Prev: TODO items, Up: Top
  2096. 6 Timestamps
  2097. ************
  2098. Items can be labeled with timestamps to make them useful for project
  2099. planning.
  2100. * Menu:
  2101. * Time stamps:: Assigning a time to a tree entry
  2102. * Creating timestamps:: Commands which insert timestamps
  2103. * Deadlines and scheduling:: Planning your work
  2104. * Progress logging:: Documenting when what work was done.
  2105. 
  2106. File: org, Node: Time stamps, Next: Creating timestamps, Prev: Timestamps, Up: Timestamps
  2107. 6.1 Time stamps, deadlines and scheduling
  2108. =========================================
  2109. A time stamp is a specification of a date (possibly with time) in a
  2110. special format, either `<2003-09-16 Tue>' or `<2003-09-16 Tue
  2111. 09:39>'(1). A time stamp can appear anywhere in the headline or body
  2112. of an org-tree entry. Its presence causes entries to be shown on
  2113. specific dates in the agenda (*note Weekly/Daily agenda::). We
  2114. distinguish:
  2115. PLAIN TIME STAMP
  2116. A simple time stamp just assigns a date/time to an item. This is
  2117. just like writing down an appointment in a paper agenda, or like
  2118. writing down an event in a diary, when you want to take note of
  2119. when something happened. In the timeline and agenda displays, the
  2120. headline of an entry associated with a plain time stamp will be
  2121. shown exactly on that date.
  2122. * Meet Peter at the movies <2006-11-01 Wed 19:15>
  2123. TIME STAMP WITH REPEATER INTERVAL
  2124. A time stamp may contain a _repeater interval_, indicating that it
  2125. applies not only on the given date, but again and again after a
  2126. certain interval of N days (d), weeks (w), months(m), or years(y).
  2127. The following will show up in the agenda every Wednesday:
  2128. * Pick up Sam at school <2007-05-16 Wed 12:30 +1w>
  2129. DIARY-STYLE SEXP ENTRIES
  2130. For more complex date specifications, Org-mode supports using the
  2131. special sexp diary entries implemented in the Emacs calendar/diary
  2132. package. For example
  2133. * The nerd meeting on every 2nd Thursday of the month
  2134. <%%(diary-float t 4 2)>
  2135. TIME/DATE RANGE
  2136. Two time stamps connected by `--' denote a range. The headline
  2137. will be shown on the first and last day of the range, and on any
  2138. dates that are displayed and fall in the range. Here is an
  2139. example:
  2140. ** Meeting in Amsterdam
  2141. <2004-08-23 Mon>--<2004-08-26 Thu>
  2142. INACTIVE TIME STAMP
  2143. Just like a plain time stamp, but with square brackets instead of
  2144. angular ones. These time stamps are inactive in the sense that
  2145. they do _not_ trigger an entry to show up in the agenda.
  2146. * Gillian comes late for the fifth time [2006-11-01 Wed]
  2147. ---------- Footnotes ----------
  2148. (1) This is the standard ISO date/time format. If you cannot get
  2149. used to these, see *Note Custom time format::
  2150. 
  2151. File: org, Node: Creating timestamps, Next: Deadlines and scheduling, Prev: Time stamps, Up: Timestamps
  2152. 6.2 Creating timestamps
  2153. =======================
  2154. For Org-mode to recognize time stamps, they need to be in the specific
  2155. format. All commands listed below produce time stamps in the correct
  2156. format.
  2157. `C-c .'
  2158. Prompt for a date and insert a corresponding time stamp. When the
  2159. cursor is at a previously used time stamp, it is updated to NOW.
  2160. When this command is used twice in succession, a time range is
  2161. inserted.
  2162. `C-u C-c .'
  2163. Like `C-c .', but use the alternative format which contains date
  2164. and time. The default time can be rounded to multiples of 5
  2165. minutes, see the option `org-time-stamp-rounding-minutes'.
  2166. `C-c !'
  2167. Like `C-c .', but insert an inactive time stamp that will not cause
  2168. an agenda entry.
  2169. `C-c <'
  2170. Insert a time stamp corresponding to the cursor date in the
  2171. Calendar.
  2172. `C-c >'
  2173. Access the Emacs calendar for the current date. If there is a
  2174. timestamp in the current line, goto the corresponding date instead.
  2175. `C-c C-o'
  2176. Access the agenda for the date given by the time stamp or -range at
  2177. point (*note Weekly/Daily agenda::).
  2178. `S-<left>'
  2179. `S-<right>'
  2180. Change date at cursor by one day. These key bindings conflict with
  2181. CUA-mode (*note Conflicts::).
  2182. `S-<up>'
  2183. `S-<down>'
  2184. Change the item under the cursor in a timestamp. The cursor can
  2185. be on a year, month, day, hour or minute. Note that if the cursor
  2186. is in a headline and not at a time stamp, these same keys modify
  2187. the priority of an item. (*note Priorities::). The key bindings
  2188. also conflict with CUA-mode (*note Conflicts::).
  2189. `C-c C-y'
  2190. Evaluate a time range by computing the difference between start and
  2191. end. With prefix arg, insert result after the time range (in a
  2192. table: into the following column).
  2193. * Menu:
  2194. * The date/time prompt:: How org-mode helps you entering date and time
  2195. * Custom time format:: Making dates look differently
  2196. 
  2197. File: org, Node: The date/time prompt, Next: Custom time format, Prev: Creating timestamps, Up: Creating timestamps
  2198. 6.2.1 The date/time prompt
  2199. --------------------------
  2200. When Org-mode prompts for a date/time, the prompt suggests to enter an
  2201. ISO date. But it will in fact accept any string containing some date
  2202. and/or time information. You can, for example, use `C-y' to paste a
  2203. (possibly multi-line) string copied from an email message. Org-mode
  2204. will find whatever information is in there and will replace anything not
  2205. specified with the current date and time. For example:
  2206. 3-2-5 --> 2003-02-05
  2207. feb 15 --> currentyear-02-15
  2208. sep 12 9 --> 2009-09-12
  2209. 12:45 --> today 12:45
  2210. 22 sept 0:34 --> currentyear-09-22 0:34
  2211. 12 --> currentyear-currentmonth-12
  2212. Fri --> nearest Friday (today or later)
  2213. +4 --> 4 days from now (if +N is the only thing given)
  2214. The function understands English month and weekday abbreviations. If
  2215. you want to use unabbreviated names and/or other languages, configure
  2216. the variables `parse-time-months' and `parse-time-weekdays'.
  2217. Parallel to the minibuffer prompt, a calendar is popped up(1). When
  2218. you exit the date prompt, either by clicking on a date in the calendar,
  2219. or by pressing <RET>, the date selected in the calendar will be
  2220. combined with the information entered at the prompt. You can control
  2221. the calendar fully from the minibuffer:
  2222. `<'
  2223. Scroll calendar backwards by one month.
  2224. `>'
  2225. Scroll calendar forwards by one month.
  2226. `mouse-1'
  2227. Select date by clicking on it.
  2228. `S-<right>'
  2229. One day forward.
  2230. `S-<left>'
  2231. One day back.
  2232. `S-<down>'
  2233. One week forward.
  2234. `S-<up>'
  2235. One week back.
  2236. `M-S-<right>'
  2237. One month forward.
  2238. `M-S-<left>'
  2239. One month back.
  2240. `<RET>'
  2241. Choose date in calendar (only if nothing was typed into
  2242. minibuffer).
  2243. ---------- Footnotes ----------
  2244. (1) If you don't need/want the calendar, configure the variable
  2245. `org-popup-calendar-for-date-prompt'.
  2246. 
  2247. File: org, Node: Custom time format, Prev: The date/time prompt, Up: Creating timestamps
  2248. 6.2.2 Custom time format
  2249. ------------------------
  2250. Org-mode uses the standard ISO notation for dates and times as it is
  2251. defined in ISO 8601. If you cannot get used to this and require another
  2252. representation of date and time to keep you happy, you can get it by
  2253. customizing the variables `org-display-custom-times' and
  2254. `org-time-stamp-custom-formats'.
  2255. `C-c C-x C-t'
  2256. Toggle the display of custom formats for dates and times.
  2257. Org-mode needs the default format for scanning, so the custom date/time
  2258. format does not _replace_ the default format - instead it is put _over_
  2259. the default format using text properties. This has the following
  2260. consequences:
  2261. * You cannot place the cursor onto a time stamp anymore, only before
  2262. or after.
  2263. * The `S-<up>/<down>' keys can no longer be used to adjust each
  2264. component of a time stamp. If the cursor is at the beginning of
  2265. the stamp, `S-<up>/<down>' will change the stamp by one day, just
  2266. like `S-<left>/<right>'. At the end of the stamp, the time will
  2267. be changed by one minute.
  2268. * When you delete a time stamp character-by-character, it will only
  2269. disappear from the buffer after _all_ (invisible) characters
  2270. belonging to the ISO timestamp have been removed.
  2271. * If the custom time stamp format is longer than the default and you
  2272. are using dates in tables, table alignment will be messed up. If
  2273. the custom format is shorter, things do work as expected.
  2274. 
  2275. File: org, Node: Deadlines and scheduling, Next: Progress logging, Prev: Creating timestamps, Up: Timestamps
  2276. 6.3 Deadlines and Scheduling
  2277. ============================
  2278. A time stamp may be preceded by special keywords to facilitate planning
  2279. of work:
  2280. DEADLINE
  2281. The task (most likely a TODO item) is supposed to be finished on
  2282. that date, and it will be listed then. In addition, the
  2283. compilation for _today_ will carry a warning about the approaching
  2284. or missed deadline, starting `org-deadline-warning-days' before
  2285. the due date, and continuing until the entry is marked DONE. An
  2286. example:
  2287. *** TODO write article about the Earth for the Guide
  2288. The editor in charge is [[bbdb:Ford Prefect]]
  2289. DEADLINE: <2004-02-29 Sun>
  2290. SCHEDULED
  2291. You are planning to start working on that task on the given date.
  2292. The headline will be listed under the given date(1). In addition,
  2293. a reminder that the scheduled date has passed will be present in
  2294. the compilation for _today_, until the entry is marked DONE.
  2295. I.e., the task will automatically be forwarded until completed.
  2296. *** TODO Call Trillian for a date on New Years Eve.
  2297. SCHEDULED: <2004-12-25 Sat>
  2298. * Menu:
  2299. * Inserting deadline/schedule::
  2300. * Repeated tasks::
  2301. ---------- Footnotes ----------
  2302. (1) It will still be listed on that date after it has been marked
  2303. DONE. If you don't like this, set the variable
  2304. `org-agenda-skip-scheduled-if-done'.
  2305. 
  2306. File: org, Node: Inserting deadline/schedule, Next: Repeated tasks, Prev: Deadlines and scheduling, Up: Deadlines and scheduling
  2307. 6.3.1 Inserting deadline/schedule
  2308. ---------------------------------
  2309. The following commands allow to quickly insert a deadline or to schedule
  2310. an item:
  2311. `C-c C-d'
  2312. Insert `DEADLINE' keyword along with a stamp. The insertion will
  2313. happen in the line directly following the headline.
  2314. `C-c C-w'
  2315. Create a sparse tree with all deadlines that are either past-due,
  2316. or which will become due within `org-deadline-warning-days'. With
  2317. `C-u' prefix, show all deadlines in the file. With a numeric
  2318. prefix, check that many days. For example, `C-1 C-c C-w' shows
  2319. all deadlines due tomorrow.
  2320. `C-c C-s'
  2321. Insert `SCHEDULED' keyword along with a stamp. The insertion will
  2322. happen in the line directly following the headline. Any CLOSED
  2323. timestamp will be removed.
  2324. 
  2325. File: org, Node: Repeated tasks, Prev: Inserting deadline/schedule, Up: Deadlines and scheduling
  2326. 6.3.2 Repeated Tasks
  2327. --------------------
  2328. Some tasks need to be repeated again and again, and Org-mode therefore
  2329. allows to use a repeater in a DEADLINE or SCHEDULED time stamp, for
  2330. example:
  2331. ** TODO Pay the rent
  2332. DEADLINE: <2005-10-01 Sat +1m>
  2333. Deadlines and scheduled items produce entries in the agenda when they
  2334. are over-due, so it is important to be able to mark such an entry as
  2335. completed once you have done so. When you mark a DEADLINE or a SCHEDULE
  2336. with the todo keyword DONE, it will no longer produce entries in the
  2337. agenda. The problem with this is, however, that then also the _next_
  2338. instance of the repeated entry will not be active. Org-mode deals with
  2339. this in the following way: When you try to mark such an entry DONE
  2340. (using `C-c C-t'), it will shift the base date of the repeating time
  2341. stamp by the repeater interval, and immediately set the entry state
  2342. back to TODO. In the example above, setting the state to DONE would
  2343. actually switch the date like this:
  2344. ** TODO Pay the rent
  2345. DEADLINE: <2005-11-01 Tue +1m>
  2346. You will also be prompted for a note that will be put under the
  2347. DEADLINE line to keep a record that you actually acted on the previous
  2348. instance of this deadline.
  2349. As a consequence of shifting the base date, this entry will no
  2350. longer be visible in the agenda when checking past dates, but all
  2351. future instances will be visible.
  2352. You may have both scheduling and deadline information for a specific
  2353. task - just make sure that the repeater intervals on both are the same.
  2354. 
  2355. File: org, Node: Progress logging, Prev: Deadlines and scheduling, Up: Timestamps
  2356. 6.4 Progress Logging
  2357. ====================
  2358. Org-mode can automatically record a time stamp when you mark a TODO item
  2359. as DONE, or even each time when you change the state of a TODO item.
  2360. You can also measure precisely the time you spent on specific items in a
  2361. project by starting and stopping a clock when you start and stop working
  2362. on an aspect of a project.
  2363. * Menu:
  2364. * Closing items:: When was this entry marked DONE?
  2365. * Tracking TODO state changes:: When did the status change?
  2366. * Clocking work time:: When exactly did you work on this item?
  2367. 
  2368. File: org, Node: Closing items, Next: Tracking TODO state changes, Prev: Progress logging, Up: Progress logging
  2369. 6.4.1 Closing items
  2370. -------------------
  2371. If you want to keep track of _when_ a certain TODO item was finished,
  2372. turn on logging with(1)
  2373. (setq org-log-done t)
  2374. Then each time you turn a TODO entry into DONE using either `C-c C-t'
  2375. in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
  2376. [timestamp]' will be inserted just after the headline. If you turn the
  2377. entry back into a TODO item through further state cycling, that line
  2378. will be removed again. In the timeline (*note Timeline::) and in the
  2379. agenda (*note Weekly/Daily agenda::), you can then use the `l' key to
  2380. display the TODO items closed on each day, giving you an overview of
  2381. what has been done on a day. If you want to record a note along with
  2382. the timestamp, use(2)
  2383. (setq org-log-done '(done))
  2384. ---------- Footnotes ----------
  2385. (1) The corresponding in-buffer setting is: `#+STARTUP: logdone'
  2386. (2) The corresponding in-buffer setting is: `#+STARTUP: lognotedone'
  2387. 
  2388. File: org, Node: Tracking TODO state changes, Next: Clocking work time, Prev: Closing items, Up: Progress logging
  2389. 6.4.2 Tracking TODO state changes
  2390. ---------------------------------
  2391. When TODO keywords are used as workflow states (*note Workflow
  2392. states::), you might want to keep track of when a state change occurred,
  2393. and you may even want to attach notes to that state change. With the
  2394. setting
  2395. (setq org-log-done '(state))
  2396. each state change will prompt you for a note that will be attached to
  2397. the current headline. Very likely you do not want this verbose tracking
  2398. all the time, so it is probably better to configure this behavior with
  2399. in-buffer options. For example, if you are tracking purchases, put
  2400. these into a separate file that starts with:
  2401. #+SEQ_TODO: TODO ORDERED INVOICE PAYED RECEIVED SENT
  2402. #+STARTUP: lognotestate
  2403. 
  2404. File: org, Node: Clocking work time, Prev: Tracking TODO state changes, Up: Progress logging
  2405. 6.4.3 Clocking work time
  2406. ------------------------
  2407. Org-mode allows you to clock the time you spent on specific tasks in a
  2408. project. When you start working on an item, you can start the clock.
  2409. When you stop working on that task, or when you mark the task done, the
  2410. clock is stopped and the corresponding time interval is recorded. It
  2411. also computes the total time spent on each subtree of a project.
  2412. `C-c C-x C-i'
  2413. Start the clock on the current item (clock-in). This inserts the
  2414. CLOCK keyword together with a timestamp.
  2415. `C-c C-x C-o'
  2416. Stop the clock (clock-out). The inserts another timestamp at the
  2417. same location where the clock was last started. It also directly
  2418. computes the resulting time in inserts it after the time range as
  2419. `=> HH:MM'. See the variable `org-log-done' for the possibility to
  2420. record an additional note together with the clock-out time
  2421. stamp(1).
  2422. `C-c C-y'
  2423. Recompute the time interval after changing one of the time stamps.
  2424. This is only necessary if you edit the time stamps directly. If
  2425. you change them with `S-<cursor>' keys, the update is automatic.
  2426. `C-c C-t'
  2427. Changing the TODO state of an item to DONE automatically stops the
  2428. clock if it is running in this same item.
  2429. `C-c C-x C-x'
  2430. Cancel the current clock. This is useful if a clock was started by
  2431. mistake, or if you ended up working on something else.
  2432. `C-c C-x C-d'
  2433. Display time summaries for each subtree in the current buffer.
  2434. This puts overlays at the end of each headline, showing the total
  2435. time recorded under that heading, including the time of any
  2436. subheadings. You can use visibility cycling to study the tree, but
  2437. the overlays disappear when you change the buffer (see variable
  2438. `org-remove-highlights-with-change') or press `C-c C-c'.
  2439. `C-c C-x C-r'
  2440. Insert a dynamic block (*note Dynamic blocks::) containing a clock
  2441. report as an org-mode table into the current file.
  2442. #+BEGIN: clocktable :maxlevel 2 :emphasize nil
  2443. #+END: clocktable
  2444. If such a block already exists, its content is replaced by the new
  2445. table. The `BEGIN' line can specify options:
  2446. :maxlevels Maximum level depth to which times are listed in the table.
  2447. :emphasize When `t', emphasize level one and level two items
  2448. :block The time block to consider. This block is specified relative
  2449. to the current time and may be any of these keywords:
  2450. `today', `yesterday', `thisweek', `lastweek',
  2451. `thismonth', `lastmonth', `thisyear', or `lastyear'.
  2452. :tstart A time string specifying when to start considering times
  2453. :tend A time string specifying when to stop considering times
  2454. So to get a clock summary for the current day, you could write
  2455. #+BEGIN: clocktable :maxlevel 2 :block today
  2456. #+END: clocktable
  2457. and to use a specific time range you could write(2)
  2458. #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
  2459. :tend "<2006-08-10 Thu 12:00>"
  2460. #+END: clocktable
  2461. `C-u C-c C-x C-u'
  2462. Update all dynamic blocks (*note Dynamic blocks::). This is
  2463. useful if you have several clocktable blocks in a buffer.
  2464. The `l' key may be used in the timeline (*note Timeline::) and in
  2465. the agenda (*note Weekly/Daily agenda::) to show which tasks have been
  2466. worked on or closed during a day.
  2467. ---------- Footnotes ----------
  2468. (1) The corresponding in-buffer setting is: `#+STARTUP:
  2469. lognoteclock-out'
  2470. (2) Note that all parameters must be specified in a single line -
  2471. the line is broken here only to fit it onto the manual.
  2472. 
  2473. File: org, Node: Tags, Next: Agenda views, Prev: Timestamps, Up: Top
  2474. 7 Tags
  2475. ******
  2476. If you wish to implement a system of labels and contexts for
  2477. cross-correlating information, an excellent way is to assign tags to
  2478. headlines. Org-mode has extensive support for using tags.
  2479. Every headline can contain a list of tags, at the end of the
  2480. headline. Tags are normal words containing letters, numbers, `_', and
  2481. `@'. Tags must be preceded and followed by a single colon; like
  2482. `:WORK:'. Several tags can be specified like `:WORK:URGENT:'.
  2483. * Menu:
  2484. * Tag inheritance:: Tags use the tree structure of the outline
  2485. * Setting tags:: How to assign tags to a headline
  2486. * Tag searches:: Searching for combinations of tags
  2487. 
  2488. File: org, Node: Tag inheritance, Next: Setting tags, Prev: Tags, Up: Tags
  2489. 7.1 Tag inheritance
  2490. ===================
  2491. Tags make use of the hierarchical structure of outline trees. If a
  2492. heading has a certain tag, all subheadings will inherit the tag as
  2493. well. For example, in the list
  2494. * Meeting with the French group :WORK:
  2495. ** Summary by Frank :BOSS:NOTES:
  2496. *** TODO Prepare slides for him :ACTION:
  2497. the final heading will have the tags `:WORK:', `:BOSS:', `:NOTES:', and
  2498. `:ACTION:'. When executing tag searches and Org-mode finds that a
  2499. certain headline matches the search criterion, it will not check any
  2500. sublevel headline, assuming that these likely also match, and that the
  2501. list of matches can become very long. This may not be what you want,
  2502. however, and you can influence inheritance and searching using the
  2503. variables `org-use-tag-inheritance' and `org-tags-match-list-sublevels'.
  2504. 
  2505. File: org, Node: Setting tags, Next: Tag searches, Prev: Tag inheritance, Up: Tags
  2506. 7.2 Setting tags
  2507. ================
  2508. Tags can simply be typed into the buffer at the end of a headline.
  2509. After a colon, `M-<TAB>' offers completion on tags. There is also a
  2510. special command for inserting tags:
  2511. `C-c C-c'
  2512. Enter new tags for the current headline. Org-mode will either
  2513. offer completion or a special single-key interface for setting
  2514. tags, see below. After pressing <RET>, the tags will be inserted
  2515. and aligned to `org-tags-column'. When called with a `C-u'
  2516. prefix, all tags in the current buffer will be aligned to that
  2517. column, just to make things look nice. TAGS are automatically
  2518. realigned after promotion, demotion, and TODO state changes (*note
  2519. TODO basics::).
  2520. Org will support tag insertion based on a _list of tags_. By
  2521. default this list is constructed dynamically, containing all tags
  2522. currently used in the buffer. You may also globally specify a hard list
  2523. of tags with the variable `org-tag-alist'. Finally you can set the
  2524. default tags for a given file with lines like
  2525. #+TAGS: @WORK @HOME @TENNISCLUB
  2526. #+TAGS: Laptop Car PC Sailboat
  2527. If you have globally defined your preferred set of tags using the
  2528. variable `org-tag-alist', but would like to use a dynamic tag list in a
  2529. specific file: Just add an empty TAGS option line to that file:
  2530. #+TAGS:
  2531. The default support method for entering tags is minibuffer
  2532. completion. However, Org-mode also implements a much better method:
  2533. _fast tag selection_. This method allows to select and deselect tags
  2534. with a single key per tag. To function efficiently, you should assign
  2535. unique keys to most tags. This can be done globally with
  2536. (setq org-tag-alist '(("@WORK" . ?w) ("@HOME" . ?h) ("Laptop" . ?l)))
  2537. or on a per-file basis with
  2538. #+TAGS: @WORK(w) @HOME(h) @TENNISCLUB(t) Laptop(l) PC(p)
  2539. You can also group together tags that are mutually exclusive. With
  2540. curly braces(1)
  2541. #+TAGS: { @WORK(w) @HOME(h) @TENNISCLUB(t) } Laptop(l) PC(p)
  2542. you indicate that at most one of `@WORK', `@HOME', and `@TENNISCLUB'
  2543. should be selected.
  2544. Don't forget to press `C-c C-c' with the cursor in one of these lines
  2545. to activate any changes.
  2546. If at least one tag has a selection key, pressing `C-c C-c' will
  2547. automatically present you with a special interface, listing inherited
  2548. tags, the tags of the current headline, and a list of all legal tags
  2549. with corresponding keys(2). In this interface, you can use the
  2550. following keys:
  2551. `a-z...'
  2552. Pressing keys assigned to tags will add or remove them from the
  2553. list of tags in the current line. Selecting a tag in a group of
  2554. mutually exclusive tags will turn off any other tags from that
  2555. group.
  2556. `<TAB>'
  2557. Enter a tag in the minibuffer, even if the tag is not in the
  2558. predefined list. You will be able to complete on all tags present
  2559. in the buffer.
  2560. `<SPC>'
  2561. Clear all tags for this line.
  2562. `<RET>'
  2563. Accept the modified set.
  2564. `C-g'
  2565. Abort without installing changes.
  2566. `q'
  2567. If `q' is not assigned to a tag, it aborts like `C-g'.
  2568. `!'
  2569. Turn off groups of mutually exclusive tags. Use this to (as an
  2570. exception) assign several tags from such a group.
  2571. `C-c'
  2572. Toggle auto-exit after the next change (see below). If you are
  2573. using expert mode, the first `C-c' will display the selection
  2574. window.
  2575. This method lets you assign tags to a headline with very few keys. With
  2576. the above setup, you could clear the current tags and set `@HOME',
  2577. `Laptop' and `PC' tags with just the following keys: `C-c C-c <SPC> h l
  2578. p <RET>'. Switching from `@HOME' to `@WORK' would be done with `C-c
  2579. C-c w <RET>' or alternatively with `C-c C-c C-c w'. Adding the
  2580. non-predefined tag `Sarah' could be done with `C-c C-c <TAB> S a r a h
  2581. <RET> <RET>'.
  2582. If you find that most of the time, you need only a single keypress to
  2583. modify your list of tags, set the variable
  2584. `org-fast-tag-selection-single-key'. Then you no longer have to press
  2585. <RET> to exit fast tag selection - it will immediately exit after the
  2586. first change. If you then occasionally need more keys, press `C-c' to
  2587. turn off auto-exit for the current tag selection process (in effect:
  2588. start selection with `C-c C-c C-c' instead of `C-c C-c'). If you set
  2589. the variable to the value `expert', the special window is not even
  2590. shown for single-key tag selection, it comes up only when you press an
  2591. extra `C-c'.
  2592. ---------- Footnotes ----------
  2593. (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
  2594. respectively. Several groups are allowed.
  2595. (2) Keys will automatically be assigned to tags which have no
  2596. configured keys.
  2597. 
  2598. File: org, Node: Tag searches, Prev: Setting tags, Up: Tags
  2599. 7.3 Tag searches
  2600. ================
  2601. Once a tags system has been set up, it can be used to collect related
  2602. information into special lists.
  2603. `C-c \'
  2604. Create a sparse tree with all headlines matching a tags search.
  2605. With a `C-u' prefix argument, ignore headlines that are not a TODO
  2606. line.
  2607. `C-c a m'
  2608. Create a global list of tag matches from all agenda files. *Note
  2609. Matching headline tags::.
  2610. `C-c a M'
  2611. Create a global list of tag matches from all agenda files, but
  2612. check only TODO items and force checking subitems (see variable
  2613. `org-tags-match-list-sublevels').
  2614. A tags search string can use Boolean operators `&' for AND and `|'
  2615. for OR. `&' binds more strongly than `|'. Parenthesis are currently
  2616. not implemented. A tag may also be preceded by `-', to select against
  2617. it, and `+' is syntactic sugar for positive selection. The AND
  2618. operator `&' is optional when `+' or `-' is present. Examples:
  2619. `+WORK-BOSS'
  2620. Select headlines tagged `:WORK:', but discard those also tagged
  2621. `:BOSS:'.
  2622. `WORK|LAPTOP'
  2623. Selects lines tagged `:WORK:' or `:LAPTOP:'.
  2624. `WORK|LAPTOP&NIGHT'
  2625. Like before, but require the `:LAPTOP:' lines to be tagged also
  2626. `NIGHT'.
  2627. If you are using multi-state TODO keywords (*note TODO
  2628. extensions::), it can be useful to also match on the TODO keyword.
  2629. This can be done by adding a condition after a slash to a tags match.
  2630. The syntax is similar to the tag matches, but should be applied with
  2631. consideration: For example, a positive selection on several TODO
  2632. keywords can not meaningfully be combined with boolean AND. However,
  2633. _negative selection_ combined with AND can be meaningful. To make sure
  2634. that only lines are checked that actually have any TODO keyword, use
  2635. `C-c a M', or equivalently start the todo part after the slash with `!'.
  2636. Examples:
  2637. `WORK/WAITING'
  2638. Select `:WORK:'-tagged TODO lines with the specific TODO keyword
  2639. `WAITING'.
  2640. `WORK/!-WAITING-NEXT'
  2641. Select `:WORK:'-tagged TODO lines that are neither `WAITING' nor
  2642. `NEXT'
  2643. `WORK/+WAITING|+NEXT'
  2644. Select `:WORK:'-tagged TODO lines that are either `WAITING' or
  2645. `NEXT'.
  2646. Any element of the tag/todo match can be a regular expression - in
  2647. this case it must be enclosed in curly braces. For example,
  2648. `WORK+{^BOSS.*}' matches headlines that contain the tag `WORK' and any
  2649. tag starting with `BOSS'.
  2650. You can also require a headline to be of a certain level, by writing
  2651. instead of any TAG an expression like `LEVEL=3'. For example, a search
  2652. `+LEVEL=3+BOSS/-DONE' lists all level three headlines that have the tag
  2653. BOSS and are _not_ marked with the todo keyword DONE.
  2654. 
  2655. File: org, Node: Agenda views, Next: Embedded LaTeX, Prev: Tags, Up: Top
  2656. 8 Agenda Views
  2657. **************
  2658. Due to the way Org-mode works, TODO items, time-stamped items, and
  2659. tagged headlines can be scattered throughout a file or even a number of
  2660. files. To get an overview over open action items, or over events that
  2661. are important for a particular date, this information must be collected,
  2662. sorted and displayed in an organized way.
  2663. Org-mode can select items based on various criteria, and display them
  2664. in a separate buffer. Six different view types are provided:
  2665. * an _agenda_ that is like a calendar and shows information for
  2666. specific dates,
  2667. * a _TODO list_ that covers all unfinished action items,
  2668. * a _tags view_, showings headlines based on the tags associated
  2669. with them,
  2670. * a _timeline view_ that shows all events in a single Org-mode file,
  2671. in time-sorted view,
  2672. * a _stuck projects view_ showing projects that currently don't move
  2673. along, and
  2674. * _custom views_ that are special tag/keyword searches and
  2675. combinations of different views.
  2676. The extracted information is displayed in a special _agenda buffer_.
  2677. This buffer is read-only, but provides commands to visit the
  2678. corresponding locations in the original Org-mode files, and even to
  2679. edit these files remotely.
  2680. Two variables control how the agenda buffer is displayed and whether
  2681. the window configuration is restored when the agenda exits:
  2682. `org-agenda-window-setup' and `org-agenda-restore-windows-after-quit'.
  2683. * Menu:
  2684. * Agenda files:: Files being searched for agenda information
  2685. * Agenda dispatcher:: Keyboard access to agenda views
  2686. * Built-in agenda views:: What is available out of the box?
  2687. * Presentation and sorting:: How agenda items are prepared for display
  2688. * Agenda commands:: Remote editing of org trees
  2689. * Custom agenda views:: Defining special searches and views
  2690. 
  2691. File: org, Node: Agenda files, Next: Agenda dispatcher, Prev: Agenda views, Up: Agenda views
  2692. 8.1 Agenda files
  2693. ================
  2694. The information to be shown is collected from all _agenda files_, the
  2695. files listed in the variable `org-agenda-files'(1). Thus even if you
  2696. only work with a single Org-mode file, this file should be put into
  2697. that list(2). You can customize `org-agenda-files', but the easiest
  2698. way to maintain it is through the following commands
  2699. `C-c ['
  2700. Add current file to the list of agenda files. The file is added to
  2701. the front of the list. If it was already in the list, it is moved
  2702. to the front. With prefix arg, file is added/moved to the end.
  2703. `C-c ]'
  2704. Remove current file from the list of agenda files.
  2705. `C-,'
  2706. `C-''
  2707. Cycle through agenda file list, visiting one file after the other.
  2708. The Org menu contains the current list of files and can be used to
  2709. visit any of them.
  2710. ---------- Footnotes ----------
  2711. (1) If the value of that variable is not a list, but a single file
  2712. name, then the list of agenda files will be maintained in that external
  2713. file.
  2714. (2) When using the dispatcher, pressing `1' before selecting a
  2715. command will actually limit the command to the current file, and ignore
  2716. `org-agenda-files' until the next dispatcher command.
  2717. 
  2718. File: org, Node: Agenda dispatcher, Next: Built-in agenda views, Prev: Agenda files, Up: Agenda views
  2719. 8.2 The agenda dispatcher
  2720. =========================
  2721. The views are created through a dispatcher that should be bound to a
  2722. global key, for example `C-c a' (*note Installation::). In the
  2723. following we will assume that `C-c a' is indeed how the dispatcher is
  2724. accessed and list keyboard access to commands accordingly. After
  2725. pressing `C-c a', an additional letter is required to execute a
  2726. command. The dispatcher offers the following default commands:
  2727. `a'
  2728. Create the calendar-like agenda (*note Weekly/Daily agenda::).
  2729. `t / T'
  2730. Create a list of all TODO items (*note Global TODO list::).
  2731. `m / M'
  2732. Create a list of headlines matching a TAGS expression (*note
  2733. Matching headline tags::).
  2734. `L'
  2735. Create the timeline view for the current buffer (*note Timeline::).
  2736. `# / !'
  2737. Create a list of stuck projects (*note Stuck projects::).
  2738. `1'
  2739. Restrict an agenda command to the current buffer. After pressing
  2740. `1', you still need to press the character selecting the command.
  2741. `0'
  2742. If there is an active region, restrict the following agenda
  2743. command to the region. Otherwise, restrict it to the current
  2744. subtree. After pressing `0', you still need to press the
  2745. character selecting the command.
  2746. You can also define custom commands that will be accessible through
  2747. the dispatcher, just like the default commands. This includes the
  2748. possibility to create extended agenda buffers that contain several
  2749. blocks together, for example the weekly agenda, the global TODO list and
  2750. a number of special tags matches. *Note Custom agenda views::.
  2751. 
  2752. File: org, Node: Built-in agenda views, Next: Presentation and sorting, Prev: Agenda dispatcher, Up: Agenda views
  2753. 8.3 The built-in agenda views
  2754. =============================
  2755. In this section we describe the built-in views.
  2756. * Menu:
  2757. * Weekly/Daily agenda:: The calendar page with current tasks
  2758. * Global TODO list:: All unfinished action items
  2759. * Matching headline tags:: Structured information with fine-tuned search
  2760. * Timeline:: Time-sorted view for single file
  2761. * Stuck projects:: Find projects you need to review
  2762. 
  2763. File: org, Node: Weekly/Daily agenda, Next: Global TODO list, Prev: Built-in agenda views, Up: Built-in agenda views
  2764. 8.3.1 The weekly/daily agenda
  2765. -----------------------------
  2766. The purpose of the weekly/daily _agenda_ is to act like a page of a
  2767. paper agenda, showing all the tasks for the current week or day.
  2768. `C-c a a'
  2769. Compile an agenda for the current week from a list of org files.
  2770. The agenda shows the entries for each day. With a `C-u' prefix (or
  2771. when the variable `org-agenda-include-all-todo' is `t'), all
  2772. unfinished TODO items (including those without a date) are also
  2773. listed at the beginning of the buffer, before the first date.
  2774. Remote editing from the agenda buffer means, for example, that you
  2775. can change the dates of deadlines and appointments from the agenda
  2776. buffer. The commands available in the Agenda buffer are listed in
  2777. *Note Agenda commands::.
  2778. Calendar/Diary integration
  2779. ..........................
  2780. Emacs contains the calendar and diary by Edward M. Reingold. The
  2781. calendar displays a three-month calendar with holidays from different
  2782. countries and cultures. The diary allows you to keep track of
  2783. anniversaries, lunar phases, sunrise/set, recurrent appointments
  2784. (weekly, monthly) and more. In this way, it is quite complementary to
  2785. Org-mode. It can be very useful to combine output from Org-mode with
  2786. the diary.
  2787. In order to include entries from the Emacs diary into Org-mode's
  2788. agenda, you only need to customize the variable
  2789. (setq org-agenda-include-diary t)
  2790. After that, everything will happen automatically. All diary entries
  2791. including holidays, anniversaries etc will be included in the agenda
  2792. buffer created by Org-mode. <SPC>, <TAB>, and <RET> can be used from
  2793. the agenda buffer to jump to the diary file in order to edit existing
  2794. diary entries. The `i' command to insert new entries for the current
  2795. date works in the agenda buffer, as well as the commands `S', `M', and
  2796. `C' to display Sunrise/Sunset times, show lunar phases and to convert
  2797. to other calendars, respectively. `c' can be used to switch back and
  2798. forth between calendar and agenda.
  2799. If you are using the diary only for sexp entries and holidays, it is
  2800. faster to not use the above setting, but instead to copy or even move
  2801. the entries into an Org-mode file. Org-mode evaluates diary-style sexp
  2802. entries, and does it faster because there is no overhead for first
  2803. creating the diary display. Note that the sexp entries must start at
  2804. the left margin, no white space is allowed before them. For example,
  2805. the following segment of an Org-mode file will be processed and entries
  2806. will be made in the agenda:
  2807. * Birthdays and similar stuff
  2808. #+CATEGORY: Holiday
  2809. %%(org-calendar-holiday) ; special function for holiday names
  2810. #+CATEGORY: Ann
  2811. %%(diary-anniversary 14 5 1956) Artur Dent %d is years old
  2812. %%(diary-anniversary 2 10 1869) Mahatma Gandhi would be %d years old
  2813. 
  2814. File: org, Node: Global TODO list, Next: Matching headline tags, Prev: Weekly/Daily agenda, Up: Built-in agenda views
  2815. 8.3.2 The global TODO list
  2816. --------------------------
  2817. The global TODO list contains all unfinished TODO items, formatted and
  2818. collected into a single place.
  2819. `C-c a t'
  2820. Show the global TODO list. This collects the TODO items from all
  2821. agenda files (*note Agenda views::) into a single buffer. The
  2822. buffer is in `agenda-mode', so there are commands to examine and
  2823. manipulate the TODO entries directly from that buffer (*note
  2824. Agenda commands::).
  2825. `C-c a T'
  2826. Like the above, but allows selection of a specific TODO keyword.
  2827. You can also do this by specifying a prefix argument to `C-c a t'.
  2828. With a `C-u' prefix you are prompted for a keyword, and you may
  2829. also specify several keywords by separating them with `|' as
  2830. boolean OR operator. With a numeric prefix, the Nth keyword in
  2831. `org-todo-keywords' is selected. The `r' key in the agenda buffer
  2832. regenerates it, and you can give a prefix argument to this command
  2833. to change the selected TODO keyword, for example `3 r'. If you
  2834. often need a search for a specific keyword, define a custom
  2835. command for it (*note Agenda dispatcher::).
  2836. Matching specific TODO keywords can also be done as part of a tags
  2837. search (*note Tag searches::).
  2838. Remote editing of TODO items means that you can change the state of a
  2839. TODO entry with a single key press. The commands available in the TODO
  2840. list are described in *Note Agenda commands::.
  2841. Normally the global todo list simply shows all headlines with TODO
  2842. keywords. This list can become very long. There are two ways to keep
  2843. it more compact:
  2844. - Some people view a TODO item that has been _scheduled_ for
  2845. execution (*note Time stamps::) as no longer _open_. Configure the
  2846. variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
  2847. items from the global TODO list.
  2848. - TODO items may have sublevels to break up the task into subtasks.
  2849. In such cases it may be enough to list only the highest level TODO
  2850. headline and omit the sublevels from the global list. Configure
  2851. the variable `org-agenda-todo-list-sublevels' to get this behavior.
  2852. 
  2853. File: org, Node: Matching headline tags, Next: Timeline, Prev: Global TODO list, Up: Built-in agenda views
  2854. 8.3.3 Matching headline tags
  2855. ----------------------------
  2856. If headlines in the agenda files are marked with _tags_ (*note Tags::),
  2857. you can select headlines based on the tags that apply to them and
  2858. collect them into an agenda buffer.
  2859. `C-c a m'
  2860. Produce a list of all headlines that match a given set of tags.
  2861. The command prompts for a selection criterion, which is a boolean
  2862. logic expression with tags, like `+WORK+URGENT-WITHBOSS' or
  2863. `WORK|HOME' (*note Tags::). If you often need a specific search,
  2864. define a custom command for it (*note Agenda dispatcher::).
  2865. `C-c a M'
  2866. Like `C-c a m', but only select headlines that are also TODO items
  2867. and force checking subitems (see variable
  2868. `org-tags-match-list-sublevels'). Matching specific todo keywords
  2869. together with a tags match is also possible, see *Note Tag
  2870. searches::.
  2871. The commands available in the tags list are described in *Note
  2872. Agenda commands::.
  2873. 
  2874. File: org, Node: Timeline, Next: Stuck projects, Prev: Matching headline tags, Up: Built-in agenda views
  2875. 8.3.4 Timeline for a single file
  2876. --------------------------------
  2877. The timeline summarizes all time-stamped items from a single Org-mode
  2878. file in a _time-sorted view_. The main purpose of this command is to
  2879. give an overview over events in a project.
  2880. `C-c a L'
  2881. Show a time-sorted view of the org file, with all time-stamped
  2882. items. When called with a `C-u' prefix, all unfinished TODO
  2883. entries (scheduled or not) are also listed under the current date.
  2884. The commands available in the timeline buffer are listed in *Note
  2885. Agenda commands::.
  2886. 
  2887. File: org, Node: Stuck projects, Prev: Timeline, Up: Built-in agenda views
  2888. 8.3.5 Stuck projects
  2889. --------------------
  2890. If you are following a system like David Allen's GTD to organize your
  2891. work, one of the "duties" you have is a regular review to make sure
  2892. that all projects move along. A _stuck_ project is a project that has
  2893. no defined next actions, so it will never show up in the TODO lists
  2894. Org-mode produces. During the review, you need to identify such
  2895. projects and define next actions for them.
  2896. `C-c a #'
  2897. List projects that are stuck.
  2898. `C-c a !'
  2899. Customize the variable `org-stuck-projects' to define what a stuck
  2900. project is and how to find it.
  2901. You almost certainly will have to configure this view before it will
  2902. work for you. The built-in default assumes that all your projects are
  2903. level-2 headlines, and that a project is not stuck if it has at least
  2904. one entry marked with a todo keyword TODO or NEXT or NEXTACTION.
  2905. Lets assume that you, in your own way of using Org-mode, identify
  2906. projects with a tag PROJECT, and that you use a todo keyword MAYBE to
  2907. indicate a project that should not be considered yet. Lets further
  2908. assume that the todo keyword DONE marks finished projects, and that NEXT
  2909. and TODO indicate next actions. The tag @SHOP indicates shopping and
  2910. is a next action even without the NEXT tag. Finally, if the project
  2911. contains the special word IGNORE anywhere, it should not be listed
  2912. either. In this case you would start by identifying eligible projects
  2913. with a tags/todo match `+PROJECT/-MAYBE-DONE', and then check for TODO,
  2914. NEXT, @SHOP, and IGNORE in the subtree to identify projects that are
  2915. not stuck. The correct customization for this is
  2916. (setq org-stuck-projects
  2917. '("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@SHOP")
  2918. "\\<IGNORE\\>"))
  2919. 
  2920. File: org, Node: Presentation and sorting, Next: Agenda commands, Prev: Built-in agenda views, Up: Agenda views
  2921. 8.4 Presentation and sorting
  2922. ============================
  2923. Before displaying items in an agenda view, Org-mode visually prepares
  2924. the items and sorts them. Each item occupies a single line. The line
  2925. starts with a _prefix_ that contains the _category_ (*note
  2926. Categories::) of the item and other important information. You can
  2927. customize the prefix using the option `org-agenda-prefix-format'. The
  2928. prefix is followed by a cleaned-up version of the outline headline
  2929. associated with the item.
  2930. * Menu:
  2931. * Categories:: Not all tasks are equal
  2932. * Time-of-day specifications:: How the agenda knows the time
  2933. * Sorting of agenda items:: The order of things
  2934. 
  2935. File: org, Node: Categories, Next: Time-of-day specifications, Prev: Presentation and sorting, Up: Presentation and sorting
  2936. 8.4.1 Categories
  2937. ----------------
  2938. The category is a broad label assigned to each agenda item. By default,
  2939. the category is simply derived from the file name, but you can also
  2940. specify it with a special line in the buffer, like this:
  2941. #+CATEGORY: Thesis
  2942. If there are several such lines in a file, each specifies the
  2943. category for the text below it (but the first category also applies to
  2944. any text before the first CATEGORY line). The display in the agenda
  2945. buffer looks best if the category is not longer than 10 characters.
  2946. 
  2947. File: org, Node: Time-of-day specifications, Next: Sorting of agenda items, Prev: Categories, Up: Presentation and sorting
  2948. 8.4.2 Time-of-Day Specifications
  2949. --------------------------------
  2950. Org-mode checks each agenda item for a time-of-day specification. The
  2951. time can be part of the time stamp that triggered inclusion into the
  2952. agenda, for example as in `<2005-05-10 Tue 19:00>'. Time ranges can be
  2953. specified with two time stamps, like
  2954. `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
  2955. In the headline of the entry itself, a time(range) may also appear as
  2956. plain text (like `12:45' or a `8:30-1pm'. If the agenda integrates the
  2957. Emacs diary (*note Weekly/Daily agenda::), time specifications in diary
  2958. entries are recognized as well.
  2959. For agenda display, Org-mode extracts the time and displays it in a
  2960. standard 24 hour format as part of the prefix. The example times in
  2961. the previous paragraphs would end up in the agenda like this:
  2962. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  2963. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  2964. 19:00...... The Vogon reads his poem
  2965. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  2966. If the agenda is in single-day mode, or for the display of today, the
  2967. timed entries are embedded in a time grid, like
  2968. 8:00...... ------------------
  2969. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  2970. 10:00...... ------------------
  2971. 12:00...... ------------------
  2972. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  2973. 14:00...... ------------------
  2974. 16:00...... ------------------
  2975. 18:00...... ------------------
  2976. 19:00...... The Vogon reads his poem
  2977. 20:00...... ------------------
  2978. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  2979. The time grid can be turned on and off with the variable
  2980. `org-agenda-use-time-grid', and can be configured with
  2981. `org-agenda-time-grid'.
  2982. 
  2983. File: org, Node: Sorting of agenda items, Prev: Time-of-day specifications, Up: Presentation and sorting
  2984. 8.4.3 Sorting of agenda items
  2985. -----------------------------
  2986. Before being inserted into a view, the items are sorted. How this is
  2987. done depends on the type of view.
  2988. * For the daily/weekly agenda, the items for each day are sorted.
  2989. The default order is to first collect all items containing an
  2990. explicit time-of-day specification. These entries will be shown
  2991. at the beginning of the list, as a _schedule_ for the day. After
  2992. that, items remain grouped in categories, in the sequence given by
  2993. `org-agenda-files'. Within each category, items are sorted by
  2994. priority (*note Priorities::), which is composed of the base
  2995. priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
  2996. plus additional increments for overdue scheduled or deadline items.
  2997. * For the TODO list, items remain in the order of categories, but
  2998. within each category, sorting takes place according to priority
  2999. (*note Priorities::).
  3000. * For tags matches, items are not sorted at all, but just appear in
  3001. the sequence in which they are found in the agenda files.
  3002. Sorting can be customized using the variable
  3003. `org-agenda-sorting-strategy'.
  3004. 
  3005. File: org, Node: Agenda commands, Next: Custom agenda views, Prev: Presentation and sorting, Up: Agenda views
  3006. 8.5 Commands in the agenda buffer
  3007. =================================
  3008. Entries in the agenda buffer are linked back to the org file or diary
  3009. file where they originate. You are not allowed to edit the agenda
  3010. buffer itself, but commands are provided to show and jump to the
  3011. original entry location, and to edit the org-files "remotely" from the
  3012. agenda buffer. In this way, all information is stored only once,
  3013. removing the risk that your agenda and note files may diverge.
  3014. Some commands can be executed with mouse clicks on agenda lines. For
  3015. the other commands, the cursor needs to be in the desired line.
  3016. Motion
  3017. ......
  3018. `n'
  3019. Next line (same as <up>).
  3020. `p'
  3021. Previous line (same as <down>).
  3022. View/GoTo org file
  3023. ..................
  3024. `mouse-3'
  3025. `<SPC>'
  3026. Display the original location of the item in another window.
  3027. `L'
  3028. Display original location and recenter that window.
  3029. `mouse-2'
  3030. `mouse-1'
  3031. `<TAB>'
  3032. Go to the original location of the item in another window. Under
  3033. Emacs 22, `mouse-1' will also works for this.
  3034. `<RET>'
  3035. Go to the original location of the item and delete other windows.
  3036. `f'
  3037. Toggle Follow mode. In Follow mode, as you move the cursor through
  3038. the agenda buffer, the other window always shows the corresponding
  3039. location in the org file. The initial setting for this mode in new
  3040. agenda buffers can be set with the variable
  3041. `org-agenda-start-with-follow-mode'.
  3042. `b'
  3043. Display the entire subtree of the current item in an indirect
  3044. buffer. With numerical prefix ARG, go up to this level and then
  3045. take that tree. If ARG is negative, go up that many levels. With
  3046. `C-u' prefix, do not remove the previously used indirect buffer.
  3047. `l'
  3048. Toggle Logbook mode. In Logbook mode, entries that where marked
  3049. DONE while logging was on (variable `org-log-done') are shown in
  3050. the agenda, as are entries that have been clocked on that day.
  3051. Change display
  3052. ..............
  3053. `o'
  3054. Delete other windows.
  3055. `w'
  3056. Switch to weekly view (7 days displayed together).
  3057. `d'
  3058. Switch to daily view (just one day displayed).
  3059. `D'
  3060. Toggle the inclusion of diary entries. See *Note Weekly/Daily
  3061. agenda::.
  3062. `g'
  3063. Toggle the time grid on and off. See also the variables
  3064. `org-agenda-use-time-grid' and `org-agenda-time-grid'.
  3065. `r'
  3066. Recreate the agenda buffer, for example to reflect the changes
  3067. after modification of the time stamps of items with S-<left> and
  3068. S-<right>. When the buffer is the global todo list, a prefix
  3069. argument is interpreted to create a selective list for a specific
  3070. TODO keyword.
  3071. `s'
  3072. Save all Org-mode buffers in the current Emacs session.
  3073. `<right>'
  3074. Display the following `org-agenda-ndays' days. For example, if
  3075. the display covers a week, switch to the following week. With
  3076. prefix arg, go forward that many times `org-agenda-ndays' days.
  3077. `<left>'
  3078. Display the previous dates.
  3079. `.'
  3080. Goto today.
  3081. Remote editing
  3082. ..............
  3083. `0-9'
  3084. Digit argument.
  3085. `C-_'
  3086. Undo a change due to a remote editing command. The change is
  3087. undone both in the agenda buffer and in the remote buffer.
  3088. `t'
  3089. Change the TODO state of the item, both in the agenda and in the
  3090. original org file.
  3091. `C-k'
  3092. Delete the current agenda item along with the entire subtree
  3093. belonging to it in the original Org-mode file. If the text to be
  3094. deleted remotely is longer than one line, the kill needs to be
  3095. confirmed by the user. See variable `org-agenda-confirm-kill'.
  3096. `$'
  3097. Archive the subtree corresponding to the current headline.
  3098. `T'
  3099. Show all tags associated with the current item. Because of
  3100. inheritance, this may be more than the tags listed in the line
  3101. itself.
  3102. `:'
  3103. Set tags for the current headline.
  3104. `a'
  3105. Toggle the ARCHIVE tag for the current headline.
  3106. `,'
  3107. Set the priority for the current item. Org-mode prompts for the
  3108. priority character. If you reply with <SPC>, the priority cookie
  3109. is removed from the entry.
  3110. `P'
  3111. Display weighted priority of current item.
  3112. `+'
  3113. `S-<up>'
  3114. Increase the priority of the current item. The priority is
  3115. changed in the original buffer, but the agenda is not resorted.
  3116. Use the `r' key for this.
  3117. `-'
  3118. `S-<down>'
  3119. Decrease the priority of the current item.
  3120. `C-c C-s'
  3121. Schedule this item
  3122. `C-c C-d'
  3123. Set a deadline for this item.
  3124. `S-<right>'
  3125. Change the time stamp associated with the current line by one day
  3126. into the future. With prefix argument, change it by that many
  3127. days. For example, `3 6 5 S-<right>' will change it by a year.
  3128. The stamp is changed in the original org file, but the change is
  3129. not directly reflected in the agenda buffer. Use the `r' key to
  3130. update the buffer.
  3131. `S-<left>'
  3132. Change the time stamp associated with the current line by one day
  3133. into the past.
  3134. `>'
  3135. Change the time stamp associated with the current line to today.
  3136. The key `>' has been chosen, because it is the same as `S-.' on my
  3137. keyboard.
  3138. `I'
  3139. Start the clock on the current item. If a clock is running
  3140. already, it is stopped first.
  3141. `O'
  3142. Stop the previously started clock.
  3143. `X'
  3144. Cancel the currently running clock.
  3145. Calendar commands
  3146. .................
  3147. `c'
  3148. Open the Emacs calendar and move to the date at the agenda cursor.
  3149. `c'
  3150. When in the calendar, compute and show the Org-mode agenda for the
  3151. date at the cursor.
  3152. `i'
  3153. Insert a new entry into the diary. Prompts for the type of entry
  3154. (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
  3155. new entry in the diary, just as `i d' etc. would do in the
  3156. calendar. The date is taken from the cursor position.
  3157. `M'
  3158. Show the phases of the moon for the three months around current
  3159. date.
  3160. `S'
  3161. Show sunrise and sunset times. The geographical location must be
  3162. set with calendar variables, see documentation of the Emacs
  3163. calendar.
  3164. `C'
  3165. Convert the date at cursor into many other cultural and historic
  3166. calendars.
  3167. `H'
  3168. Show holidays for three month around the cursor date.
  3169. `C-c C-x C-c'
  3170. Export a single iCalendar file containing entries from all agenda
  3171. files.
  3172. Exporting to a file
  3173. ...................
  3174. `C-x C-w'
  3175. Write the agenda view to a file. Depending on the extension of the
  3176. selected file name, the view will be exported as HTML (extension
  3177. `.html' or `.htm'), Postscript (extension `.ps'), or plain text
  3178. (any other extension). Use the variable
  3179. `org-agenda-exporter-settings' to set options for `ps-print' and
  3180. for `htmlize' to be used during export.
  3181. Quit and Exit
  3182. .............
  3183. `q'
  3184. Quit agenda, remove the agenda buffer.
  3185. `x'
  3186. Exit agenda, remove the agenda buffer and all buffers loaded by
  3187. Emacs for the compilation of the agenda. Buffers created by the
  3188. user to visit org files will not be removed.
  3189. 
  3190. File: org, Node: Custom agenda views, Prev: Agenda commands, Up: Agenda views
  3191. 8.6 Custom agenda views
  3192. =======================
  3193. Custom agenda commands serve two purposes: to store and quickly access
  3194. frequently used TODO and tags searches, and to create special composite
  3195. agenda buffers. Custom agenda commands will be accessible through the
  3196. dispatcher (*note Agenda dispatcher::), just like the default commands.
  3197. * Menu:
  3198. * Storing searches:: Type once, use often
  3199. * Block agenda:: All the stuff you need in a single buffer
  3200. * Setting Options:: Changing the rules
  3201. * Exporting Agenda Views:: Writing agendas to files.
  3202. * Extracting Agenda Information for other programs::
  3203. 
  3204. File: org, Node: Storing searches, Next: Block agenda, Prev: Custom agenda views, Up: Custom agenda views
  3205. 8.6.1 Storing searches
  3206. ----------------------
  3207. The first application of custom searches is the definition of keyboard
  3208. shortcuts for frequently used searches, either creating an agenda
  3209. buffer, or a sparse tree (the latter covering of course only the current
  3210. buffer). Custom commands are configured in the variable
  3211. `org-agenda-custom-commands'. You can customize this variable, for
  3212. example by pressing `C-c a C'. You can also directly set it with Emacs
  3213. Lisp in `.emacs'. The following example contains all valid search
  3214. types:
  3215. (setq org-agenda-custom-commands
  3216. '(("w" todo "WAITING")
  3217. ("W" todo-tree "WAITING")
  3218. ("u" tags "+BOSS-URGENT")
  3219. ("v" tags-todo "+BOSS-URGENT")
  3220. ("U" tags-tree "+BOSS-URGENT")
  3221. ("f" occur-tree "\\<FIXME\\>")))
  3222. The initial single-character string in each entry defines the character
  3223. you have to press after the dispatcher command `C-c a' in order to
  3224. access the command. The second parameter is the search type, followed
  3225. by the string or regular expression to be used for the matching. The
  3226. example above will therefore define:
  3227. `C-c a w'
  3228. as a global search for TODO entries with `WAITING' as the TODO
  3229. keyword
  3230. `C-c a W'
  3231. as the same search, but only in the current buffer and displaying
  3232. the results as a sparse tree
  3233. `C-c a u'
  3234. as a global tags search for headlines marked `:BOSS:' but not
  3235. `:URGENT:'
  3236. `C-c a v'
  3237. as the same search as `C-c a u', but limiting the search to
  3238. headlines that are also TODO items
  3239. `C-c a U'
  3240. as the same search as `C-c a u', but only in the current buffer and
  3241. displaying the result as a sparse tree
  3242. `C-c a f'
  3243. to create a sparse tree (again: current buffer only) with all
  3244. entries containing the word `FIXME'.
  3245. 
  3246. File: org, Node: Block agenda, Next: Setting Options, Prev: Storing searches, Up: Custom agenda views
  3247. 8.6.2 Block agenda
  3248. ------------------
  3249. Another possibility is the construction of agenda views that comprise
  3250. the results of _several_ commands, each of which creates a block in the
  3251. agenda buffer. The available commands include `agenda' for the daily
  3252. or weekly agenda (as created with `C-c a a'), `alltodo' for the global
  3253. todo list (as constructed with `C-c a t'), and the matching commands
  3254. discussed above: `todo', `tags', and `tags-todo'. Here are two
  3255. examples:
  3256. (setq org-agenda-custom-commands
  3257. '(("h" "Agenda and Home-related tasks"
  3258. ((agenda)
  3259. (tags-todo "HOME")
  3260. (tags "GARDEN")))
  3261. ("o" "Agenda and Office-related tasks"
  3262. ((agenda)
  3263. (tags-todo "WORK")
  3264. (tags "OFFICE")))))
  3265. This will define `C-c a h' to create a multi-block view for stuff you
  3266. need to attend to at home. The resulting agenda buffer will contain
  3267. your agenda for the current week, all TODO items that carry the tag
  3268. `HOME', and also all lines tagged with `GARDEN'. Finally the command
  3269. `C-c a o' provides a similar view for office tasks.
  3270. 
  3271. File: org, Node: Setting Options, Next: Exporting Agenda Views, Prev: Block agenda, Up: Custom agenda views
  3272. 8.6.3 Setting Options for custom commands
  3273. -----------------------------------------
  3274. Org-mode contains a number of variables regulating agenda construction
  3275. and display. The global variables define the behavior for all agenda
  3276. commands, including the custom commands. However, if you want to change
  3277. some settings just for a single custom view, you can do so. Setting
  3278. options requires inserting a list of variable names and values at the
  3279. right spot in `org-agenda-custom-commands'. For example:
  3280. (setq org-agenda-custom-commands
  3281. '(("w" todo "WAITING"
  3282. ((org-agenda-sorting-strategy '(priority-down))
  3283. (org-agenda-prefix-format " Mixed: ")))
  3284. ("U" tags-tree "+BOSS-URGENT"
  3285. ((org-show-following-heading nil)
  3286. (org-show-hierarchy-above nil)))))
  3287. Now the `C-c a w' command will sort the collected entries only by
  3288. priority, and the prefix format is modified to just say ` Mixed:'
  3289. instead of giving the category of the entry. The sparse tags tree of
  3290. `C-c a U' will now turn out ultra-compact, because neither the headline
  3291. hierarchy above the match, nor the headline following the match will be
  3292. shown.
  3293. For command sets creating a block agenda,
  3294. `org-agenda-custom-commands' has two separate spots for setting
  3295. options. You can add options that should be valid for just a single
  3296. command in the set, and options that should be valid for all commands in
  3297. the set. The former are just added to the command entry, the latter
  3298. must come after the list of command entries. Going back to the block
  3299. agenda example (*note Block agenda::), let's change the sorting strategy
  3300. for the `C-c a h' commands to `priority-down', but let's sort the
  3301. results for GARDEN tags query in the opposite order, `priority-up'.
  3302. This would look like this:
  3303. (setq org-agenda-custom-commands
  3304. '(("h" "Agenda and Home-related tasks"
  3305. ((agenda)
  3306. (tags-todo "HOME")
  3307. (tags "GARDEN"
  3308. ((org-agenda-sorting-strategy '(priority-up)))))
  3309. ((org-agenda-sorting-strategy '(priority-down))))
  3310. ("o" "Agenda and Office-related tasks"
  3311. ((agenda)
  3312. (tags-todo "WORK")
  3313. (tags "OFFICE")))))
  3314. As you see, the values and parenthesis setting is a little complex.
  3315. When in doubt, use the customize interface to set this variable - it
  3316. fully supports its structure. Just one caveat: When setting options in
  3317. this interface, the _values_ are just lisp expressions. So if the
  3318. value is a string, you need to add the double quotes around the value
  3319. yourself.
  3320. 
  3321. File: org, Node: Exporting Agenda Views, Next: Extracting Agenda Information for other programs, Prev: Setting Options, Up: Custom agenda views
  3322. 8.6.4 Exporting Agenda Views
  3323. ----------------------------
  3324. If you are away from your computer, it can be very useful to have a
  3325. printed version of some agenda views to carry around. Org-mode can
  3326. export custom agenda views as plain text, HTML(1) and postscript. If
  3327. you want to do this only occasionally, use the commend
  3328. `C-x C-w'
  3329. Write the agenda view to a file. Depending on the extension of the
  3330. selected file name, the view will be exported as HTML (extension
  3331. `.html' or `.htm'), Postscript (extension `.ps'), or plain text
  3332. (any other extension). Use the variable
  3333. `org-agenda-exporter-settings' to set options for `ps-print' and
  3334. for `htmlize' to be used during export, for example
  3335. (setq org-agenda-exporter-settings
  3336. '((ps-number-of-columns 2)
  3337. (ps-landscape-mode t)
  3338. (htmlize-output-type 'css)))
  3339. If you need to export certain agenda views frequently, you can
  3340. associate any custom agenda command with a list of output file names
  3341. (2). Here is an example that first does define custom commands for the
  3342. agenda and the global todo list, together with a number of files to
  3343. which to export them. Then we define two block agenda commands and
  3344. specify filenames for them as well. File names can be relative to the
  3345. current working directory, or absolute.
  3346. (setq org-agenda-custom-commands
  3347. '(("X" agenda "" nil ("agenda.html" "agenda.ps"))
  3348. ("Y" alltodo "" nil ("todo.html" "todo.txt" "todo.ps"))
  3349. ("h" "Agenda and Home-related tasks"
  3350. ((agenda)
  3351. (tags-todo "HOME")
  3352. (tags "GARDEN"))
  3353. nil
  3354. ("~/views/home.html"))
  3355. ("o" "Agenda and Office-related tasks"
  3356. ((agenda)
  3357. (tags-todo "WORK")
  3358. (tags "OFFICE"))
  3359. nil
  3360. ("~/views/office.ps"))))
  3361. The extension of the file name determines the type of export. If it
  3362. is `.html', Org-mode will use the `htmlize.el' package to convert the
  3363. buffer to HTML and save it to this file name. If the extension is
  3364. `.ps', `ps-print-buffer-with-faces' is used to produce postscript
  3365. output. Any other extension produces a plain ASCII file.
  3366. The export files are _not_ created when you use one of those
  3367. commands interactively. Instead, there is a special command to produce
  3368. _all_ specified files in one step:
  3369. `C-c a e'
  3370. Export all agenda views that have export filenames associated with
  3371. them.
  3372. You can use the options section of the custom agenda commands to also
  3373. set options for the export commands. For example:
  3374. (setq org-agenda-custom-commands
  3375. '(("X" agenda ""
  3376. ((ps-number-of-columns 2)
  3377. (ps-landscape-mode t)
  3378. (org-agenda-prefix-format " [ ] ")
  3379. (org-agenda-with-colors nil)
  3380. (org-agenda-remove-tags t))
  3381. ("theagenda.ps"))))
  3382. This command sets two options for the postscript exporter, to make it
  3383. print in two columns in landscape format - the resulting page can be cut
  3384. in two and then used in a paper agenda. The remaining settings modify
  3385. the agenda prefix to omit category and scheduling information, and
  3386. instead include a checkbox to check off items. We also remove the tags
  3387. to make the lines compact, and we don't want to use colors for the
  3388. black-and-white printer. Settings specified in
  3389. `org-agenda-exporter-settings' will also apply, but the settings in
  3390. `org-agenda-custom-commands' take precedence.
  3391. From the command line you may also use
  3392. emacs -f org-batch-store-agenda-views -kill
  3393. or, if you need to modify some parameters
  3394. emacs -eval '(org-batch-store-agenda-views \
  3395. org-agenda-ndays 30 \
  3396. org-agenda-include-diary nil \
  3397. org-agenda-files (quote ("~/org/project.org")))' \
  3398. -kill
  3399. which will create the agenda views restricted to the file
  3400. `~/org/project.org', without diary entries and with 30 days extent.
  3401. ---------- Footnotes ----------
  3402. (1) You need to install Hrvoje Niksic' `htmlize.el'.
  3403. (2) If you want to store standard views like the weekly agenda or
  3404. the global TODO list as well, you need to define custom commands for
  3405. them in order to be able to specify filenames.
  3406. 
  3407. File: org, Node: Extracting Agenda Information for other programs, Prev: Exporting Agenda Views, Up: Custom agenda views
  3408. 8.6.5 Extracting Agenda Information for other programs
  3409. ------------------------------------------------------
  3410. Org-mode provides commands to access agenda information for the command
  3411. line in emacs batch mode. This extracted information can be sent
  3412. directly to a printer, or it can be read by a program that does further
  3413. processing of the data. The first of these commands is the function
  3414. `org-batch-agenda', that produces an agenda view and sends it as ASCII
  3415. text to STDOUT. The command takes a single string as parameter. If
  3416. the string has length 1, it is used as a key to one of the commands you
  3417. have configured in `org-agenda-custom-commands', basically any key you
  3418. can use after `C-c a'. For example, to directly print the current TODO
  3419. list, you could use
  3420. emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
  3421. If the parameter is a string with 2 or more characters, it is used
  3422. as a tags/todo match string. For example, to print your local shopping
  3423. list (all items with the tag `shop', but excluding the tag `NewYork'),
  3424. you could use
  3425. emacs -batch -l ~/.emacs \
  3426. -eval '(org-batch-agenda "+shop-NewYork")' | lpr
  3427. You may also modify parameters on the fly like this:
  3428. emacs -batch -l ~/.emacs \
  3429. -eval '(org-batch-agenda "a" \
  3430. org-agenda-ndays 30 \
  3431. org-agenda-include-diary nil \
  3432. org-agenda-files (quote ("~/org/project.org")))' \
  3433. | lpr
  3434. which will produce a 30 day agenda, fully restricted to the Org file
  3435. `~/org/projects.org', not even including the diary.
  3436. If you want to process the agenda data in more sophisticated ways,
  3437. you can use the command `org-batch-agenda-csv' to get a comma-separated
  3438. list of values for each agenda item. Each line in the output will
  3439. contain a number of fields separated by commas. The fields in a line
  3440. are:
  3441. category The category of the item
  3442. head The headline, without TODO kwd, TAGS and PRIORITY
  3443. type The type of the agenda entry, can be
  3444. todo selected in TODO match
  3445. tagsmatch selected in tags match
  3446. diary imported from diary
  3447. deadline a deadline
  3448. scheduled scheduled
  3449. timestamp appointment, selected by timestamp
  3450. closed entry was closed on date
  3451. upcoming-deadline warning about nearing deadline
  3452. past-scheduled forwarded scheduled item
  3453. block entry has date block including date
  3454. todo The todo keyword, if any
  3455. tags All tags including inherited ones, separated by colons
  3456. date The relevant date, like 2007-2-14
  3457. time The time, like 15:00-16:50
  3458. extra String with extra planning info
  3459. priority-l The priority letter if any was given
  3460. priority-n The computed numerical priority
  3461. Time and date will only be given if a timestamp (or deadline/scheduled)
  3462. lead to the selection of the item.
  3463. A CSV list like this is very easy to use in a post processing script.
  3464. For example, here is a Perl program that gets the TODO list from
  3465. Emacs/org-mode and prints all the items, preceded by a checkbox:
  3466. #!/usr/bin/perl
  3467. # define the Emacs command to run
  3468. $cmd = "emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv \"t\")'";
  3469. # run it and capture the output
  3470. $agenda = qx{$cmd 2>/dev/null};
  3471. # loop over all lines
  3472. foreach $line (split(/\n/,$agenda)) {
  3473. # get the individual values
  3474. ($category,$head,$type,$todo,$tags,$date,$time,$extra,
  3475. $priority_l,$priority_n) = split(/,/,$line);
  3476. # proccess and print
  3477. print "[ ] $head\n";
  3478. }
  3479. 
  3480. File: org, Node: Embedded LaTeX, Next: Exporting, Prev: Agenda views, Up: Top
  3481. 9 Embedded LaTeX
  3482. ****************
  3483. Plain ASCII is normally sufficient for almost all note taking. One
  3484. exception, however, are scientific notes which need to be able to
  3485. contain mathematical symbols and the occasional formula. LaTeX(1) is
  3486. widely used to typeset scientific documents. Org-mode supports
  3487. embedding LaTeX code into its files, because many academics are used to
  3488. read LaTeX source code, and because it can be readily processed into
  3489. images for HTML production.
  3490. It is not necessary to mark LaTeX macros and code in any special way.
  3491. If you observe a few conventions, Org-mode knows how to find it and what
  3492. to do with it.
  3493. * Menu:
  3494. * Math symbols:: TeX macros for symbols and Greek letters
  3495. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  3496. * LaTeX fragments:: Complex formulas made easy
  3497. * Processing LaTeX fragments:: Previewing LaTeX processing
  3498. * CDLaTeX mode:: Speed up entering of formulas
  3499. ---------- Footnotes ----------
  3500. (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
  3501. Many of the features described here as "LaTeX" are really from TeX, but
  3502. for simplicity I am blurring this distinction.
  3503. 
  3504. File: org, Node: Math symbols, Next: Subscripts and Superscripts, Prev: Embedded LaTeX, Up: Embedded LaTeX
  3505. 9.1 Math symbols
  3506. ================
  3507. You can use LaTeX macros to insert special symbols like `\alpha' to
  3508. indicate the Greek letter, or `\to' to indicate an arrow. Completion
  3509. for these macros is available, just type `\' and maybe a few letters,
  3510. and press `M-<TAB>' to see possible completions. Unlike LaTeX code,
  3511. Org-mode allows these macros to be present without surrounding math
  3512. delimiters, for example:
  3513. Angles are written as Greek letters \alpha, \beta and \gamma.
  3514. During HTML export (*note HTML export::), these symbols are
  3515. translated into the proper syntax for HTML, for the above examples this
  3516. is `&alpha;' and `&rarr;', respectively.
  3517. 
  3518. File: org, Node: Subscripts and Superscripts, Next: LaTeX fragments, Prev: Math symbols, Up: Embedded LaTeX
  3519. 9.2 Subscripts and Superscripts
  3520. ===============================
  3521. Just like in LaTeX, `^' and `_' are used to indicate super- and
  3522. subscripts. Again, these can be used without embedding them in
  3523. math-mode delimiters. To increase the readability of ASCII text, it is
  3524. not necessary (but OK) to surround multi-character sub- and superscripts
  3525. with curly braces. For example
  3526. The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of
  3527. the sun is R_{sun} = 6.96 x 10^8 m.
  3528. To avoid interpretation as raised or lowered text, you can quote `^'
  3529. and `_' with a backslash: `\_' and `\^'.
  3530. During HTML export (*note HTML export::), subscript and superscripts
  3531. are surrounded with `<sub>' and `<sup>' tags, respectively.
  3532. 
  3533. File: org, Node: LaTeX fragments, Next: Processing LaTeX fragments, Prev: Subscripts and Superscripts, Up: Embedded LaTeX
  3534. 9.3 LaTeX fragments
  3535. ===================
  3536. With symbols, sub- and superscripts, HTML is pretty much at its end when
  3537. it comes to representing mathematical formulas(1). More complex
  3538. expressions need a dedicated formula processor. To this end, Org-mode
  3539. can contain arbitrary LaTeX fragments. It provides commands to preview
  3540. the typeset result of these fragments, and upon export to HTML, all
  3541. fragments will be converted to images and inlined into the HTML
  3542. document. For this to work you need to be on a system with a working
  3543. LaTeX installation. You also need the `dvipng' program, available at
  3544. `http://sourceforge.net/projects/dvipng/'. The LaTeX header that will
  3545. be used when processing a fragment can be configured with the variable
  3546. `org-format-latex-header'.
  3547. LaTeX fragments don't need any special marking at all. The following
  3548. snippets will be identified as LaTeX source code:
  3549. * Environments of any kind. The only requirement is that the
  3550. `\begin' statement appears on a new line, preceded by only
  3551. whitespace.
  3552. * Text within the usual LaTeX math delimiters. To avoid conflicts
  3553. with currency specifications, single `$' characters are only
  3554. recognized as math delimiters if the enclosed text contains at
  3555. most two line breaks, is directly attached to the `$' characters
  3556. with no whitespace in between, and if the closing `$' is followed
  3557. by whitespace or punctuation. For the other delimiters, there is
  3558. no such restriction, so when in doubt, use `\(...\)' as inline
  3559. math delimiters.
  3560. For example:
  3561. \begin{equation} % arbitrary environments,
  3562. x=\sqrt{b} % even tables, figures
  3563. \end{equation} % etc
  3564. If $a^2=b$ and \( b=2 \), then the solution must be
  3565. either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
  3566. If you need any of the delimiter ASCII sequences for other purposes, you
  3567. can configure the option `org-format-latex-options' to deselect the
  3568. ones you do not wish to have interpreted by the LaTeX converter.
  3569. ---------- Footnotes ----------
  3570. (1) Yes, there is MathML, but that is not yet fully supported by
  3571. many browsers, and there is no decent converter for turning LaTeX of
  3572. ASCII representations of formulas into MathML. So for the time being,
  3573. converting formulas into images seems the way to go.
  3574. 
  3575. File: org, Node: Processing LaTeX fragments, Next: CDLaTeX mode, Prev: LaTeX fragments, Up: Embedded LaTeX
  3576. 9.4 Processing LaTeX fragments
  3577. ==============================
  3578. LaTeX fragments can be processed to produce a preview images of the
  3579. typeset expressions:
  3580. `C-c C-x C-l'
  3581. Produce a preview image of the LaTeX fragment at point and overlay
  3582. it over the source code. If there is no fragment at point,
  3583. process all fragments in the current entry (between two
  3584. headlines). When called with a prefix argument, process the
  3585. entire subtree. When called with two prefix arguments, or when
  3586. the cursor is before the first headline, process the entire buffer.
  3587. `C-c C-c'
  3588. Remove the overlay preview images.
  3589. During HTML export (*note HTML export::), all LaTeX fragments are
  3590. converted into images and inlined into the document if the following
  3591. setting is active:
  3592. (setq org-export-with-LaTeX-fragments t)
  3593. 
  3594. File: org, Node: CDLaTeX mode, Prev: Processing LaTeX fragments, Up: Embedded LaTeX
  3595. 9.5 Using CDLaTeX to enter math
  3596. ===============================
  3597. CDLaTeX-mode is a minor mode that is normally used in combination with a
  3598. major LaTeX mode like AUCTeX in order to speed-up insertion of
  3599. environments and math templates. Inside Org-mode, you can make use of
  3600. some of the features of cdlatex-mode. You need to install `cdlatex.el'
  3601. and `texmathp.el' (the latter comes also with AUCTeX) from
  3602. `http://www.astro.uva.nl/~dominik/Tools/cdlatex'. Don't turn
  3603. cdlatex-mode itself under Org-mode, but use the light version
  3604. `org-cdlatex-mode' that comes as part of Org-mode. Turn it on for the
  3605. current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
  3606. with
  3607. (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
  3608. When this mode is enabled, the following features are present (for
  3609. more details see the documentation of cdlatex-mode):
  3610. * Environment templates can be inserted with `C-c {'.
  3611. * The <TAB> key will do template expansion if the cursor is inside a
  3612. LaTeX fragment(1). For example, <TAB> will expand `fr' to
  3613. `\frac{}{}' and position the cursor correctly inside the first
  3614. brace. Another <TAB> will get you into the second brace. Even
  3615. outside fragments, <TAB> will expand environment abbreviations at
  3616. the beginning of a line. For example, if you write `equ' at the
  3617. beginning of a line and press <TAB>, this abbreviation will be
  3618. expanded to an `equation' environment. To get a list of all
  3619. abbreviations, type `M-x cdlatex-command-help'.
  3620. * Pressing `_' and `^' inside a LaTeX fragment will insert these
  3621. characters together with a pair of braces. If you use <TAB> to
  3622. move out of the braces, and if the braces surround only a single
  3623. character or macro, they are removed again (depending on the
  3624. variable `cdlatex-simplify-sub-super-scripts').
  3625. * Pressing the backquote ``' followed by a character inserts math
  3626. macros, also outside LaTeX fragments. If you wait more than 1.5
  3627. seconds after the backquote, a help window will pop up.
  3628. * Pressing the normal quote `'' followed by another character
  3629. modifies the symbol before point with an accent or a font. If you
  3630. wait more than 1.5 seconds after the backquote, a help window will
  3631. pop up. Character modification will work only inside LaTeX
  3632. fragments, outside the quote is normal.
  3633. ---------- Footnotes ----------
  3634. (1) Org-mode has a method to test if the cursor is inside such a
  3635. fragment, see the documentation of the function
  3636. `org-inside-LaTeX-fragment-p'.
  3637. 
  3638. File: org, Node: Exporting, Next: Publishing, Prev: Embedded LaTeX, Up: Top
  3639. 10 Exporting
  3640. ************
  3641. Org-mode documents can be exported into a variety of other formats. For
  3642. printing and sharing of notes, ASCII export produces a readable and
  3643. simple version of an Org-mode file. HTML export allows you to publish a
  3644. notes file on the web, while the XOXO format provides a solid base for
  3645. exchange with a broad range of other applications. To incorporate
  3646. entries with associated times like deadlines or appointments into a
  3647. desktop calendar program like iCal, Org-mode can also produce extracts
  3648. in the iCalendar format. Currently Org-mode only supports export, not
  3649. import of these different formats.
  3650. When exporting, Org-mode uses special conventions to enrich the
  3651. output produced. *Note Text interpretation::, for more details.
  3652. `C-c C-e'
  3653. Dispatcher for export and publishing commands. Displays a
  3654. help-window listing the additional key(s) needed to launch an
  3655. export or publishing command.
  3656. * Menu:
  3657. * ASCII export:: Exporting to plain ASCII
  3658. * HTML export:: Exporting to HTML
  3659. * XOXO export:: Exporting to XOXO
  3660. * iCalendar export:: Exporting in iCalendar format
  3661. * Text interpretation:: How the exporter looks at the file
  3662. 
  3663. File: org, Node: ASCII export, Next: HTML export, Prev: Exporting, Up: Exporting
  3664. 10.1 ASCII export
  3665. =================
  3666. ASCII export produces a simple and very readable version of an Org-mode
  3667. file.
  3668. `C-c C-e a'
  3669. Export as ASCII file. If there is an active region, only the
  3670. region will be exported. For an org file `myfile.org', the ASCII
  3671. file will be `myfile.txt'. The file will be overwritten without
  3672. warning.
  3673. `C-c C-e v a'
  3674. Export only the visible part of the document.
  3675. In the exported version, the first 3 outline levels will become
  3676. headlines, defining a general document structure. Additional levels
  3677. will be exported as itemized lists. If you want that transition to
  3678. occur at a different level, specify it with a prefix argument. For
  3679. example,
  3680. C-1 C-c C-e a
  3681. creates only top level headlines and does the rest as items. When
  3682. headlines are converted to items, the indentation of the text following
  3683. the headline is changed to fit nicely under the item. This is done with
  3684. the assumption that the first bodyline indicates the base indentation of
  3685. the body text. Any indentation larger than this is adjusted to preserve
  3686. the layout relative to the first line. Should there be lines with less
  3687. indentation than the first, these are left alone.
  3688. 
  3689. File: org, Node: HTML export, Next: XOXO export, Prev: ASCII export, Up: Exporting
  3690. 10.2 HTML export
  3691. ================
  3692. Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
  3693. HTML formatting, in ways similar to John Grubers _markdown_ language,
  3694. but with additional support for tables.
  3695. * Menu:
  3696. * Export commands:: How to invoke HTML export
  3697. * Quoting HTML tags:: Using direct HTML in Org-mode
  3698. * Links:: How hyperlinks get transferred to HTML
  3699. * Images:: To inline or not to inline?
  3700. * CSS support:: Style specifications
  3701. 
  3702. File: org, Node: Export commands, Next: Quoting HTML tags, Prev: HTML export, Up: HTML export
  3703. 10.2.1 HTML export commands
  3704. ---------------------------
  3705. `C-c C-e h'
  3706. Export as HTML file `myfile.html'.
  3707. `C-c C-e b'
  3708. Export as HTML file and open it with a browser.
  3709. `C-c C-e H'
  3710. Export to a temporary buffer, do not create a file.
  3711. `C-c C-e H'
  3712. Export the active region to a temporary buffer. With prefix arg,
  3713. do not produce file header and foot, but just the plain HTML
  3714. section for the region. This is good for cut-and-paste operations.
  3715. `C-c C-e v h'
  3716. `C-c C-e v b'
  3717. `C-c C-e v H'
  3718. `C-c C-e v R'
  3719. Export only the visible part of the document.
  3720. `M-x org-export-region-as-html'
  3721. Convert the region to HTML under the assumption that it was
  3722. org-mode syntax before. This is a global command that can be
  3723. invoked in any buffer.
  3724. In the exported version, the first 3 outline levels will become
  3725. headlines, defining a general document structure. Additional levels
  3726. will be exported as itemized lists. If you want that transition to
  3727. occur at a different level, specify it with a prefix argument. For
  3728. example,
  3729. C-2 C-c C-e b
  3730. creates two levels of headings and does the rest as items.
  3731. 
  3732. File: org, Node: Quoting HTML tags, Next: Links, Prev: Export commands, Up: HTML export
  3733. 10.2.2 Quoting HTML tags
  3734. ------------------------
  3735. Plain `<' and `>' are always transformed to `&lt;' and `&gt;' in HTML
  3736. export. If you want to include simple HTML tags which should be
  3737. interpreted as such, mark them with `@' as in `@<b>bold text@</b>'.
  3738. Note that this really works only for simple tags. For more extensive
  3739. HTML that should be copied verbatim to the exported file use either
  3740. #+HTML: Literal HTML code for export
  3741. or
  3742. #+BEGIN_HTML
  3743. All lines between these markers are exported literally
  3744. #+END_HTML
  3745. 
  3746. File: org, Node: Links, Next: Images, Prev: Quoting HTML tags, Up: HTML export
  3747. 10.2.3 Links
  3748. ------------
  3749. Internal links (*note Internal links::) will continue to work in HTML
  3750. files only if they match a dedicated `<<target>>'. Automatic links
  3751. created by radio targets (*note Radio targets::) will also work in the
  3752. HTML file. Links to external files will still work if the HTML file is
  3753. in the same directory as the Org-mode file. Links to other `.org'
  3754. files will be translated into HTML links under the assumption that an
  3755. HTML version also exists of the linked file. For information related to
  3756. linking files while publishing them to a publishing directory see *Note
  3757. Publishing links::.
  3758. 
  3759. File: org, Node: Images, Next: CSS support, Prev: Links, Up: HTML export
  3760. 10.2.4 Images
  3761. -------------
  3762. HTML export can inline images given as links in the Org-mode file, and
  3763. it can make an image the clickable part of a link. By default(1),
  3764. images are inlined if a link does not have a description. So
  3765. `[[file:myimg.jpg]]' will be inlined, while `[[file:myimg.jpg][the
  3766. image]]' will just produce a link `the image' that points to the image.
  3767. If the description part itself is a `file:' link or a `http:' URL
  3768. pointing to an image, this image will be inlined and activated so that
  3769. clicking on the image will activate the link. For example, to include
  3770. a thumbnail that will link to a high resolution version of the image,
  3771. you could use:
  3772. [[file:highres.jpg][file:thumb.jpg]]
  3773. and you could use `http' addresses just as well.
  3774. ---------- Footnotes ----------
  3775. (1) but see the variable `org-export-html-inline-images'
  3776. 
  3777. File: org, Node: CSS support, Prev: Images, Up: HTML export
  3778. 10.2.5 CSS support
  3779. ------------------
  3780. You can also give style information for the exported file. The HTML
  3781. exporter assigns the following CSS classes to appropriate parts of the
  3782. document - your style specifications may change these:
  3783. .todo TODO keywords
  3784. .done the DONE keyword
  3785. .timestamp time stamp
  3786. .timestamp-kwd keyword associated with a time stamp, like SCHEDULED
  3787. .tag tag in a headline
  3788. .target target for links
  3789. The default style specification can be configured through the option
  3790. `org-export-html-style'. If you want to use a file-local style, you
  3791. may use file variables, best wrapped into a COMMENT section at the end
  3792. of the outline tree. For example(1):
  3793. * COMMENT html style specifications
  3794. # Local Variables:
  3795. # org-export-html-style: " <style type=\"text/css\">
  3796. # p {font-weight: normal; color: gray; }
  3797. # h1 {color: black; }
  3798. # </style>"
  3799. # End:
  3800. Remember to execute `M-x normal-mode' after changing this to make
  3801. the new style visible to Emacs. This command restarts org-mode for the
  3802. current buffer and forces Emacs to re-evaluate the local variables
  3803. section in the buffer.
  3804. ---------- Footnotes ----------
  3805. (1) Under Emacs 21, the continuation lines for a variable value
  3806. should have no `#' at the start of the line.
  3807. 
  3808. File: org, Node: XOXO export, Next: iCalendar export, Prev: HTML export, Up: Exporting
  3809. 10.3 XOXO export
  3810. ================
  3811. Org-mode contains an exporter that produces XOXO-style output.
  3812. Currently, this exporter only handles the general outline structure and
  3813. does not interpret any additional Org-mode features.
  3814. `C-c C-e x'
  3815. Export as XOXO file `myfile.html'.
  3816. `C-c C-e v x'
  3817. Export only the visible part of the document.
  3818. 
  3819. File: org, Node: iCalendar export, Next: Text interpretation, Prev: XOXO export, Up: Exporting
  3820. 10.4 iCalendar export
  3821. =====================
  3822. Some people like to use Org-mode for keeping track of projects, but
  3823. still prefer a standard calendar application for anniversaries and
  3824. appointments. In this case it can be useful to have deadlines and
  3825. other time-stamped items in Org-mode files show up in the calendar
  3826. application. Org-mode can export calendar information in the standard
  3827. iCalendar format. If you also want to have TODO entries included in the
  3828. export, configure the variable `org-icalendar-include-todo'.
  3829. `C-c C-e i'
  3830. Create iCalendar entries for the current file and store them in
  3831. the same directory, using a file extension `.ics'.
  3832. `C-c C-e I'
  3833. Like `C-c C-e i', but do this for all files in `org-agenda-files'.
  3834. For each of these files, a separate iCalendar file will be
  3835. written.
  3836. `C-c C-e c'
  3837. Create a single large iCalendar file from all files in
  3838. `org-agenda-files' and write it to the file given by
  3839. `org-combined-agenda-icalendar-file'.
  3840. How this calendar is best read and updated, depends on the
  3841. application you are using. The FAQ covers this issue.
  3842. 
  3843. File: org, Node: Text interpretation, Prev: iCalendar export, Up: Exporting
  3844. 10.5 Text interpretation by the exporter
  3845. ========================================
  3846. The exporter backends interpret additional structure in the Org-mode
  3847. file in order to produce better output.
  3848. * Menu:
  3849. * Comment lines:: Some lines will not be exported
  3850. * Initial text:: Text before the first headline
  3851. * Footnotes:: Numbers like [1]
  3852. * Enhancing text:: Subscripts, symbols and more
  3853. * Export options:: How to influence the export settings
  3854. 
  3855. File: org, Node: Comment lines, Next: Initial text, Prev: Text interpretation, Up: Text interpretation
  3856. 10.5.1 Comment lines
  3857. --------------------
  3858. Lines starting with `#' in column zero are treated as comments and will
  3859. never be exported. Also entire subtrees starting with the word
  3860. `COMMENT' will never be exported.
  3861. `C-c ;'
  3862. Toggle the COMMENT keyword at the beginning of an entry.
  3863. 
  3864. File: org, Node: Initial text, Next: Footnotes, Prev: Comment lines, Up: Text interpretation
  3865. 10.5.2 Text before the first headline
  3866. -------------------------------------
  3867. Org-mode normally ignores any text before the first headline when
  3868. exporting, leaving this region for internal links to speed up navigation
  3869. etc. However, in publishing-oriented files, you might want to have some
  3870. text before the first headline, like a small introduction, special HTML
  3871. code with a navigation bar, etc. You can ask to have this part of the
  3872. file exported as well by setting the variable
  3873. `org-export-skip-text-before-1st-heading' to `nil'. On a per-file
  3874. basis, you can get the same effect with
  3875. #+OPTIONS: skip:nil
  3876. The text before the first headline will be fully processed (*note
  3877. Enhancing text::), and the first non-comment line becomes the title of
  3878. the exported document. If you need to include literal HTML, use the
  3879. special constructs described in *Note Quoting HTML tags::. The table
  3880. of contents is normally inserted directly before the first headline of
  3881. the file. If you would like to get it to a different location, insert
  3882. the string `[TABLE-OF-CONTENTS]' on a line by itself at the desired
  3883. location.
  3884. Finally, if you want to use the space before the first headline for
  3885. internal purposes, but _still_ want to place something before the first
  3886. headline when exporting the file, you can use the `#+TEXT' construct:
  3887. #+OPTIONS: skip:t
  3888. #+TEXT: This text will go before the *first* headline.
  3889. #+TEXT: We place the table of contents here:
  3890. #+TEXT: [TABLE-OF-CONTENTS]
  3891. #+TEXT: This goes between the table of contents and the first headline
  3892. 
  3893. File: org, Node: Footnotes, Next: Enhancing text, Prev: Initial text, Up: Text interpretation
  3894. 10.5.3 Footnotes
  3895. ----------------
  3896. Numbers in square brackets are treated as footnotes, so that you can use
  3897. the Emacs package `footnote.el' to create footnotes. For example:
  3898. The org-mode homepage[1] clearly needs help from
  3899. a good web designer.
  3900. [1] The link is: http://www.astro.uva.nl/~dominik/Tools/org
  3901. Note that the `footnote' package uses `C-c !' to invoke its commands.
  3902. This binding conflicts with the org-mode command for inserting inactive
  3903. time stamps. You could use the variable `footnote-prefix' to switch
  3904. footnotes commands to another key. Or, if you are too used to this
  3905. binding, you could use `org-replace-disputed-keys' and
  3906. `org-disputed-keys' to change the settings in Org-mode.
  3907. 
  3908. File: org, Node: Enhancing text, Next: Export options, Prev: Footnotes, Up: Text interpretation
  3909. 10.5.4 Enhancing text for export
  3910. --------------------------------
  3911. Some of the export backends of Org-mode allow for sophisticated text
  3912. formatting, this is true in particular for the HTML backend. Org-mode
  3913. has a number of typing conventions that allow to produce a richly
  3914. formatted output.
  3915. * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
  3916. enumerator will be recognized and transformed if the backend
  3917. supports lists. See *Note Plain lists::.
  3918. * You can make words *bold*, /italic/, _underlined_, `=code=', and
  3919. even `+strikethrough+'(1).
  3920. * A line consisting of only dashes, and at least 5 of them, will be
  3921. exported as a horizontal line (`<hr/>' in HTML).
  3922. * Many TeX macros and entire LaTeX fragments are converted into HTML
  3923. entities or images (*note Embedded LaTeX::).
  3924. * Tables are transformed into native tables under the exporter, if
  3925. the export backend supports this. Data fields before the first
  3926. horizontal separator line will be formatted as table header fields.
  3927. * If a headline starts with the word `QUOTE', the text below the
  3928. headline will be typeset as fixed-width, to allow quoting of
  3929. computer codes etc. Lines starting with `:' are also typeset in
  3930. fixed-width font.
  3931. `C-c :'
  3932. Toggle fixed-width for entry (QUOTE) or region, see below.
  3933. * A double backslash _at the end of a line_ enforces a line break at
  3934. this position.
  3935. If these conversions conflict with your habits of typing ASCII text,
  3936. they can all be turned off with corresponding variables. See the
  3937. customization group `org-export-general', and the following section
  3938. which explains how to set export options with special lines in a buffer.
  3939. ---------- Footnotes ----------
  3940. (1) but remember that strikethrough is typographically evil and
  3941. should never be used.
  3942. 
  3943. File: org, Node: Export options, Prev: Enhancing text, Up: Text interpretation
  3944. 10.5.5 Export options
  3945. ---------------------
  3946. The exporter recognizes special lines in the buffer which provide
  3947. additional information. These lines may be put anywhere in the file.
  3948. The whole set of lines can be inserted into the buffer with `C-c C-e
  3949. t'. For individual lines, a good way to make sure the keyword is
  3950. correct is to type `#+' and then use `M-<TAB>' completion (*note
  3951. Completion::).
  3952. `C-c C-e t'
  3953. Insert template with export options, see example below.
  3954. #+TITLE: the title to be shown (default is the buffer name)
  3955. #+AUTHOR: the author (default taken from `user-full-name')
  3956. #+EMAIL: his/her email address (default from `user-mail-address')
  3957. #+LANGUAGE: language for HTML, e.g. `en' (`org-export-default-language')
  3958. #+TEXT: Some descriptive text to be inserted at the beginning.
  3959. #+TEXT: Several lines may be given.
  3960. #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t *:nil TeX:t LaTeX:t skip:t
  3961. The OPTIONS line is a compact form to specify export settings. Here
  3962. you can:
  3963. H: set the number of headline levels for export
  3964. num: turn on/off section-numbers
  3965. toc: turn on/off table of contents, or set level limit (integer)
  3966. \n: turn on/off linebreak-preservation
  3967. @: turn on/off quoted HTML tags
  3968. :: turn on/off fixed-width sections
  3969. |: turn on/off tables
  3970. ^: turn on/off TeX-like syntax for sub- and superscripts. If
  3971. you write "^:{}", `a_{b}' will be interpreted, but
  3972. the simple `a_b' will be left as it is.
  3973. *: turn on/off emphasized text (bold, italic, underlined)
  3974. TeX: turn on/off simple TeX macros in plain text
  3975. LaTeX: turn on/off LaTeX fragments
  3976. skip: turn on/off skipping the text before the first heading
  3977. 
  3978. File: org, Node: Publishing, Next: Miscellaneous, Prev: Exporting, Up: Top
  3979. 11 Publishing
  3980. *************
  3981. Org-mode includes(1) a publishing management system that allows you to
  3982. configure automatic HTML conversion of _projects_ composed of
  3983. interlinked org files. This system is called _org-publish_. You can
  3984. also configure org-publish to automatically upload your exported HTML
  3985. pages and related attachments, such as images and source code files, to
  3986. a web server. Org-publish turns org-mode into a web-site authoring
  3987. tool.
  3988. Org-publish has been contributed to Org-mode by David O'Toole.
  3989. * Menu:
  3990. * Configuration:: Defining projects
  3991. * Sample configuration:: Example projects
  3992. * Triggering publication:: Publication commands
  3993. ---------- Footnotes ----------
  3994. (1) `org-publish.el' is not yet part of Emacs, so if you are using
  3995. `org.el' as it comes with Emacs, you need to download this file
  3996. separately. Also make sure org.el is at least version 4.27.
  3997. 
  3998. File: org, Node: Configuration, Next: Sample configuration, Prev: Publishing, Up: Publishing
  3999. 11.1 Configuration
  4000. ==================
  4001. Publishing needs significant configuration to specify files, destination
  4002. and many other properties of a project.
  4003. * Menu:
  4004. * Project alist:: The central configuration variable
  4005. * Sources and destinations:: From here to there
  4006. * Selecting files:: What files are part of the project?
  4007. * Publishing action:: Setting the function doing the publishing
  4008. * Publishing options:: Tweaking HTML export
  4009. * Publishing links:: Which links keep working after publishing?
  4010. * Project page index:: Publishing a list of project files
  4011. 
  4012. File: org, Node: Project alist, Next: Sources and destinations, Prev: Configuration, Up: Configuration
  4013. 11.1.1 The variable `org-publish-project-alist'
  4014. -----------------------------------------------
  4015. Org-publish is configured almost entirely through setting the value of
  4016. one variable, called `org-publish-project-alist'. Each element of the
  4017. list configures one project, and may be in one of the two following
  4018. forms:
  4019. ("project-name" :property value :property value ...)
  4020. or
  4021. ("project-name" :components ("project-name" "project-name" ...))
  4022. In both cases, projects are configured by specifying property values.
  4023. A project defines the set of files that will be published, as well as
  4024. the publishing configuration to use when publishing those files. When
  4025. a project takes the second form listed above, the individual members of
  4026. the "components" property are taken to be components of the project,
  4027. which group together files requiring different publishing options. When
  4028. you publish such a "meta-project" all the components will also publish.
  4029. 
  4030. File: org, Node: Sources and destinations, Next: Selecting files, Prev: Project alist, Up: Configuration
  4031. 11.1.2 Sources and destinations for files
  4032. -----------------------------------------
  4033. Most properties are optional, but some should always be set. In
  4034. particular, org-publish needs to know where to look for source files,
  4035. and where to put published files.
  4036. `:base-directory' Directory containing publishing source files
  4037. `:publishing-directory'Directory (possibly remote) where output files
  4038. will be published.
  4039. `:preparation-function'Function called before starting publishing
  4040. process, for example to run `make' for updating
  4041. files to be published.
  4042. 
  4043. File: org, Node: Selecting files, Next: Publishing action, Prev: Sources and destinations, Up: Configuration
  4044. 11.1.3 Selecting files
  4045. ----------------------
  4046. By default, all files with extension `.org' in the base directory are
  4047. considered part of the project. This can be modified by setting the
  4048. properties
  4049. `:base-extension' Extension (without the dot!) of source files. This
  4050. actually is a regular expression.
  4051. `:exclude' Regular expression to match file names that should
  4052. not be published, even though they have been selected
  4053. on the basis of their extension.
  4054. `:include' List of files to be included regardless of
  4055. `:base-extension' and `:exclude'.
  4056. 
  4057. File: org, Node: Publishing action, Next: Publishing options, Prev: Selecting files, Up: Configuration
  4058. 11.1.4 Publishing Action
  4059. ------------------------
  4060. Publishing means that a file is copied to the destination directory and
  4061. possibly transformed in the process. The default transformation is to
  4062. export Org-mode files as HTML files, and this is done by the function
  4063. `org-publish-org-to-html' which calls the HTML exporter (*note HTML
  4064. export::). Other files like images only need to be copied to the
  4065. publishing destination. For non-Org-mode files, you need to specify
  4066. the publishing function.
  4067. `:publishing-function' Function executing the publication of a file.
  4068. This may also be a list of functions, which will
  4069. all be called in turn.
  4070. The function must accept two arguments: a property list containing at
  4071. least a `:publishing-directory' property, and the name of the file to
  4072. be published. It should take the specified file, make the necessary
  4073. transformation (if any) and place the result into the destination
  4074. folder. You can write your own publishing function, but `org-publish'
  4075. provides one for attachments (files that only need to be copied):
  4076. `org-publish-attachment'.
  4077. 
  4078. File: org, Node: Publishing options, Next: Publishing links, Prev: Publishing action, Up: Configuration
  4079. 11.1.5 Options for the HTML exporter
  4080. ------------------------------------
  4081. The property list can be used to set many export options for the HTML
  4082. exporter. In most cases, these properties correspond to user variables
  4083. in Org-mode. The table below lists these properties along with the
  4084. variable they belong to. See the documentation string for the
  4085. respective variable for details.
  4086. `:language' `org-export-default-language'
  4087. `:headline-levels' `org-export-headline-levels'
  4088. `:section-numbers' `org-export-with-section-numbers'
  4089. `:table-of-contents' `org-export-with-toc'
  4090. `:archived-trees' `org-export-with-archived-trees'
  4091. `:emphasize' `org-export-with-emphasize'
  4092. `:sub-superscript' `org-export-with-sub-superscripts'
  4093. `:TeX-macros' `org-export-with-TeX-macros'
  4094. `:LaTeX-fragments' `org-export-with-LaTeX-fragments'
  4095. `:fixed-width' `org-export-with-fixed-width'
  4096. `:timestamps' `org-export-with-timestamps'
  4097. .
  4098. `:tags' `org-export-with-tags'
  4099. .
  4100. `:tables' `org-export-with-tables'
  4101. `:table-auto-headline' `org-export-highlight-first-table-line'
  4102. `:style' `org-export-html-style'
  4103. `:convert-org-links' `org-export-html-link-org-files-as-html'
  4104. `:inline-images' `org-export-html-inline-images'
  4105. `:expand-quoted-html' `org-export-html-expand'
  4106. `:timestamp' `org-export-html-with-timestamp'
  4107. `:publishing-directory'`org-export-publishing-directory'
  4108. `:preamble' `org-export-html-preamble'
  4109. `:postamble' `org-export-html-postamble'
  4110. `:auto-preamble' `org-export-html-auto-preamble'
  4111. `:auto-postamble' `org-export-html-auto-postamble'
  4112. `:author' `user-full-name'
  4113. `:email' `user-mail-address'
  4114. When a property is given a value in org-publish-project-alist, its
  4115. setting overrides the value of the corresponding user variable (if any)
  4116. during publishing. options set within a file (*note Export options::),
  4117. however, override everything.
  4118. 
  4119. File: org, Node: Publishing links, Next: Project page index, Prev: Publishing options, Up: Configuration
  4120. 11.1.6 Links between published files
  4121. ------------------------------------
  4122. To create a link from one Org-mode file to another, you would use
  4123. something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
  4124. (*note Hyperlinks::). Upon publishing this link becomes a link to
  4125. `foo.html'. In this way, you can interlink the pages of your "org web"
  4126. project and the links will work as expected when you publish them to
  4127. HTML.
  4128. You may also link to related files, such as images. Provided you are
  4129. careful with relative pathnames, and provided you have also configured
  4130. org-publish to upload the related files, these links will work too.
  4131. *Note Complex example:: for an example of this usage.
  4132. Sometime an Org-mode file to be published may contain links that are
  4133. only valid in your production environment, but not in the publishing
  4134. location. In this case, use the property
  4135. `:link-validation-function' Function to validate links
  4136. to define a function for checking link validity. This function must
  4137. accept two arguments, the file name and a directory relative to which
  4138. the file name is interpreted in the production environment. If this
  4139. function returns `nil', then the HTML generator will only insert a
  4140. description into the HTML file, but no link. One option for this
  4141. function is `org-publish-validate-link' which checks if the given file
  4142. is part of any project in `org-publish-project-alist'.
  4143. 
  4144. File: org, Node: Project page index, Prev: Publishing links, Up: Configuration
  4145. 11.1.7 Project page index
  4146. -------------------------
  4147. The following properties may be used to control publishing of an index
  4148. of files or summary page for a given project.
  4149. `:auto-index' When non-nil, publish an index during
  4150. org-publish-current-project or org-publish-all.
  4151. `:index-filename' Filename for output of index. Defaults to `index.org'
  4152. (which becomes `index.html').
  4153. `:index-title' Title of index page. Defaults to name of file.
  4154. `:index-function' Plugin function to use for generation of index.
  4155. Defaults to `org-publish-org-index', which generates
  4156. a plain list of links to all files in the project.
  4157. 
  4158. File: org, Node: Sample configuration, Next: Triggering publication, Prev: Configuration, Up: Publishing
  4159. 11.2 Sample configuration
  4160. =========================
  4161. Below we provide two example configurations. The first one is a simple
  4162. project publishing only a set of Org-mode files. The second example is
  4163. more complex, with a multi-component project.
  4164. * Menu:
  4165. * Simple example:: One-component publishing
  4166. * Complex example:: A multi-component publishing example
  4167. 
  4168. File: org, Node: Simple example, Next: Complex example, Prev: Sample configuration, Up: Sample configuration
  4169. 11.2.1 Example: simple publishing configuration
  4170. -----------------------------------------------
  4171. This example publishes a set of Org-mode files to the `public_html'
  4172. directory on the local machine.
  4173. (setq org-publish-project-alist
  4174. '(("org"
  4175. :base-directory "~/org/"
  4176. :publishing-directory "~/public_html"
  4177. :section-numbers nil
  4178. :table-of-contents nil
  4179. :style "<link rel=stylesheet
  4180. href=\"../other/mystyle.css\"
  4181. type=\"text/css\">")))
  4182. 
  4183. File: org, Node: Complex example, Prev: Simple example, Up: Sample configuration
  4184. 11.2.2 Example: complex publishing configuration
  4185. ------------------------------------------------
  4186. This more complicated example publishes an entire website, including
  4187. org files converted to HTML, image files, emacs lisp source code, and
  4188. stylesheets. The publishing-directory is remote and private files are
  4189. excluded.
  4190. To ensure that links are preserved, care should be taken to replicate
  4191. your directory structure on the web server, and to use relative file
  4192. paths. For example, if your org files are kept in `~/org' and your
  4193. publishable images in `~/images', you'd link to an image with
  4194. file:../images/myimage.png
  4195. On the web server, the relative path to the image should be the
  4196. same. You can accomplish this by setting up an "images" folder in the
  4197. right place on the webserver, and publishing images to it.
  4198. (setq org-publish-project-alist
  4199. '(("orgfiles"
  4200. :base-directory "~/org/"
  4201. :base-extension "org"
  4202. :publishing-directory "/ssh:user@host:~/html/notebook/"
  4203. :publishing-function org-publish-org-to-html
  4204. :exclude "PrivatePage.org" ;; regexp
  4205. :headline-levels 3
  4206. :section-numbers nil
  4207. :table-of-contents nil
  4208. :style "<link rel=stylesheet
  4209. href=\"../other/mystyle.css\" type=\"text/css\">"
  4210. :auto-preamble t
  4211. :auto-postamble nil)
  4212. ("images"
  4213. :base-directory "~/images/"
  4214. :base-extension "jpg\\|gif\\|png"
  4215. :publishing-directory "/ssh:user@host:~/html/images/"
  4216. :publishing-function org-publish-attachment)
  4217. ("other"
  4218. :base-directory "~/other/"
  4219. :base-extension "css\\|el"
  4220. :publishing-directory "/ssh:user@host:~/html/other/"
  4221. :publishing-function org-publish-attachment)
  4222. ("website" :components ("orgfiles" "images" "other"))))
  4223. 
  4224. File: org, Node: Triggering publication, Prev: Sample configuration, Up: Publishing
  4225. 11.3 Triggering publication
  4226. ===========================
  4227. Once org-publish is properly configured, you can publish with the
  4228. following functions:
  4229. `C-c C-e C'
  4230. Prompt for a specific project and publish all files that belong to
  4231. it.
  4232. `C-c C-e P'
  4233. Publish the project containing the current file.
  4234. `C-c C-e F'
  4235. Publish only the current file.
  4236. `C-c C-e A'
  4237. Publish all projects.
  4238. Org uses timestamps to track when a file has changed. The above
  4239. functions normally only publish changed files. You can override this and
  4240. force publishing of all files by giving a prefix argument.
  4241. 
  4242. File: org, Node: Miscellaneous, Next: Extensions and Hacking, Prev: Publishing, Up: Top
  4243. 12 Miscellaneous
  4244. ****************
  4245. * Menu:
  4246. * Completion:: M-TAB knows what you need
  4247. * Customization:: Adapting Org-mode to your taste
  4248. * In-buffer settings:: Overview of the #+KEYWORDS
  4249. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  4250. * Clean view:: Getting rid of leading stars in the outline
  4251. * TTY keys:: Using Org-mode on a tty
  4252. * Interaction:: Other Emacs packages
  4253. * Bugs:: Things which do not work perfectly
  4254. 
  4255. File: org, Node: Completion, Next: Customization, Prev: Miscellaneous, Up: Miscellaneous
  4256. 12.1 Completion
  4257. ===============
  4258. Org-mode supports in-buffer completion. This type of completion does
  4259. not make use of the minibuffer. You simply type a few letters into the
  4260. buffer and use the key to complete text right there.
  4261. `M-<TAB>'
  4262. Complete word at point
  4263. * At the beginning of a headline, complete TODO keywords.
  4264. * After `\', complete TeX symbols supported by the exporter.
  4265. * After `*', complete headlines in the current buffer so that
  4266. they can be used in search links like `[[*find this
  4267. headline]]'.
  4268. * After `:', complete tags. The list of tags is taken from the
  4269. variable `org-tag-alist' (possibly set through the `#+TAGS'
  4270. in-buffer option, *note Setting tags::), or it is created
  4271. dynamically from all tags used in the current buffer.
  4272. * After `[', complete link abbreviations (*note Link
  4273. abbreviations::).
  4274. * After `#+', complete the special keywords like `TYP_TODO' or
  4275. `OPTIONS' which set file-specific options for Org-mode. When
  4276. the option keyword is already complete, pressing `M-<TAB>'
  4277. again will insert example settings for this keyword.
  4278. * In the line after `#+STARTUP: ', complete startup keywords,
  4279. i.e. valid keys for this line.
  4280. * Elsewhere, complete dictionary words using ispell.
  4281. 
  4282. File: org, Node: Customization, Next: In-buffer settings, Prev: Completion, Up: Miscellaneous
  4283. 12.2 Customization
  4284. ==================
  4285. There are more than 180 variables that can be used to customize
  4286. Org-mode. For the sake of compactness of the manual, I am not
  4287. describing the variables here. A structured overview of customization
  4288. variables is available with `M-x org-customize'. Or select `Browse Org
  4289. Group' from the `Org->Customization' menu. Many settings can also be
  4290. activated on a per-file basis, by putting special lines into the buffer
  4291. (*note In-buffer settings::).
  4292. 
  4293. File: org, Node: In-buffer settings, Next: The very busy C-c C-c key, Prev: Customization, Up: Miscellaneous
  4294. 12.3 Summary of in-buffer settings
  4295. ==================================
  4296. Org-mode uses special lines in the buffer to define settings on a
  4297. per-file basis. These lines start with a `#+' followed by a keyword, a
  4298. colon, and then individual words defining a setting. Several setting
  4299. words can be in the same line, but you can also have multiple lines for
  4300. the keyword. While these settings are described throughout the manual,
  4301. here is a summary. After changing any of those lines in the buffer,
  4302. press `C-c C-c' with the cursor still in the line to activate the
  4303. changes immediately. Otherwise they become effective only when the
  4304. file is visited again in a new Emacs session.
  4305. `#+STARTUP:'
  4306. This line sets options to be used at startup of org-mode, when an
  4307. Org-mode file is being visited. The first set of options deals
  4308. with the initial visibility of the outline tree. The
  4309. corresponding variable for global default settings is
  4310. `org-startup-folded', with a default value `t', which means
  4311. `overview'.
  4312. overview top-level headlines only
  4313. content all headlines
  4314. showall no folding at all, show everything
  4315. Then there are options for aligning tables upon visiting a file.
  4316. This is useful in files containing narrowed table columns. The
  4317. corresponding variable is `org-startup-align-all-tables', with a
  4318. default value `nil'.
  4319. align align all tables
  4320. noalign don't align tables on startup
  4321. Logging TODO state changes and clock intervals (variable
  4322. `org-log-done') can be configured using these options.
  4323. logging record a timestamp when an item is marked DONE
  4324. nologging don't record when items are marked DONE
  4325. lognotedone record timestamp and a note when DONE
  4326. lognotestate record timestamp, note when TODO state changes
  4327. logrepeat record a not when re-instating a repeating item
  4328. nologrepeat do not record when re-instating repeating item
  4329. lognoteclock-out record timestamp and a note when clocking out
  4330. Here are the options for hiding leading stars in outline headings.
  4331. The corresponding variables are `org-hide-leading-stars' and
  4332. `org-odd-levels-only', both with a default setting `nil' (meaning
  4333. `showstars' and `oddeven').
  4334. hidestars make all but one of the stars starting a headline invisible.
  4335. showstars show all stars starting a headline
  4336. odd allow only odd outline levels (1,3,...)
  4337. oddeven allow all outline levels
  4338. To turn on custom format overlays over time stamps (variables
  4339. `org-put-time-stamp-overlays' and
  4340. `org-time-stamp-overlay-formats'), use
  4341. customtime overlay custom time format
  4342. The following options influence the table spreadsheet (variable
  4343. `constants-unit-system').
  4344. constcgs `constants.el' should use the c-g-s unit system
  4345. constSI `constants.el' should use the SI unit system
  4346. `#+SEQ_TODO: #+TYP_TODO:'
  4347. These lines set the TODO keywords and their interpretation in the
  4348. current file. The corresponding variables are `org-todo-keywords'
  4349. and `org-todo-interpretation'.
  4350. `#+TAGS: TAG1(c1) TAG2(c2)'
  4351. These lines (several such lines are allowed) specify the legal
  4352. tags in this file, and (potentially) the corresponding _fast tag
  4353. selection_ keys. The corresponding variable is `org-tag-alist'.
  4354. `#+LINK: linkword replace'
  4355. These lines (several are allowed) specify link abbreviations.
  4356. *Note Link abbreviations::. The corresponding variable is
  4357. `org-link-abbrev-alist'.
  4358. `#+CATEGORY:'
  4359. This line sets the category for the agenda file. The category
  4360. applies for all subsequent lines until the next `#+CATEGORY' line,
  4361. or the end of the file. The first such line also applies to any
  4362. entries before it.
  4363. `#+ARCHIVE: %s_done::'
  4364. This line sets the archive location for the agenda file. It
  4365. applies for all subsequent lines until the next `#+CATEGORY' line,
  4366. or the end of the file. The first such line also applies to any
  4367. entries before it. The corresponding variable is
  4368. `org-archive-location'.
  4369. `#+PRIORITIES: highest lowest default'
  4370. This line sets the limits and the default for the priorities. All
  4371. three must be either letters A-Z or numbers 0-9. The highest
  4372. priority must have a lower ASCII number that the lowest priority.
  4373. `#+TBLFM:'
  4374. This line contains the formulas for the table directly above the
  4375. line.
  4376. `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS:'
  4377. These lines provide settings for exporting files. For more
  4378. details see *Note Export options::.
  4379. 
  4380. File: org, Node: The very busy C-c C-c key, Next: Clean view, Prev: In-buffer settings, Up: Miscellaneous
  4381. 12.4 The very busy C-c C-c key
  4382. ==============================
  4383. The key `C-c C-c' has many purposes in org-mode, which are all
  4384. mentioned scattered throughout this manual. One specific function of
  4385. this key is to add _tags_ to a headline (*note Tags::). In many other
  4386. circumstances it means something like _Hey Org-mode, look here and
  4387. update according to what you see here_. Here is a summary of what this
  4388. means in different contexts.
  4389. - If there are highlights in the buffer from the creation of a sparse
  4390. tree, or from clock display, remove these highlights.
  4391. - If the cursor is in one of the special `#+KEYWORD' lines, this
  4392. triggers scanning the buffer for these lines and updating the
  4393. information.
  4394. - If the cursor is inside a table, realign the table. This command
  4395. works even if the automatic table editor has been turned off.
  4396. - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
  4397. entire table.
  4398. - If the cursor is inside a table created by the `table.el' package,
  4399. activate that table.
  4400. - If the current buffer is a remember buffer, close the note and
  4401. file it. With a prefix argument, file it, without further
  4402. interaction, to the default location.
  4403. - If the cursor is on a `<<<target>>>', update radio targets and
  4404. corresponding links in this buffer.
  4405. - If the cursor is in a plain list item with a checkbox, toggle the
  4406. status of the checkbox.
  4407. - If the cursor is on a numbered item in a plain list, renumber the
  4408. ordered list.
  4409. 
  4410. File: org, Node: Clean view, Next: TTY keys, Prev: The very busy C-c C-c key, Up: Miscellaneous
  4411. 12.5 A cleaner outline view
  4412. ===========================
  4413. Some people find it noisy and distracting that the Org-mode headlines
  4414. are starting with a potentially large number of stars. For example the
  4415. tree from *Note Headlines:::
  4416. * Top level headline
  4417. ** Second level
  4418. *** 3rd level
  4419. some text
  4420. *** 3rd level
  4421. more text
  4422. * Another top level headline
  4423. Unfortunately this is deeply ingrained into the code of Org-mode and
  4424. cannot be easily changed. You can, however, modify the display in such
  4425. a way that all leading stars become invisible and the outline more easy
  4426. to read. To do this, customize the variable `org-hide-leading-stars'
  4427. like this:
  4428. (setq org-hide-leading-stars t)
  4429. or change this on a per-file basis with one of the lines (anywhere in
  4430. the buffer)
  4431. #+STARTUP: showstars
  4432. #+STARTUP: hidestars
  4433. Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
  4434. modifications.
  4435. With stars hidden, the tree becomes:
  4436. * Top level headline
  4437. * Second level
  4438. * 3rd level
  4439. some text
  4440. * 3rd level
  4441. more text
  4442. * Another top level headline
  4443. Note that the leading stars are not truly replaced by whitespace, they
  4444. are only fontified with the face `org-hide' that uses the background
  4445. color as font color. If you are not using either white or black
  4446. background, you may have to customize this face to get the wanted
  4447. effect. Another possibility is to set this font such that the extra
  4448. stars are almost invisible, for example using the color `grey90' on a
  4449. white background.
  4450. Things become cleaner still if you skip all the even levels and use
  4451. only odd levels 1, 3, 5..., effectively adding two stars to go from one
  4452. outline level to the next:
  4453. * Top level headline
  4454. * Second level
  4455. * 3rd level
  4456. some text
  4457. * 3rd level
  4458. more text
  4459. * Another top level headline
  4460. In order to make the structure editing and export commands handle this
  4461. convention correctly, use
  4462. (setq org-odd-levels-only t)
  4463. or set this on a per-file basis with one of the following lines (don't
  4464. forget to press `C-c C-c' with the cursor in the startup line to
  4465. activate changes immediately).
  4466. #+STARTUP: odd
  4467. #+STARTUP: oddeven
  4468. You can convert an Org-mode file from single-star-per-level to the
  4469. double-star-per-level convention with `M-x org-convert-to-odd-levels
  4470. RET' in that file. The reverse operation is `M-x
  4471. org-convert-to-oddeven-levels'.
  4472. 
  4473. File: org, Node: TTY keys, Next: Interaction, Prev: Clean view, Up: Miscellaneous
  4474. 12.6 Using org-mode on a tty
  4475. ============================
  4476. Org-mode uses a number of keys that are not accessible on a tty. This
  4477. applies to most special keys like cursor keys, <TAB> and <RET>, when
  4478. these are combined with modifier keys like <Meta> and/or <Shift>.
  4479. Org-mode uses these bindings because it needs to provide keys for a
  4480. large number of commands, and because these keys appeared particularly
  4481. easy to remember. In order to still be able to access the core
  4482. functionality of Org-mode on a tty, alternative bindings are provided.
  4483. Here is a complete list of these bindings, which are obviously more
  4484. cumbersome to use. Note that sometimes a work-around can be better.
  4485. For example changing a time stamp is really only fun with `S-<cursor>'
  4486. keys. On a tty you would rather use `C-c .' to re-insert the
  4487. timestamp.
  4488. Default Alternative 1 Alternative 2
  4489. `S-<TAB>' `C-u <TAB>'
  4490. `M-<left>' `C-c C-x l' `<Esc> <left>'
  4491. `M-S-<left>'`C-c C-x L'
  4492. `M-<right>' `C-c C-x r' `<Esc>
  4493. <right>'
  4494. `M-S-<right>'`C-c C-x R'
  4495. `M-<up>' `C-c C-x u' `<Esc> <up>'
  4496. `M-S-<up>' `C-c C-x U'
  4497. `M-<down>' `C-c C-x d' `<Esc> <down>'
  4498. `M-S-<down>'`C-c C-x D'
  4499. `S-<RET>' `C-c C-x c'
  4500. `M-<RET>' `C-c C-x m' `<Esc> <RET>'
  4501. `M-S-<RET>' `C-c C-x M'
  4502. `S-<left>' `C-c <left>'
  4503. `S-<right>' `C-c <right>'
  4504. `S-<up>' `C-c <up>'
  4505. `S-<down>' `C-c <down>'
  4506. `C-S-<left>'`C-c C-x
  4507. <left>'
  4508. `C-S-<right>'`C-c C-x
  4509. <right>'
  4510. 
  4511. File: org, Node: Interaction, Next: Bugs, Prev: TTY keys, Up: Miscellaneous
  4512. 12.7 Interaction with other packages
  4513. ====================================
  4514. Org-mode lives in the world of GNU Emacs and interacts in various ways
  4515. with other code out there.
  4516. * Menu:
  4517. * Cooperation:: Packages Org-mode cooperates with
  4518. * Conflicts:: Packages that lead to conflicts
  4519. 
  4520. File: org, Node: Cooperation, Next: Conflicts, Prev: Interaction, Up: Interaction
  4521. 12.7.1 Packages that Org-mode cooperates with
  4522. ---------------------------------------------
  4523. `calc.el' by Dave Gillespie
  4524. Org-mode uses the calc package for implementing spreadsheet
  4525. functionality in its tables (*note The spreadsheet::). Org-mode
  4526. checks for the availability of calc by looking for the function
  4527. `calc-eval' which should be autoloaded in your setup if calc has
  4528. been installed properly. As of Emacs 22, calc is part of the Emacs
  4529. distribution. Another possibility for interaction between the two
  4530. packages is using calc for embedded calculations. *Note Embedded
  4531. Mode: (calc)Embedded Mode.
  4532. `constants.el' by Carsten Dominik
  4533. In a table formula (*note The spreadsheet::), it is possible to use
  4534. names for natural constants or units. Instead of defining your own
  4535. constants in the variable `org-table-formula-constants', install
  4536. the `constants' package which defines a large number of constants
  4537. and units, and lets you use unit prefixes like `M' for `Mega' etc.
  4538. You will need version 2.0 of this package, available at
  4539. `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for the
  4540. function `constants-get', which has to be autoloaded in your
  4541. setup. See the installation instructions in the file
  4542. `constants.el'.
  4543. `cdlatex.el' by Carsten Dominik
  4544. Org-mode can make use of the cdlatex package to efficiently enter
  4545. LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
  4546. `remember.el' by John Wiegley
  4547. Org mode cooperates with remember, see *Note Remember::.
  4548. `Remember.el' is not part of Emacs, find it on the web.
  4549. `table.el' by Takaaki Ota
  4550. Complex ASCII tables with automatic line wrapping, column- and
  4551. row-spanning, and alignment can be created using the Emacs table
  4552. package by Takaaki Ota (`http://sourceforge.net/projects/table',
  4553. and also part of Emacs 22). When <TAB> or `C-c C-c' is pressed in
  4554. such a table, Org-mode will call `table-recognize-table' and move
  4555. the cursor into the table. Inside a table, the keymap of Org-mode
  4556. is inactive. In order to execute Org-mode-related commands, leave
  4557. the table.
  4558. `C-c C-c'
  4559. Recognize `table.el' table. Works when the cursor is in a
  4560. table.el table.
  4561. `C-c ~'
  4562. Insert a table.el table. If there is already a table at
  4563. point, this command converts it between the table.el format
  4564. and the Org-mode format. See the documentation string of the
  4565. command `org-convert-table' for the restrictions under which
  4566. this is possible.
  4567. `table.el' is part of Emacs 22.
  4568. `footnote.el' by Steven L. Baur
  4569. Org-mode recognizes numerical footnotes as provided by this package
  4570. (*note Footnotes::).
  4571. 
  4572. File: org, Node: Conflicts, Prev: Cooperation, Up: Interaction
  4573. 12.7.2 Packages that lead to conflicts with Org-mode
  4574. ----------------------------------------------------
  4575. `allout.el' by Ken Manheimer
  4576. Startup of Org-mode may fail with the error message
  4577. `(wrong-type-argument keymapp nil)' when there is an outdated
  4578. version `allout.el' on the load path, for example the version
  4579. distributed with Emacs 21.x. Upgrade to Emacs 22 and this problem
  4580. will disappear. If for some reason you cannot do this, make sure
  4581. that org.el is loaded _before_ `allout.el', for example by putting
  4582. `(require 'org)' early enough into your `.emacs' file.
  4583. `CUA.el' by Kim. F. Storm
  4584. Keybindings in Org-mode conflict with the `S-<cursor>' keys used
  4585. by CUA-mode (as well as pc-select-mode and s-region-mode) to
  4586. select and extend the region. If you want to use one of these
  4587. packages along with Org-mode, configure the variable
  4588. `org-CUA-compatible'. When set, Org-mode will move the following
  4589. keybindings in org-mode files, and in the agenda buffer (but not
  4590. during date selection).
  4591. S-UP -> M-p S-DOWN -> M-n
  4592. S-LEFT -> M-- S-RIGHT -> M-+
  4593. Yes, these are unfortunately more difficult to remember. If you
  4594. want to have other replacement keys, look at the variable
  4595. `org-disputed-keys'.
  4596. `windmove.el' by Hovav Shacham
  4597. Also this package uses the `S-<cursor>' keys, so everything written
  4598. in the paragraph above about CUA mode also applies here.
  4599. `footnote.el' by Steven L. Baur
  4600. Org-mode supports the syntax of the footnote package, but only the
  4601. numerical footnote markers. Also, the default key for footnote
  4602. commands, `C-c !' is already used by org-mode. You could use the
  4603. variable `footnote-prefix' to switch footnotes commands to another
  4604. key. Or, you could use `org-replace-disputed-keys' and
  4605. `org-disputed-keys' to change the settings in Org-mode.
  4606. 
  4607. File: org, Node: Bugs, Prev: Interaction, Up: Miscellaneous
  4608. 12.8 Bugs
  4609. =========
  4610. Here is a list of things that should work differently, but which I have
  4611. found too hard to fix.
  4612. * If a table field starts with a link, and if the corresponding table
  4613. column is narrowed (*note Narrow columns::) to a width too small to
  4614. display the link, the field would look entirely empty even though
  4615. it is not. To prevent this, Org-mode throws an error. The
  4616. work-around is to make the column wide enough to fit the link, or
  4617. to add some text (at least 2 characters) before the link in the
  4618. same field.
  4619. * Narrowing table columns does not work on XEmacs, because the
  4620. `format' function does not transport text properties.
  4621. * Text in an entry protected with the `QUOTE' keyword should not
  4622. autowrap.
  4623. * When the application called by `C-c C-o' to open a file link fails
  4624. (for example because the application does not exist or refuses to
  4625. open the file), it does so silently. No error message is
  4626. displayed.
  4627. * Recalculating a table line applies the formulas from left to right.
  4628. If a formula uses _calculated_ fields further down the row,
  4629. multiple recalculation may be needed to get all fields consistent.
  4630. You may use the command `org-table-iterate' (`C-u C-c *') to
  4631. recalculate until convergence.
  4632. * A single letter cannot be made bold, for example `*a*'.
  4633. * The exporters work well, but could be made more efficient.
  4634. 
  4635. File: org, Node: Extensions and Hacking, Next: History and Acknowledgments, Prev: Miscellaneous, Up: Top
  4636. Appendix A Extensions, Hooks and Hacking
  4637. ****************************************
  4638. This appendix lists extensions for Org-mode written by other authors.
  4639. It also covers some aspects where users can extend the functionality of
  4640. Org-mode.
  4641. * Menu:
  4642. * Extensions:: Existing 3rd-part extensions
  4643. * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
  4644. * Dynamic blocks:: Automatically filled blocks
  4645. * Special agenda views:: Customized views
  4646. 
  4647. File: org, Node: Extensions, Next: Tables in arbitrary syntax, Prev: Extensions and Hacking, Up: Extensions and Hacking
  4648. A.1 Third-party extensions for Org-mode
  4649. =======================================
  4650. The following extensions for Org-mode have been written by other people:
  4651. `org-publish.el' by David O'Toole
  4652. This package provides facilities for publishing related sets of
  4653. Org-mode files together with linked files like images as webpages.
  4654. It is highly configurable and can be used for other publishing
  4655. purposes as well. As of Org-mode version 4.30, `org-publish.el'
  4656. is part of the Org-mode distribution. It is not yet part of
  4657. Emacs, however, a delay caused by the preparations for the 22.1
  4658. release. In the mean time, `org-publish.el' can be downloaded
  4659. from David's site: `http://dto.freeshell.org/e/org-publish.el'.
  4660. `org-mouse.el' by Piotr Zielinski
  4661. This package implements extended mouse functionality for Org-mode.
  4662. It allows you to cycle visibility and to edit the document
  4663. structure with the mouse. Best of all, it provides a
  4664. context-sensitive menu on <mouse-3> that changes depending on the
  4665. context of a mouse-click. As of Org-mode version 4.53,
  4666. `org-mouse.el' is part of the Org-mode distribution. It is not
  4667. yet part of Emacs, however, a delay caused by the preparations for
  4668. the 22.1 release. In the mean time, `org-mouse.el' can be
  4669. downloaded from Piotr's site:
  4670. `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.
  4671. `org-blog.el' by David O'Toole
  4672. A blogging plug-in for `org-publish.el'.
  4673. `http://dto.freeshell.org/notebook/OrgMode.html'.
  4674. `blorg.el' by Bastien Guerry
  4675. Publish Org-mode files as blogs.
  4676. `http://www.cognition.ens.fr/~guerry/blorg.html'.
  4677. `org2rem.el' by Bastien Guerry
  4678. Translates Org-mode files into something readable by Remind.
  4679. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  4680. 
  4681. File: org, Node: Tables in arbitrary syntax, Next: Dynamic blocks, Prev: Extensions, Up: Extensions and Hacking
  4682. A.2 Tables in arbitrary syntax
  4683. ==============================
  4684. Since Orgtbl-mode can be used as a minor mode in arbitrary buffers, a
  4685. frequent feature request has been to make it work with native tables in
  4686. specific languages, for example LaTeX. However, this is extremely hard
  4687. to do in a general way, would lead to a customization nightmare, and
  4688. would take away much of the simplicity of the Orgtbl-mode table editor.
  4689. This appendix describes a different approach. We keep the
  4690. Orgtbl-mode table in its native format (the source table), and use a
  4691. custom function to translate the table to the correct syntax, and to
  4692. install it in the right location (the target table). This puts the
  4693. burden of writing conversion functions on the user, but it allows for a
  4694. very flexible system.
  4695. * Menu:
  4696. * Radio tables:: Sending and receiving
  4697. * A LaTeX example:: Step by step, almost a tutorial
  4698. * Translator functions:: Copy and modify
  4699. 
  4700. File: org, Node: Radio tables, Next: A LaTeX example, Prev: Tables in arbitrary syntax, Up: Tables in arbitrary syntax
  4701. A.2.1 Radio tables
  4702. ------------------
  4703. To define the location of the target table, you first need to create two
  4704. lines that are comments in the current mode, but contain magic words for
  4705. Orgtbl-mode to find. Orgtbl-mode will insert the translated table
  4706. between these lines, replacing whatever was there before. For example:
  4707. /* BEGIN RECEIVE ORGTBL table_name */
  4708. /* END RECEIVE ORGTBL table_name */
  4709. Just above the source table, we put a special line that tells
  4710. Orgtbl-mode how to translate this table and where to install it. For
  4711. example:
  4712. #+ORGTBL: SEND table_name translation_function arguments....
  4713. `table_name' is the reference name for the table that is also used in
  4714. the receiver lines. `translation_function' is the Lisp function that
  4715. does the translation. Furthermore, the line can contain a list of
  4716. arguments (alternating key and value) at the end. The arguments will be
  4717. passed as a property list to the translation function for
  4718. interpretation. A few standard parameters are already recognized and
  4719. acted upon before the translation function is called:
  4720. `:skip N'
  4721. Skip the first N lines of the table. Hlines do count!
  4722. `:skipcols (n1 n2 ...)'
  4723. List of columns that should be skipped. If the table has a column
  4724. with calculation marks, that column is automatically discarded as
  4725. well. Please note that the translator function sees the table
  4726. _after_ the removal of these columns, the function never knows
  4727. that there have been additional columns.
  4728. The one problem remaining is how to keep the source table in the buffer
  4729. without disturbing the normal workings of the file, for example during
  4730. compilation of a C file or processing of a LaTeX file. There are a
  4731. number of different solutions:
  4732. * The table could be placed in a block comment if that is supported
  4733. by the language. For example, in C-mode you could wrap the table
  4734. between `/*' and `*/' lines.
  4735. * Sometimes it is possible to put the table after some kind of END
  4736. statement, for example `\bye' in TeX and `\end{document}' in LaTeX.
  4737. * You can just comment the table line by line whenever you want to
  4738. process the file, and uncomment it whenever you need to edit the
  4739. table. This only sounds tedious - the command `M-x
  4740. orgtbl-toggle-comment' does make this comment-toggling very easy,
  4741. in particular if you bind it to a key.
  4742. 
  4743. File: org, Node: A LaTeX example, Next: Translator functions, Prev: Radio tables, Up: Tables in arbitrary syntax
  4744. A.2.2 A LaTeX example
  4745. ---------------------
  4746. The best way to wrap the source table in LaTeX is to use the `comment'
  4747. environment provided by `comment.sty'. It has to be activated by
  4748. placing `\usepackage{comment}' into the document header. Orgtbl-mode
  4749. can insert a radio table skeleton(1) with the command `M-x
  4750. orgtbl-insert-radio-table'. You will be prompted for a table name,
  4751. lets say we use `salesfigures'. You will then get the following
  4752. template:
  4753. % BEGIN RECEIVE ORGTBL salesfigures
  4754. % END RECEIVE ORGTBL salesfigures
  4755. \begin{comment}
  4756. #+ORGTBL: SEND salesfigures orgtbl-to-latex
  4757. | | |
  4758. \end{comment}
  4759. The `#+ORGTBL: SEND' line tells orgtbl-mode to use the function
  4760. `orgtbl-to-latex' to convert the table into LaTeX and to put it into
  4761. the receiver location with name `salesfigures'. You may now fill in
  4762. the table, feel free to use the spreadsheet features(2):
  4763. % BEGIN RECEIVE ORGTBL salesfigures
  4764. % END RECEIVE ORGTBL salesfigures
  4765. \begin{comment}
  4766. #+ORGTBL: SEND salesfigures orgtbl-to-latex
  4767. | Month | Days | Nr sold | per day |
  4768. |-------+------+---------+---------|
  4769. | Jan | 23 | 55 | 2.4 |
  4770. | Feb | 21 | 16 | 0.8 |
  4771. | March | 22 | 278 | 12.6 |
  4772. #+TBLFM: $4=$3/$2;%.1f
  4773. % $ (optional extra dollar to keep font-lock happy, see footnote)
  4774. \end{comment}
  4775. When you are done, press `C-c C-c' in the table to get the converted
  4776. table inserted between the two marker lines.
  4777. Now lets assume you want to make the table header by hand, because
  4778. you want to control how columns are aligned etc. In this case we make
  4779. sure that the table translator does skip the first 2 lines of the source
  4780. table, and tell the command to work as a splice, i.e. to not produce
  4781. header and footer commands of the target table:
  4782. \begin{tabular}{lrrr}
  4783. Month & \multicolumn{1}{c}{Days} & Nr.\ sold & per day\\
  4784. % BEGIN RECEIVE ORGTBL salesfigures
  4785. % END RECEIVE ORGTBL salesfigures
  4786. \end{tabular}
  4787. %
  4788. \begin{comment}
  4789. #+ORGTBL: SEND salesfigures orgtbl-to-latex :splice t :skip 2
  4790. | Month | Days | Nr sold | per day |
  4791. |-------+------+---------+---------|
  4792. | Jan | 23 | 55 | 2.4 |
  4793. | Feb | 21 | 16 | 0.8 |
  4794. | March | 22 | 278 | 12.6 |
  4795. #+TBLFM: $4=$3/$2;%.1f
  4796. \end{comment}
  4797. The LaTeX translator function `orgtbl-to-latex' is already part of
  4798. Orgtbl-mode. It uses a `tabular' environment to typeset the table and
  4799. marks horizontal lines with `\hline'. Furthermore, it interprets the
  4800. following parameters:
  4801. `:splice nil/t'
  4802. When set to t, return only table body lines, don't wrap them into a
  4803. tabular environment. Default is nil.
  4804. `:fmt fmt'
  4805. A format to be used to wrap each field, should contain `%s' for the
  4806. original field value. For example, to wrap each field value in
  4807. dollars, you could use `:fmt "$%s$"'. This may also be a property
  4808. list with column numbers and formats. for example `:fmt (2 "$%s$"
  4809. 4 "%s\\%%")'.
  4810. `:efmt efmt'
  4811. Use this format to print numbers with exponentials. The format
  4812. should have `%s' twice for inserting mantissa and exponent, for
  4813. example `"%s\\times10^{%s}"'. The default is `"%s\\,(%s)"'. This
  4814. may also be a property list with column numbers and formats, for
  4815. example `:efmt (2 "$%s\\times10^{%s}$" 4 "$%s\\cdot10^{%s}$")'.
  4816. After `efmt' has been applied to a value, `fmt' will also be
  4817. applied.
  4818. ---------- Footnotes ----------
  4819. (1) By default this works only for LaTeX, HTML, and TeXInfo.
  4820. Configure the variable `orgtbl-radio-tables' to install templates for
  4821. other modes.
  4822. (2) If the `#+TBLFM' line contains an odd number of dollar
  4823. characters, this may cause problems with font-lock in latex-mode. As
  4824. shown in the example you can fix this by adding an extra line inside the
  4825. `comment' environment that is used to balance the dollar expressions.
  4826. If you are using AUCTeX with the font-latex library, a much better
  4827. solution is to add the `comment' environment to the variable
  4828. `LaTeX-verbatim-environments'.
  4829. 
  4830. File: org, Node: Translator functions, Prev: A LaTeX example, Up: Tables in arbitrary syntax
  4831. A.2.3 Translator functions
  4832. --------------------------
  4833. Orgtbl-mode has several translator functions built-in:
  4834. `orgtbl-to-latex', `orgtbl-to-html', and `orgtbl-to-texinfo'. Except
  4835. for `orgtbl-to-html'(1), these all use a generic translator,
  4836. `orgtbl-to-generic'. For example, `orgtbl-to-latex' itself is a very
  4837. short function that computes the column definitions for the `tabular'
  4838. environment, defines a few field and line separators and then hands
  4839. over to the generic translator. Here is the entire code:
  4840. (defun orgtbl-to-latex (table params)
  4841. "Convert the orgtbl-mode TABLE to LaTeX."
  4842. (let* ((alignment (mapconcat (lambda (x) (if x "r" "l"))
  4843. org-table-last-alignment ""))
  4844. (params2
  4845. (list
  4846. :tstart (concat "\\begin{tabular}{" alignment "}")
  4847. :tend "\\end{tabular}"
  4848. :lstart "" :lend " \\\\" :sep " & "
  4849. :efmt "%s\\,(%s)" :hline "\\hline")))
  4850. (orgtbl-to-generic table (org-combine-plists params2 params))))
  4851. As you can see, the properties passed into the function (variable
  4852. PARAMS) are combined with the ones newly defined in the function
  4853. (variable PARAMS2). The ones passed into the function (i.e. the ones
  4854. set by the `ORGTBL SEND' line) take precedence. So if you would like
  4855. to use the LaTeX translator, but wanted the line endings to be
  4856. `\\[2mm]' instead of the default `\\', you could just overrule the
  4857. default with
  4858. #+ORGTBL: SEND test orgtbl-to-latex :lend " \\\\[2mm]"
  4859. For a new language, you can either write your own converter function
  4860. in analogy with the LaTeX translator, or you can use the generic
  4861. function directly. For example, if you have a language where a table
  4862. is started with `!BTBL!', ended with `!ETBL!', and where table lines are
  4863. started with `!BL!', ended with `!EL!' and where the field separator is
  4864. a TAB, you could call the generic translator like this (on a single
  4865. line!):
  4866. #+ORGTBL: SEND test orgtbl-to-generic :tstart "!BTBL!" :tend "!ETBL!"
  4867. :lstart "!BL! " :lend " !EL!" :sep "\t"
  4868. Please check the documentation string of the function
  4869. `orgtbl-to-generic' for a full list of parameters understood by that
  4870. function and remember that you can pass each of them into
  4871. `orgtbl-to-latex', `orgtbl-to-texinfo', and any other function using
  4872. the generic function.
  4873. Of course you can also write a completely new function doing
  4874. complicated things the generic translator cannot do. A translator
  4875. function takes two arguments. The first argument is the table, a list
  4876. of lines, each line either the symbol `hline' or a list of fields. The
  4877. second argument is the property list containing all parameters
  4878. specified in the `#+ORGTBL: SEND' line. The function must return a
  4879. single string containing the formatted table. If you write a generally
  4880. useful translator, please post it on `emacs-orgmode@gnu.org' so that
  4881. others can benefit from your work.
  4882. ---------- Footnotes ----------
  4883. (1) The HTML translator uses the same code that produces tables
  4884. during HTML export.
  4885. 
  4886. File: org, Node: Dynamic blocks, Next: Special agenda views, Prev: Tables in arbitrary syntax, Up: Extensions and Hacking
  4887. A.3 Dynamic blocks
  4888. ==================
  4889. Org-mode documents can contain _dynamic blocks_. These are specially
  4890. marked regions that are updated by some user-written function. A good
  4891. example for such a block is the clock table inserted by the command
  4892. `C-c C-x C-r' (*note Clocking work time::).
  4893. Dynamic block are enclosed by a BEGIN-END structure that assigns a
  4894. name to the block and can also specify parameters for the function
  4895. producing the content of the block.
  4896. #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
  4897. #+END:
  4898. Dynamic blocks are updated with the following commands
  4899. `C-c C-x C-u'
  4900. Update dynamic block at point.
  4901. `C-u C-c C-x C-u'
  4902. Update all dynamic blocks in the current file.
  4903. Updating a dynamic block means to remove all the text between BEGIN
  4904. and END, parse the BEGIN line for parameters and then call the specific
  4905. writer function for this block to insert the new content. For a block
  4906. with name `myblock', the writer function is `org-dblock-write:myblock'
  4907. with as only parameter a property list with the parameters given in the
  4908. begin line. Here is a trivial example of a block that keeps track of
  4909. when the block update function was last run:
  4910. #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
  4911. #+END:
  4912. The corresponding block writer function could look like this:
  4913. (defun org-dblock-write:block-update-time (params)
  4914. (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
  4915. (insert "Last block update at: "
  4916. (format-time-string fmt (current-time)))))
  4917. If you want to make sure that all dynamic blocks are always
  4918. up-to-date, you could add the function `org-update-all-dblocks' to a
  4919. hook, for example `before-save-hook'. `org-update-all-dblocks' is
  4920. written in a way that is does nothing in buffers that are not in
  4921. Org-mode.
  4922. 
  4923. File: org, Node: Special agenda views, Prev: Dynamic blocks, Up: Extensions and Hacking
  4924. A.4 Special Agenda Views
  4925. ========================
  4926. Org-mode provides a special hook that can be used to narrow down the
  4927. selection made by any of the agenda views. You may specify a function
  4928. that is used at each match to verify if the match should indeed be part
  4929. of the agenda view, and if not, how much should be skipped.
  4930. Let's say you want to produce a list of projects that contain a
  4931. WAITING tag anywhere in the project tree. Let's further assume that
  4932. you have marked all tree headings that define a project with the todo
  4933. keyword PROJECT. In this case you would run a todo search for the
  4934. keyword PROJECT, but skip the match unless there is a WAITING tag
  4935. anywhere in the subtree belonging to the project line.
  4936. To achieve this, you must write a function that searches the subtree
  4937. for the tag. If the tag is found, the function must return `nil' to
  4938. indicate that this match should not be skipped. If there is no such
  4939. tag, return the location of the end of the subtree, to indicate that
  4940. search should continue from there.
  4941. (defun my-skip-unless-waiting ()
  4942. "Skip trees that are not waiting"
  4943. (let ((subtree-end (save-excursion (org-end-of-subtree t))))
  4944. (if (re-search-forward ":WAITING:" subtree-end t)
  4945. nil ; tag found, do not skip
  4946. subtree-end))) ; tag not found, continue after end of subtree
  4947. Furthermore you must write a command that uses `let' to temporarily
  4948. put this function into the variable `org-agenda-skip-function', sets
  4949. the header string for the agenda buffer, and calls the todo-list
  4950. generator while asking for the specific TODO keyword PROJECT. The
  4951. function must also accept one argument MATCH, but it can choose to
  4952. ignore it(1) (as we do in the example below). Here is the example:
  4953. (defun my-org-waiting-projects (&optional match)
  4954. "Produce a list of projects that contain a WAITING tag.
  4955. MATCH is being ignored."
  4956. (interactive)
  4957. (let ((org-agenda-skip-function 'my-skip-unless-waiting)
  4958. (org-agenda-overriding-header "Projects waiting for something: "))
  4959. ;; make the list
  4960. (org-todo-list "PROJECT")))
  4961. ---------- Footnotes ----------
  4962. (1) MATCH must be present in case you want to define a custom
  4963. command for producing this special list. Custom commands always supply
  4964. the MATCH argument, but it can be empty if you do not specify it while
  4965. defining the command(*note Custom agenda views::).
  4966. 
  4967. File: org, Node: History and Acknowledgments, Next: Index, Prev: Extensions and Hacking, Up: Top
  4968. Appendix B History and Acknowledgments
  4969. **************************************
  4970. Org-mode was borne in 2003, out of frustration over the user interface
  4971. of the Emacs outline-mode. I was trying to organize my notes and
  4972. projects, and using Emacs seemed to be the natural way to go. However,
  4973. having to remember eleven different commands with two or three keys per
  4974. command, only to hide and unhide parts of the outline tree, that seemed
  4975. entirely unacceptable to me. Also, when using outlines to take notes, I
  4976. constantly want to restructure the tree, organizing it parallel to my
  4977. thoughts and plans. _Visibility cycling_ and _structure editing_ were
  4978. originally implemented in the package `outline-magic.el', but quickly
  4979. moved to the more general `org.el'. As this environment became
  4980. comfortable for project planning, the next step was adding _TODO
  4981. entries_, basic _time stamps_, and _table support_. These areas
  4982. highlight the two main goals that Org-mode still has today: To create a
  4983. new, outline-based, plain text mode with innovative and intuitive
  4984. editing features, and to incorporate project planning functionality
  4985. directly into a notes file.
  4986. Since the first release, hundreds of emails to me or on
  4987. `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
  4988. feedback, new ideas, and sometimes patches and add-on code. Many
  4989. thanks to everyone who has helped to improve this package. I am trying
  4990. to keep here a list of the people who had significant influence in
  4991. shaping one or more aspects of Org-mode. The list may not be complete,
  4992. if I have forgotten someone, please accept my apologies and let me know.
  4993. * Thomas Baumann contributed the code for links to the MH-E email
  4994. system.
  4995. * Alex Bochannek provided a patch for rounding time stamps.
  4996. * Charles Cave's suggestion sparked the implementation of templates
  4997. for Remember.
  4998. * Pavel Chalmoviansky influenced the agenda treatment of items with
  4999. specified time.
  5000. * Gregory Chernov patched support for lisp forms into table
  5001. calculations and improved XEmacs compatibility, in particular by
  5002. porting `nouline.el' to XEmacs.
  5003. * Sacha Chua suggested to copy some linking code from Planner.
  5004. * Eddward DeVilla proposed and tested checkbox statistics.
  5005. * Kees Dullemond used to edit projects lists directly in HTML and so
  5006. inspired some of the early development, including HTML export. He
  5007. also asked for a way to narrow wide table columns.
  5008. * Christian Egli converted the documentation into TeXInfo format,
  5009. patched CSS formatting into the HTML exporter, and inspired the
  5010. agenda.
  5011. * David Emery provided a patch for custom CSS support in exported
  5012. HTML agendas.
  5013. * Nic Ferrier contributed mailcap and XOXO support.
  5014. * John Foerch figured out how to make incremental search show context
  5015. around a match in a hidden outline tree.
  5016. * Niels Giessen had the idea to automatically archive DONE trees.
  5017. * Bastien Guerry provided extensive feedback and some patches, and
  5018. translated David O'Toole's tutorial into French.
  5019. * Kai Grossjohann pointed out key-binding conflicts with other
  5020. packages.
  5021. * Shidai Liu ("Leo") asked for embedded LaTeX and tested it. He also
  5022. provided frequent feedback and some patches.
  5023. * Jason F. McBrayer suggested agenda export to CSV format.
  5024. * Dmitri Minaev sent a patch to set priority limits on a per-file
  5025. basis.
  5026. * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
  5027. happy.
  5028. * Rick Moynihan proposed to allow multiple TODO sequences in a file.
  5029. * Todd Neal provided patches for links to Info files and elisp forms.
  5030. * Tim O'Callaghan suggested in-file links, search options for general
  5031. file links, and TAGS.
  5032. * Takeshi Okano translated the manual and David O'Toole's tutorial
  5033. into Japanese.
  5034. * Oliver Oppitz suggested multi-state TODO items.
  5035. * Scott Otterson sparked the introduction of descriptive text for
  5036. links, among other things.
  5037. * Pete Phillips helped during the development of the TAGS feature,
  5038. and provided frequent feedback.
  5039. * T.V. Raman reported bugs and suggested improvements.
  5040. * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
  5041. control.
  5042. * Kevin Rogers contributed code to access VM files on remote hosts.
  5043. * Frank Ruell solved the mystery of the `keymapp nil' bug, a
  5044. conflict with `allout.el'.
  5045. * Jason Riedy sent a patch to fix a bug with export of TODO keywords.
  5046. * Philip Rooke created the Org-mode reference card and provided lots
  5047. of feedback.
  5048. * Christian Schlauer proposed angular brackets around links, among
  5049. other things.
  5050. * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
  5051. `organizer-mode.el'.
  5052. * Daniel Sinder came up with the idea of internal archiving by
  5053. locking subtrees.
  5054. * Dale Smith proposed link abbreviations.
  5055. * David O'Toole wrote `org-publish.el' and drafted the manual
  5056. chapter about publishing.
  5057. * Ju"rgen Vollmer contributed code generating the table of contents
  5058. in HTML output.
  5059. * Chris Wallace provided a patch implementing the `QUOTE' keyword.
  5060. * David Wainberg suggested archiving, and improvements to the linking
  5061. system.
  5062. * John Wiegley wrote `emacs-wiki.el' and `planner.el'. The
  5063. development of Org-mode was fully independent, and both systems are
  5064. really different beasts in their basic ideas and implementation
  5065. details. I later looked at John's code, however, and learned from
  5066. his implementation of (i) links where the link itself is hidden
  5067. and only a description is shown, and (ii) popping up a calendar to
  5068. select a date.
  5069. * Carsten Wimmer suggested some changes and helped fix a bug in
  5070. linking to GNUS.
  5071. * Roland Winkler requested additional keybindings to make Org-mode
  5072. work on a tty.
  5073. * Piotr Zielinski wrote `org-mouse.el', proposed agenda blocks and
  5074. contributed various ideas and code snippets.
  5075. 
  5076. File: org, Node: Index, Next: Key Index, Prev: History and Acknowledgments, Up: Top
  5077. Index
  5078. *****
  5079. �[index�]
  5080. * Menu:
  5081. * abbreviation, links: Link abbreviations. (line 6)
  5082. * acknowledgments: History and Acknowledgments.
  5083. (line 6)
  5084. * action, for publishing: Publishing action. (line 6)
  5085. * activation: Activation. (line 6)
  5086. * active region <1>: Export commands. (line 6)
  5087. * active region <2>: ASCII export. (line 9)
  5088. * active region <3>: Built-in table editor.
  5089. (line 141)
  5090. * active region: Structure editing. (line 64)
  5091. * agenda: Weekly/Daily agenda. (line 6)
  5092. * agenda dispatcher: Agenda dispatcher. (line 6)
  5093. * agenda files: Agenda files. (line 6)
  5094. * agenda files, removing buffers: Agenda commands. (line 239)
  5095. * agenda views: Agenda views. (line 6)
  5096. * agenda views, custom: Custom agenda views. (line 6)
  5097. * agenda views, exporting <1>: Exporting Agenda Views.
  5098. (line 6)
  5099. * agenda views, exporting: Agenda commands. (line 228)
  5100. * agenda views, user-defined: Special agenda views.
  5101. (line 6)
  5102. * agenda, pipe: Extracting Agenda Information for other programs.
  5103. (line 6)
  5104. * agenda, with block views: Block agenda. (line 6)
  5105. * align, STARTUP keyword: In-buffer settings. (line 29)
  5106. * allout.el: Conflicts. (line 6)
  5107. * angular brackets, around links: External links. (line 43)
  5108. * archive locations: Moving subtrees. (line 21)
  5109. * archiving: Archiving. (line 6)
  5110. * ASCII export: ASCII export. (line 6)
  5111. * author: Feedback. (line 6)
  5112. * autoload: Activation. (line 6)
  5113. * backtrace of an error: Feedback. (line 27)
  5114. * BBDB links: External links. (line 6)
  5115. * block agenda: Block agenda. (line 6)
  5116. * blorg.el: Extensions. (line 32)
  5117. * bold text: Enhancing text. (line 15)
  5118. * Boolean logic, for tag searches: Tag searches. (line 23)
  5119. * bug reports: Feedback. (line 6)
  5120. * bugs: Bugs. (line 6)
  5121. * C-c C-c, overview: The very busy C-c C-c key.
  5122. (line 6)
  5123. * calc package: The spreadsheet. (line 6)
  5124. * calc.el: Cooperation. (line 6)
  5125. * calculations, in tables <1>: The spreadsheet. (line 6)
  5126. * calculations, in tables: Built-in table editor.
  5127. (line 141)
  5128. * calendar commands, from agenda: Agenda commands. (line 191)
  5129. * calendar integration: Weekly/Daily agenda. (line 24)
  5130. * calendar, for selecting date: The date/time prompt.
  5131. (line 26)
  5132. * category: Categories. (line 6)
  5133. * CDLaTeX: CDLaTeX mode. (line 6)
  5134. * cdlatex.el: Cooperation. (line 29)
  5135. * checkbox statistics: Checkboxes. (line 23)
  5136. * checkboxes: Checkboxes. (line 6)
  5137. * children, subtree visibility state: Visibility cycling. (line 10)
  5138. * clean outline view: Clean view. (line 6)
  5139. * column formula: Column formulas. (line 6)
  5140. * commands, in agenda buffer: Agenda commands. (line 6)
  5141. * comment lines: Comment lines. (line 6)
  5142. * completion, of dictionary words: Completion. (line 6)
  5143. * completion, of file names: Handling links. (line 43)
  5144. * completion, of link abbreviations: Completion. (line 6)
  5145. * completion, of links: Handling links. (line 25)
  5146. * completion, of option keywords <1>: Completion. (line 6)
  5147. * completion, of option keywords <2>: Export options. (line 6)
  5148. * completion, of option keywords: Per file keywords. (line 23)
  5149. * completion, of tags <1>: Completion. (line 6)
  5150. * completion, of tags: Setting tags. (line 11)
  5151. * completion, of TeX symbols: Completion. (line 6)
  5152. * completion, of TODO keywords <1>: Completion. (line 6)
  5153. * completion, of TODO keywords: Workflow states. (line 15)
  5154. * constants, in calculations: References. (line 82)
  5155. * constants.el: Cooperation. (line 14)
  5156. * constcgs, STARTUP keyword: In-buffer settings. (line 54)
  5157. * constSI, STARTUP keyword: In-buffer settings. (line 54)
  5158. * content, STARTUP keyword: In-buffer settings. (line 22)
  5159. * contents, global visibility state: Visibility cycling. (line 22)
  5160. * copying, of subtrees: Structure editing. (line 6)
  5161. * creating timestamps: Creating timestamps. (line 6)
  5162. * CUA.el: Conflicts. (line 15)
  5163. * custom agenda views: Custom agenda views. (line 6)
  5164. * custom date/time format: Custom time format. (line 6)
  5165. * custom search strings: Custom searches. (line 6)
  5166. * customization: Customization. (line 6)
  5167. * customtime, STARTUP keyword: In-buffer settings. (line 51)
  5168. * cutting, of subtrees: Structure editing. (line 6)
  5169. * cycling, of TODO states: TODO basics. (line 13)
  5170. * cycling, visibility: Visibility cycling. (line 6)
  5171. * daily agenda: Weekly/Daily agenda. (line 6)
  5172. * date format, custom: Custom time format. (line 6)
  5173. * date range: Time stamps. (line 40)
  5174. * date stamps <1>: Time stamps. (line 6)
  5175. * date stamps: Timestamps. (line 6)
  5176. * date, reading in minibuffer: The date/time prompt.
  5177. (line 6)
  5178. * DEADLINE keyword: Deadlines and scheduling.
  5179. (line 10)
  5180. * deadlines: Time stamps. (line 6)
  5181. * debugging, of table formulas: Editing and debugging formulas.
  5182. (line 97)
  5183. * demotion, of subtrees: Structure editing. (line 6)
  5184. * diary entries, creating from agenda: Agenda commands. (line 196)
  5185. * diary integration: Weekly/Daily agenda. (line 24)
  5186. * dictionary word completion: Completion. (line 6)
  5187. * directories, for publishing: Sources and destinations.
  5188. (line 6)
  5189. * dispatching agenda commands: Agenda dispatcher. (line 6)
  5190. * display changing, in agenda: Agenda commands. (line 65)
  5191. * document structure: Document structure. (line 6)
  5192. * DONE, final TODO keyword: Per file keywords. (line 26)
  5193. * dynamic blocks: Dynamic blocks. (line 6)
  5194. * editing tables: Tables. (line 6)
  5195. * editing, of table formulas: Editing and debugging formulas.
  5196. (line 6)
  5197. * elisp links: External links. (line 6)
  5198. * emphasized text: Export options. (line 25)
  5199. * enhancing text: Enhancing text. (line 6)
  5200. * evaluate time range: Creating timestamps. (line 48)
  5201. * even, STARTUP keyword: In-buffer settings. (line 44)
  5202. * exporting: Exporting. (line 6)
  5203. * exporting agenda views <1>: Exporting Agenda Views.
  5204. (line 12)
  5205. * exporting agenda views: Agenda commands. (line 228)
  5206. * exporting, not: Comment lines. (line 6)
  5207. * extended TODO keywords: TODO extensions. (line 6)
  5208. * extension, third-party: Extensions. (line 6)
  5209. * external archiving: Moving subtrees. (line 6)
  5210. * external links: External links. (line 6)
  5211. * external links, in HTML export: Links. (line 6)
  5212. * FAQ: Summary. (line 53)
  5213. * feedback: Feedback. (line 6)
  5214. * field formula: Field formulas. (line 6)
  5215. * field references: References. (line 15)
  5216. * file links: External links. (line 6)
  5217. * file links, searching: Search options. (line 6)
  5218. * file name completion: Handling links. (line 43)
  5219. * files for agenda: Agenda files. (line 6)
  5220. * files, adding to agenda list: Agenda files. (line 12)
  5221. * files, selecting for publishing: Selecting files. (line 6)
  5222. * fixed width: Enhancing text. (line 28)
  5223. * fixed-width sections: Export options. (line 25)
  5224. * folded, subtree visibility state: Visibility cycling. (line 10)
  5225. * folding, sparse trees: Sparse trees. (line 6)
  5226. * following links: Handling links. (line 58)
  5227. * footnote.el <1>: Conflicts. (line 35)
  5228. * footnote.el <2>: Cooperation. (line 56)
  5229. * footnote.el: Footnotes. (line 6)
  5230. * footnotes: Footnotes. (line 6)
  5231. * format specifier: Formula syntax for Calc.
  5232. (line 14)
  5233. * format, of links: Link format. (line 6)
  5234. * formula debugging: Editing and debugging formulas.
  5235. (line 97)
  5236. * formula editing: Editing and debugging formulas.
  5237. (line 6)
  5238. * formula syntax, Calc: Formula syntax for Calc.
  5239. (line 6)
  5240. * formula, for individual table field: Field formulas. (line 6)
  5241. * formula, for table column: Column formulas. (line 6)
  5242. * formula, in tables: Built-in table editor.
  5243. (line 141)
  5244. * global cycling: Visibility cycling. (line 22)
  5245. * global keybindings: Activation. (line 6)
  5246. * global TODO list: Global TODO list. (line 6)
  5247. * global visibility states: Visibility cycling. (line 22)
  5248. * GNUS links: External links. (line 6)
  5249. * grouping columns in tables: Column groups. (line 6)
  5250. * hand-formatted lists: Enhancing text. (line 11)
  5251. * headline levels: Export options. (line 25)
  5252. * headline levels, for exporting <1>: Export commands. (line 34)
  5253. * headline levels, for exporting: ASCII export. (line 18)
  5254. * headline navigation: Motion. (line 6)
  5255. * headline tagging: Tags. (line 6)
  5256. * headline, promotion and demotion: Structure editing. (line 6)
  5257. * headlines: Headlines. (line 6)
  5258. * hide text: Visibility cycling. (line 6)
  5259. * hidestars, STARTUP keyword: In-buffer settings. (line 44)
  5260. * hiding leading stars: Clean view. (line 6)
  5261. * history: History and Acknowledgments.
  5262. (line 6)
  5263. * horizontal rules, in exported files: Enhancing text. (line 18)
  5264. * HTML export: HTML export. (line 6)
  5265. * HTML, and orgtbl-mode: Translator functions.
  5266. (line 6)
  5267. * hyperlinks: Hyperlinks. (line 6)
  5268. * iCalendar export: iCalendar export. (line 6)
  5269. * images, inline in HTML: Images. (line 6)
  5270. * in-buffer settings: In-buffer settings. (line 6)
  5271. * inactive timestamp: Time stamps. (line 49)
  5272. * index, of published pages: Project page index. (line 6)
  5273. * Info links: External links. (line 6)
  5274. * inheritance, of tags: Tag inheritance. (line 6)
  5275. * inlining images in HTML: Images. (line 6)
  5276. * inserting links: Handling links. (line 25)
  5277. * installation: Installation. (line 6)
  5278. * internal archiving: ARCHIVE tag. (line 6)
  5279. * internal links: Internal links. (line 6)
  5280. * internal links, in HTML export: Links. (line 6)
  5281. * introduction: Introduction. (line 6)
  5282. * italic text: Enhancing text. (line 15)
  5283. * jumping, to headlines: Motion. (line 6)
  5284. * keybindings, global: Activation. (line 6)
  5285. * keyword options: Per file keywords. (line 6)
  5286. * LaTeX fragments <1>: Export options. (line 25)
  5287. * LaTeX fragments: LaTeX fragments. (line 6)
  5288. * LaTeX fragments, export: Enhancing text. (line 21)
  5289. * LaTeX fragments, preview: Processing LaTeX fragments.
  5290. (line 6)
  5291. * LaTeX interpretation: Embedded LaTeX. (line 6)
  5292. * LaTeX, and orgtbl-mode: A LaTeX example. (line 6)
  5293. * level, require for tags match: Tag searches. (line 68)
  5294. * linebreak preservation: Export options. (line 25)
  5295. * linebreak, forced: Enhancing text. (line 35)
  5296. * link abbreviations: Link abbreviations. (line 6)
  5297. * link abbreviations, completion of: Completion. (line 6)
  5298. * link completion: Handling links. (line 25)
  5299. * link format: Link format. (line 6)
  5300. * links, external: External links. (line 6)
  5301. * links, finding next/previous: Handling links. (line 91)
  5302. * links, handling: Handling links. (line 6)
  5303. * links, in HTML export: Links. (line 6)
  5304. * links, internal: Internal links. (line 6)
  5305. * links, publishing: Publishing links. (line 6)
  5306. * links, radio targets: Radio targets. (line 6)
  5307. * links, returning to: Handling links. (line 85)
  5308. * Lisp forms, as table formulas: Formula syntax for Lisp.
  5309. (line 6)
  5310. * lists, hand-formatted: Enhancing text. (line 11)
  5311. * lists, ordered: Plain lists. (line 6)
  5312. * lists, plain: Plain lists. (line 6)
  5313. * logdone, STARTUP keyword: In-buffer settings. (line 33)
  5314. * logging, of progress: Progress logging. (line 6)
  5315. * lognoteclock-out, STARTUP keyword: In-buffer settings. (line 33)
  5316. * lognotedone, STARTUP keyword: In-buffer settings. (line 33)
  5317. * lognotestate, STARTUP keyword: In-buffer settings. (line 33)
  5318. * logrepeat, STARTUP keyword: In-buffer settings. (line 33)
  5319. * maintainer: Feedback. (line 6)
  5320. * mark ring: Handling links. (line 81)
  5321. * marking characters, tables: Advanced features. (line 40)
  5322. * matching, of tags: Matching headline tags.
  5323. (line 6)
  5324. * matching, tags: Tags. (line 6)
  5325. * math symbols: Math symbols. (line 6)
  5326. * MH-E links: External links. (line 6)
  5327. * minor mode for tables: orgtbl-mode. (line 6)
  5328. * mode, for calc: Formula syntax for Calc.
  5329. (line 14)
  5330. * motion commands in agenda: Agenda commands. (line 19)
  5331. * motion, between headlines: Motion. (line 6)
  5332. * name, of column or field: References. (line 82)
  5333. * named references: References. (line 82)
  5334. * names as TODO keywords: TODO types. (line 6)
  5335. * narrow columns in tables: Narrow columns. (line 6)
  5336. * noalign, STARTUP keyword: In-buffer settings. (line 29)
  5337. * nologging, STARTUP keyword: In-buffer settings. (line 33)
  5338. * nologrepeat, STARTUP keyword: In-buffer settings. (line 33)
  5339. * occur, command: Sparse trees. (line 6)
  5340. * odd, STARTUP keyword: In-buffer settings. (line 44)
  5341. * option keyword completion: Completion. (line 6)
  5342. * options, for custom agenda views: Setting Options. (line 6)
  5343. * options, for customization: Customization. (line 6)
  5344. * options, for export: Export options. (line 6)
  5345. * options, for publishing: Publishing options. (line 6)
  5346. * ordered lists: Plain lists. (line 6)
  5347. * org-agenda, command: Weekly/Daily agenda. (line 9)
  5348. * org-blog.el: Extensions. (line 28)
  5349. * org-mode, turning on: Activation. (line 22)
  5350. * org-mouse.el: Extensions. (line 16)
  5351. * org-publish-project-alist: Project alist. (line 6)
  5352. * org-publish.el: Extensions. (line 8)
  5353. * org2rem.el: Extensions. (line 36)
  5354. * orgtbl-mode <1>: Tables in arbitrary syntax.
  5355. (line 6)
  5356. * orgtbl-mode: orgtbl-mode. (line 6)
  5357. * outline tree: Headlines. (line 6)
  5358. * outline-mode: Outlines. (line 6)
  5359. * outlines: Outlines. (line 6)
  5360. * overview, global visibility state: Visibility cycling. (line 22)
  5361. * overview, STARTUP keyword: In-buffer settings. (line 22)
  5362. * packages, interaction with other: Interaction. (line 6)
  5363. * pasting, of subtrees: Structure editing. (line 6)
  5364. * per file keywords: Per file keywords. (line 6)
  5365. * plain lists: Plain lists. (line 6)
  5366. * plain text external links: External links. (line 43)
  5367. * presentation, of agenda items: Presentation and sorting.
  5368. (line 6)
  5369. * printing sparse trees: Sparse trees. (line 41)
  5370. * priorities: Priorities. (line 6)
  5371. * priorities, of agenda items: Sorting of agenda items.
  5372. (line 6)
  5373. * progress logging: Progress logging. (line 6)
  5374. * projects, for publishing: Project alist. (line 6)
  5375. * promotion, of subtrees: Structure editing. (line 6)
  5376. * publishing: Publishing. (line 6)
  5377. * quoted HTML tags: Export options. (line 25)
  5378. * radio tables: Radio tables. (line 6)
  5379. * radio targets: Radio targets. (line 6)
  5380. * range references: References. (line 60)
  5381. * ranges, time: Time stamps. (line 6)
  5382. * recomputing table fields: Updating the table. (line 6)
  5383. * references: References. (line 6)
  5384. * references, named: References. (line 82)
  5385. * references, to fields: References. (line 15)
  5386. * references, to ranges: References. (line 60)
  5387. * region, active <1>: Export commands. (line 6)
  5388. * region, active <2>: ASCII export. (line 9)
  5389. * region, active <3>: Built-in table editor.
  5390. (line 141)
  5391. * region, active: Structure editing. (line 64)
  5392. * regular expressions, with tags search: Tag searches. (line 63)
  5393. * remember.el <1>: Cooperation. (line 33)
  5394. * remember.el: Remember. (line 6)
  5395. * remote editing, from agenda: Agenda commands. (line 106)
  5396. * remote editing, undo: Agenda commands. (line 107)
  5397. * richer text: Enhancing text. (line 6)
  5398. * RMAIL links: External links. (line 6)
  5399. * SCHEDULED keyword: Deadlines and scheduling.
  5400. (line 22)
  5401. * scheduling: Time stamps. (line 6)
  5402. * Scripts, for agenda processing: Extracting Agenda Information for other programs.
  5403. (line 6)
  5404. * search option in file links: Search options. (line 6)
  5405. * search strings, custom: Custom searches. (line 6)
  5406. * searching for tags: Tag searches. (line 6)
  5407. * section-numbers: Export options. (line 25)
  5408. * setting tags: Setting tags. (line 6)
  5409. * SHELL links: External links. (line 6)
  5410. * show all, command: Visibility cycling. (line 33)
  5411. * show all, global visibility state: Visibility cycling. (line 22)
  5412. * show hidden text: Visibility cycling. (line 6)
  5413. * showall, STARTUP keyword: In-buffer settings. (line 22)
  5414. * showstars, STARTUP keyword: In-buffer settings. (line 44)
  5415. * sorting, of agenda items: Sorting of agenda items.
  5416. (line 6)
  5417. * sparse tree, for deadlines: Inserting deadline/schedule.
  5418. (line 11)
  5419. * sparse tree, for TODO: TODO basics. (line 26)
  5420. * sparse tree, tag based: Tags. (line 6)
  5421. * sparse trees: Sparse trees. (line 6)
  5422. * special keywords: In-buffer settings. (line 6)
  5423. * spreadsheet capabilities: The spreadsheet. (line 6)
  5424. * statistics, for checkboxes: Checkboxes. (line 23)
  5425. * storing links: Handling links. (line 9)
  5426. * structure editing: Structure editing. (line 6)
  5427. * structure of document: Document structure. (line 6)
  5428. * sublevels, inclusion into tags match: Tag inheritance. (line 6)
  5429. * sublevels, inclusion into todo list: Global TODO list. (line 34)
  5430. * subscript: Subscripts and Superscripts.
  5431. (line 6)
  5432. * subtree cycling: Visibility cycling. (line 10)
  5433. * subtree visibility states: Visibility cycling. (line 10)
  5434. * subtree, cut and paste: Structure editing. (line 6)
  5435. * subtree, subtree visibility state: Visibility cycling. (line 10)
  5436. * subtrees, cut and paste: Structure editing. (line 6)
  5437. * summary: Summary. (line 6)
  5438. * superscript: Subscripts and Superscripts.
  5439. (line 6)
  5440. * syntax, of formulas: Formula syntax for Calc.
  5441. (line 6)
  5442. * table editor, built-in: Built-in table editor.
  5443. (line 6)
  5444. * table editor, table.el: Cooperation. (line 37)
  5445. * table of contents: Export options. (line 25)
  5446. * table.el: Cooperation. (line 34)
  5447. * tables <1>: Export options. (line 25)
  5448. * tables: Tables. (line 6)
  5449. * tables, export: Enhancing text. (line 24)
  5450. * tables, in other modes: Tables in arbitrary syntax.
  5451. (line 6)
  5452. * tag completion: Completion. (line 6)
  5453. * tag searches: Tag searches. (line 6)
  5454. * tags: Tags. (line 6)
  5455. * tags view: Matching headline tags.
  5456. (line 6)
  5457. * tags, setting: Setting tags. (line 6)
  5458. * targets, for links: Internal links. (line 6)
  5459. * targets, radio: Radio targets. (line 6)
  5460. * tasks, breaking down: Breaking down tasks. (line 6)
  5461. * templates, for remember: Remember templates. (line 6)
  5462. * TeX interpretation: Embedded LaTeX. (line 6)
  5463. * TeX macros <1>: Export options. (line 25)
  5464. * TeX macros: Math symbols. (line 6)
  5465. * TeX macros, export: Enhancing text. (line 21)
  5466. * TeX symbol completion: Completion. (line 6)
  5467. * TeX-like syntax for sub- and superscripts: Export options. (line 25)
  5468. * thanks: History and Acknowledgments.
  5469. (line 6)
  5470. * time format, custom: Custom time format. (line 6)
  5471. * time grid: Time-of-day specifications.
  5472. (line 26)
  5473. * time stamps <1>: Time stamps. (line 6)
  5474. * time stamps: Timestamps. (line 6)
  5475. * time, reading in minibuffer: The date/time prompt.
  5476. (line 6)
  5477. * time-of-day specification: Time-of-day specifications.
  5478. (line 6)
  5479. * time-sorted view: Timeline. (line 6)
  5480. * timeline, single file: Timeline. (line 6)
  5481. * timerange: Time stamps. (line 40)
  5482. * timestamp: Time stamps. (line 14)
  5483. * timestamp, inactive: Time stamps. (line 49)
  5484. * timestamp, with repeater interval: Time stamps. (line 24)
  5485. * timestamps, creating: Creating timestamps. (line 6)
  5486. * TODO items: TODO items. (line 6)
  5487. * TODO keyword matching: Global TODO list. (line 17)
  5488. * TODO keyword matching, with tags search: Tag searches. (line 40)
  5489. * todo keyword sets: Multiple sets in one file.
  5490. (line 6)
  5491. * TODO keywords completion: Completion. (line 6)
  5492. * TODO list, global: Global TODO list. (line 6)
  5493. * TODO types: TODO types. (line 6)
  5494. * TODO workflow: Workflow states. (line 6)
  5495. * transient-mark-mode <1>: Export commands. (line 6)
  5496. * transient-mark-mode <2>: ASCII export. (line 9)
  5497. * transient-mark-mode <3>: Built-in table editor.
  5498. (line 141)
  5499. * transient-mark-mode: Structure editing. (line 64)
  5500. * translator function: Translator functions.
  5501. (line 6)
  5502. * trees, sparse: Sparse trees. (line 6)
  5503. * trees, visibility: Visibility cycling. (line 6)
  5504. * tty keybindings: TTY keys. (line 6)
  5505. * types as TODO keywords: TODO types. (line 6)
  5506. * underlined text: Enhancing text. (line 15)
  5507. * undoing remote-editing events: Agenda commands. (line 107)
  5508. * updating, table: Updating the table. (line 6)
  5509. * URL links: External links. (line 6)
  5510. * USENET links: External links. (line 6)
  5511. * variables, for customization: Customization. (line 6)
  5512. * vectors, in table calculations: Formula syntax for Calc.
  5513. (line 11)
  5514. * visibility cycling: Visibility cycling. (line 6)
  5515. * visible text, printing: Sparse trees. (line 41)
  5516. * VM links: External links. (line 6)
  5517. * WANDERLUST links: External links. (line 6)
  5518. * weekly agenda: Weekly/Daily agenda. (line 6)
  5519. * windmove.el: Conflicts. (line 32)
  5520. * workflow states as TODO keywords: Workflow states. (line 6)
  5521. * XEmacs: Installation. (line 6)
  5522. * XOXO export: XOXO export. (line 6)
  5523. 
  5524. File: org, Node: Key Index, Prev: Index, Up: Top
  5525. Key Index
  5526. *********
  5527. �[index�]
  5528. * Menu:
  5529. * $: Agenda commands. (line 121)
  5530. * ': CDLaTeX mode. (line 43)
  5531. * +: Agenda commands. (line 143)
  5532. * ,: Agenda commands. (line 135)
  5533. * -: Agenda commands. (line 149)
  5534. * .: Agenda commands. (line 98)
  5535. * :: Agenda commands. (line 129)
  5536. * <: The date/time prompt.
  5537. (line 32)
  5538. * <left>: Agenda commands. (line 95)
  5539. * <RET> <1>: Agenda commands. (line 39)
  5540. * <RET> <2>: Setting tags. (line 76)
  5541. * <RET> <3>: The date/time prompt.
  5542. (line 57)
  5543. * <RET>: Built-in table editor.
  5544. (line 62)
  5545. * <right>: Agenda commands. (line 90)
  5546. * <SPC> <1>: Agenda commands. (line 28)
  5547. * <SPC>: Setting tags. (line 73)
  5548. * <TAB> <1>: CDLaTeX mode. (line 23)
  5549. * <TAB> <2>: Agenda commands. (line 33)
  5550. * <TAB> <3>: Setting tags. (line 68)
  5551. * <TAB> <4>: Editing and debugging formulas.
  5552. (line 57)
  5553. * <TAB> <5>: Built-in table editor.
  5554. (line 55)
  5555. * <TAB> <6>: Plain lists. (line 41)
  5556. * <TAB>: Visibility cycling. (line 10)
  5557. * > <1>: Agenda commands. (line 171)
  5558. * >: The date/time prompt.
  5559. (line 33)
  5560. * ^: CDLaTeX mode. (line 33)
  5561. * _: CDLaTeX mode. (line 33)
  5562. * `: CDLaTeX mode. (line 39)
  5563. * a: Agenda commands. (line 132)
  5564. * b: Agenda commands. (line 49)
  5565. * C: Agenda commands. (line 211)
  5566. * c: Agenda commands. (line 191)
  5567. * C-#: Advanced features. (line 9)
  5568. * C-': Agenda files. (line 18)
  5569. * C-,: Agenda files. (line 18)
  5570. * C-_: Agenda commands. (line 107)
  5571. * C-a a L: Timeline. (line 10)
  5572. * C-c ! <1>: Footnotes. (line 14)
  5573. * C-c !: Creating timestamps. (line 19)
  5574. * C-c #: Checkboxes. (line 56)
  5575. * C-c %: Handling links. (line 81)
  5576. * C-c &: Handling links. (line 85)
  5577. * C-c ': Editing and debugging formulas.
  5578. (line 36)
  5579. * C-c *: Updating the table. (line 13)
  5580. * C-c +: Built-in table editor.
  5581. (line 141)
  5582. * C-c ,: Priorities. (line 18)
  5583. * C-c -: Built-in table editor.
  5584. (line 90)
  5585. * C-c .: Creating timestamps. (line 10)
  5586. * C-c /: Sparse trees. (line 15)
  5587. * C-c :: Enhancing text. (line 32)
  5588. * C-c ;: Comment lines. (line 10)
  5589. * C-c <: Creating timestamps. (line 23)
  5590. * C-c <TAB>: Built-in table editor.
  5591. (line 161)
  5592. * C-c = <1>: Editing and debugging formulas.
  5593. (line 14)
  5594. * C-c =: Column formulas. (line 26)
  5595. * C-c >: Creating timestamps. (line 27)
  5596. * C-c ?: Editing and debugging formulas.
  5597. (line 24)
  5598. * C-c [: Agenda files. (line 12)
  5599. * C-c \: Tag searches. (line 9)
  5600. * C-c ]: Agenda files. (line 15)
  5601. * C-c ^ <1>: Built-in table editor.
  5602. (line 94)
  5603. * C-c ^: Structure editing. (line 52)
  5604. * C-c `: Built-in table editor.
  5605. (line 157)
  5606. * C-c a !: Stuck projects. (line 14)
  5607. * C-c a #: Stuck projects. (line 13)
  5608. * C-c a a: Weekly/Daily agenda. (line 9)
  5609. * C-c a C: Storing searches. (line 9)
  5610. * C-c a e: Exporting Agenda Views.
  5611. (line 57)
  5612. * C-c a M: Matching headline tags.
  5613. (line 15)
  5614. * C-c a m: Matching headline tags.
  5615. (line 10)
  5616. * C-c a M: Tag searches. (line 16)
  5617. * C-c a m: Tag searches. (line 12)
  5618. * C-c a T: Global TODO list. (line 14)
  5619. * C-c a t <1>: Global TODO list. (line 9)
  5620. * C-c a t: TODO basics. (line 36)
  5621. * C-c C-a: Visibility cycling. (line 33)
  5622. * C-c C-b: Motion. (line 15)
  5623. * C-c C-c <1>: Cooperation. (line 37)
  5624. * C-c C-c <2>: The very busy C-c C-c key.
  5625. (line 6)
  5626. * C-c C-c <3>: Processing LaTeX fragments.
  5627. (line 15)
  5628. * C-c C-c <4>: Setting tags. (line 10)
  5629. * C-c C-c <5>: Checkboxes. (line 37)
  5630. * C-c C-c <6>: Editing and debugging formulas.
  5631. (line 46)
  5632. * C-c C-c <7>: Built-in table editor.
  5633. (line 54)
  5634. * C-c C-c: Plain lists. (line 78)
  5635. * C-c C-d <1>: Agenda commands. (line 156)
  5636. * C-c C-d: Inserting deadline/schedule.
  5637. (line 9)
  5638. * C-c C-e: Exporting. (line 19)
  5639. * C-c C-e a: ASCII export. (line 9)
  5640. * C-c C-e b: Export commands. (line 7)
  5641. * C-c C-e c: iCalendar export. (line 21)
  5642. * C-c C-e H: Export commands. (line 10)
  5643. * C-c C-e h: Export commands. (line 6)
  5644. * C-c C-e I: iCalendar export. (line 16)
  5645. * C-c C-e i: iCalendar export. (line 14)
  5646. * C-c C-e R: Export commands. (line 13)
  5647. * C-c C-e t: Export options. (line 13)
  5648. * C-c C-e v <1>: XOXO export. (line 11)
  5649. * C-c C-e v: Sparse trees. (line 41)
  5650. * C-c C-e v a: ASCII export. (line 13)
  5651. * C-c C-e v b: Export commands. (line 18)
  5652. * C-c C-e v H: Export commands. (line 18)
  5653. * C-c C-e v h: Export commands. (line 18)
  5654. * C-c C-e v R: Export commands. (line 18)
  5655. * C-c C-e x: XOXO export. (line 10)
  5656. * C-c C-f: Motion. (line 12)
  5657. * C-c C-j: Motion. (line 21)
  5658. * C-c C-l: Handling links. (line 25)
  5659. * C-c C-n: Motion. (line 8)
  5660. * C-c C-o <1>: Creating timestamps. (line 31)
  5661. * C-c C-o: Handling links. (line 58)
  5662. * C-c C-p: Motion. (line 9)
  5663. * C-c C-q <1>: Editing and debugging formulas.
  5664. (line 50)
  5665. * C-c C-q: Built-in table editor.
  5666. (line 125)
  5667. * C-c C-r <1>: Editing and debugging formulas.
  5668. (line 53)
  5669. * C-c C-r: Visibility cycling. (line 34)
  5670. * C-c C-s <1>: Agenda commands. (line 153)
  5671. * C-c C-s: Inserting deadline/schedule.
  5672. (line 18)
  5673. * C-c C-t <1>: Clocking work time. (line 27)
  5674. * C-c C-t: TODO basics. (line 13)
  5675. * C-c C-u: Motion. (line 18)
  5676. * C-c C-v: TODO basics. (line 26)
  5677. * C-c C-w: Inserting deadline/schedule.
  5678. (line 11)
  5679. * C-c C-x b: Visibility cycling. (line 41)
  5680. * C-c C-x C-a: ARCHIVE tag. (line 28)
  5681. * C-c C-x C-b: Checkboxes. (line 38)
  5682. * C-c C-x C-c: Agenda commands. (line 218)
  5683. * C-c C-x C-d: Clocking work time. (line 35)
  5684. * C-c C-x C-i: Clocking work time. (line 12)
  5685. * C-c C-x C-k: Structure editing. (line 39)
  5686. * C-c C-x C-l: Processing LaTeX fragments.
  5687. (line 9)
  5688. * C-c C-x C-n: Handling links. (line 91)
  5689. * C-c C-x C-o: Clocking work time. (line 14)
  5690. * C-c C-x C-p: Handling links. (line 91)
  5691. * C-c C-x C-r: Clocking work time. (line 43)
  5692. * C-c C-x C-s: Moving subtrees. (line 10)
  5693. * C-c C-x C-t: Custom time format. (line 12)
  5694. * C-c C-x C-u: Dynamic blocks. (line 21)
  5695. * C-c C-x C-w <1>: Built-in table editor.
  5696. (line 114)
  5697. * C-c C-x C-w: Structure editing. (line 39)
  5698. * C-c C-x C-x: Clocking work time. (line 31)
  5699. * C-c C-x C-y <1>: Built-in table editor.
  5700. (line 118)
  5701. * C-c C-x C-y: Structure editing. (line 46)
  5702. * C-c C-x M-w <1>: Built-in table editor.
  5703. (line 111)
  5704. * C-c C-x M-w: Structure editing. (line 43)
  5705. * C-c C-y <1>: Clocking work time. (line 22)
  5706. * C-c C-y: Creating timestamps. (line 48)
  5707. * C-c l: Handling links. (line 9)
  5708. * C-c { <1>: CDLaTeX mode. (line 21)
  5709. * C-c {: Editing and debugging formulas.
  5710. (line 33)
  5711. * C-c |: Built-in table editor.
  5712. (line 40)
  5713. * C-c }: Editing and debugging formulas.
  5714. (line 28)
  5715. * C-c ~: Cooperation. (line 48)
  5716. * C-k: Agenda commands. (line 115)
  5717. * C-S-<left>: Multiple sets in one file.
  5718. (line 25)
  5719. * C-S-<right>: Multiple sets in one file.
  5720. (line 25)
  5721. * C-TAB: ARCHIVE tag. (line 38)
  5722. * C-u C-c *: Updating the table. (line 16)
  5723. * C-u C-c .: Creating timestamps. (line 14)
  5724. * C-u C-c = <1>: Editing and debugging formulas.
  5725. (line 14)
  5726. * C-u C-c =: Field formulas. (line 24)
  5727. * C-u C-c C-c: Updating the table. (line 19)
  5728. * C-u C-c C-l: Handling links. (line 43)
  5729. * C-u C-c C-x C-a: ARCHIVE tag. (line 31)
  5730. * C-u C-c C-x C-s: Moving subtrees. (line 12)
  5731. * C-u C-c C-x C-u <1>: Dynamic blocks. (line 22)
  5732. * C-u C-c C-x C-u: Clocking work time. (line 70)
  5733. * C-u C-u C-c *: Updating the table. (line 22)
  5734. * C-u C-u C-c =: Editing and debugging formulas.
  5735. (line 18)
  5736. * C-x C-s: Editing and debugging formulas.
  5737. (line 46)
  5738. * C-x C-w <1>: Exporting Agenda Views.
  5739. (line 11)
  5740. * C-x C-w: Agenda commands. (line 227)
  5741. * D: Agenda commands. (line 72)
  5742. * d: Agenda commands. (line 69)
  5743. * f: Agenda commands. (line 42)
  5744. * g: Agenda commands. (line 76)
  5745. * H: Agenda commands. (line 215)
  5746. * i: Agenda commands. (line 196)
  5747. * I: Agenda commands. (line 176)
  5748. * l: Agenda commands. (line 55)
  5749. * L: Agenda commands. (line 30)
  5750. * M: Agenda commands. (line 202)
  5751. * M-<down> <1>: Editing and debugging formulas.
  5752. (line 76)
  5753. * M-<down>: Built-in table editor.
  5754. (line 80)
  5755. * M-<left> <1>: Built-in table editor.
  5756. (line 72)
  5757. * M-<left>: Structure editing. (line 21)
  5758. * M-<RET> <1>: Plain lists. (line 46)
  5759. * M-<RET>: Structure editing. (line 6)
  5760. * M-<right> <1>: Built-in table editor.
  5761. (line 72)
  5762. * M-<right>: Structure editing. (line 24)
  5763. * M-<TAB> <1>: Completion. (line 10)
  5764. * M-<TAB> <2>: Setting tags. (line 6)
  5765. * M-<TAB> <3>: Per file keywords. (line 23)
  5766. * M-<TAB>: Editing and debugging formulas.
  5767. (line 64)
  5768. * M-<up> <1>: Editing and debugging formulas.
  5769. (line 76)
  5770. * M-<up>: Built-in table editor.
  5771. (line 80)
  5772. * M-S-<down> <1>: Editing and debugging formulas.
  5773. (line 72)
  5774. * M-S-<down> <2>: Built-in table editor.
  5775. (line 87)
  5776. * M-S-<down> <3>: Plain lists. (line 63)
  5777. * M-S-<down>: Structure editing. (line 36)
  5778. * M-S-<left> <1>: The date/time prompt.
  5779. (line 54)
  5780. * M-S-<left> <2>: Built-in table editor.
  5781. (line 74)
  5782. * M-S-<left> <3>: Plain lists. (line 69)
  5783. * M-S-<left>: Structure editing. (line 27)
  5784. * M-S-<RET> <1>: Checkboxes. (line 53)
  5785. * M-S-<RET> <2>: Plain lists. (line 56)
  5786. * M-S-<RET>: Structure editing. (line 18)
  5787. * M-S-<right> <1>: The date/time prompt.
  5788. (line 51)
  5789. * M-S-<right> <2>: Built-in table editor.
  5790. (line 77)
  5791. * M-S-<right> <3>: Plain lists. (line 69)
  5792. * M-S-<right>: Structure editing. (line 30)
  5793. * M-S-<up> <1>: Editing and debugging formulas.
  5794. (line 72)
  5795. * M-S-<up> <2>: Built-in table editor.
  5796. (line 84)
  5797. * M-S-<up> <3>: Plain lists. (line 63)
  5798. * M-S-<up>: Structure editing. (line 33)
  5799. * mouse-1 <1>: Agenda commands. (line 33)
  5800. * mouse-1 <2>: The date/time prompt.
  5801. (line 36)
  5802. * mouse-1: Handling links. (line 72)
  5803. * mouse-2 <1>: Agenda commands. (line 33)
  5804. * mouse-2: Handling links. (line 72)
  5805. * mouse-3 <1>: Agenda commands. (line 28)
  5806. * mouse-3: Handling links. (line 77)
  5807. * n: Agenda commands. (line 19)
  5808. * O: Agenda commands. (line 180)
  5809. * o: Agenda commands. (line 65)
  5810. * P: Agenda commands. (line 140)
  5811. * p: Agenda commands. (line 20)
  5812. * q: Agenda commands. (line 238)
  5813. * r <1>: Agenda commands. (line 80)
  5814. * r: Global TODO list. (line 22)
  5815. * S: Agenda commands. (line 206)
  5816. * s: Agenda commands. (line 87)
  5817. * S-<down> <1>: Agenda commands. (line 149)
  5818. * S-<down> <2>: The date/time prompt.
  5819. (line 45)
  5820. * S-<down> <3>: Creating timestamps. (line 40)
  5821. * S-<down> <4>: Priorities. (line 23)
  5822. * S-<down> <5>: Editing and debugging formulas.
  5823. (line 67)
  5824. * S-<down>: Plain lists. (line 59)
  5825. * S-<left> <1>: Agenda commands. (line 167)
  5826. * S-<left> <2>: The date/time prompt.
  5827. (line 42)
  5828. * S-<left> <3>: Creating timestamps. (line 35)
  5829. * S-<left> <4>: Multiple sets in one file.
  5830. (line 29)
  5831. * S-<left> <5>: TODO basics. (line 20)
  5832. * S-<left>: Editing and debugging formulas.
  5833. (line 67)
  5834. * S-<RET>: Built-in table editor.
  5835. (line 144)
  5836. * S-<right> <1>: Agenda commands. (line 159)
  5837. * S-<right> <2>: The date/time prompt.
  5838. (line 39)
  5839. * S-<right> <3>: Creating timestamps. (line 35)
  5840. * S-<right> <4>: Multiple sets in one file.
  5841. (line 29)
  5842. * S-<right> <5>: TODO basics. (line 20)
  5843. * S-<right>: Editing and debugging formulas.
  5844. (line 67)
  5845. * S-<TAB> <1>: Built-in table editor.
  5846. (line 59)
  5847. * S-<TAB>: Visibility cycling. (line 22)
  5848. * S-<up> <1>: Agenda commands. (line 143)
  5849. * S-<up> <2>: The date/time prompt.
  5850. (line 48)
  5851. * S-<up> <3>: Creating timestamps. (line 40)
  5852. * S-<up> <4>: Priorities. (line 23)
  5853. * S-<up> <5>: Editing and debugging formulas.
  5854. (line 67)
  5855. * S-<up>: Plain lists. (line 59)
  5856. * T: Agenda commands. (line 124)
  5857. * t: Agenda commands. (line 111)
  5858. * w: Agenda commands. (line 66)
  5859. * x: Agenda commands. (line 239)
  5860. * X: Agenda commands. (line 183)
  5861. 
  5862. Tag Table:
  5863. Node: Top970
  5864. Node: Introduction11743
  5865. Node: Summary12158
  5866. Node: Installation15167
  5867. Node: Activation16545
  5868. Node: Feedback17794
  5869. Node: Document structure19870
  5870. Node: Outlines20644
  5871. Node: Headlines21304
  5872. Ref: Headlines-Footnote-122312
  5873. Node: Visibility cycling22411
  5874. Ref: Visibility cycling-Footnote-124621
  5875. Ref: Visibility cycling-Footnote-224679
  5876. Ref: Visibility cycling-Footnote-324729
  5877. Node: Motion24999
  5878. Node: Structure editing25953
  5879. Node: Archiving28779
  5880. Node: ARCHIVE tag29337
  5881. Node: Moving subtrees31130
  5882. Node: Sparse trees32441
  5883. Ref: Sparse trees-Footnote-134573
  5884. Ref: Sparse trees-Footnote-234755
  5885. Node: Plain lists34870
  5886. Ref: Plain lists-Footnote-138639
  5887. Ref: Plain lists-Footnote-238997
  5888. Node: Tables39181
  5889. Node: Built-in table editor39762
  5890. Node: Narrow columns47001
  5891. Ref: Narrow columns-Footnote-148936
  5892. Node: Column groups48982
  5893. Node: orgtbl-mode50515
  5894. Node: The spreadsheet51318
  5895. Node: References52405
  5896. Ref: References-Footnote-156534
  5897. Node: Formula syntax for Calc56823
  5898. Node: Formula syntax for Lisp59280
  5899. Node: Field formulas60549
  5900. Node: Column formulas61857
  5901. Node: Editing and debugging formulas63456
  5902. Node: Updating the table67609
  5903. Node: Advanced features68644
  5904. Node: Hyperlinks73169
  5905. Node: Link format73942
  5906. Node: Internal links75235
  5907. Ref: Internal links-Footnote-177160
  5908. Node: Radio targets77292
  5909. Node: External links77983
  5910. Node: Handling links80387
  5911. Ref: Handling links-Footnote-185674
  5912. Ref: Handling links-Footnote-285911
  5913. Node: Link abbreviations85985
  5914. Node: Search options87664
  5915. Ref: Search options-Footnote-189444
  5916. Node: Custom searches89525
  5917. Node: Remember90573
  5918. Node: Setting up remember91560
  5919. Node: Remember templates92142
  5920. Ref: Remember templates-Footnote-195434
  5921. Node: Storing notes95532
  5922. Node: TODO items97419
  5923. Node: TODO basics98402
  5924. Node: TODO extensions100099
  5925. Node: Workflow states100918
  5926. Ref: Workflow states-Footnote-1102093
  5927. Node: TODO types102186
  5928. Ref: TODO types-Footnote-1103769
  5929. Node: Multiple sets in one file103851
  5930. Node: Per file keywords105462
  5931. Ref: Per file keywords-Footnote-1106751
  5932. Node: Priorities106952
  5933. Node: Breaking down tasks108562
  5934. Ref: Breaking down tasks-Footnote-1109082
  5935. Node: Checkboxes109178
  5936. Node: Timestamps111933
  5937. Node: Time stamps112374
  5938. Ref: Time stamps-Footnote-1114679
  5939. Node: Creating timestamps114795
  5940. Node: The date/time prompt116869
  5941. Ref: The date/time prompt-Footnote-1118857
  5942. Node: Custom time format118963
  5943. Node: Deadlines and scheduling120511
  5944. Ref: Deadlines and scheduling-Footnote-1121861
  5945. Node: Inserting deadline/schedule122016
  5946. Node: Repeated tasks122954
  5947. Node: Progress logging124593
  5948. Node: Closing items125248
  5949. Ref: Closing items-Footnote-1126182
  5950. Ref: Closing items-Footnote-2126251
  5951. Node: Tracking TODO state changes126324
  5952. Node: Clocking work time127180
  5953. Ref: Clocking work time-Footnote-1130826
  5954. Ref: Clocking work time-Footnote-2130904
  5955. Node: Tags131030
  5956. Node: Tag inheritance131792
  5957. Node: Setting tags132729
  5958. Ref: Setting tags-Footnote-1137252
  5959. Ref: Setting tags-Footnote-2137364
  5960. Node: Tag searches137447
  5961. Node: Agenda views140158
  5962. Node: Agenda files142103
  5963. Ref: Agenda files-Footnote-1143069
  5964. Ref: Agenda files-Footnote-2143218
  5965. Node: Agenda dispatcher143411
  5966. Node: Built-in agenda views145102
  5967. Node: Weekly/Daily agenda145680
  5968. Node: Global TODO list148621
  5969. Node: Matching headline tags150893
  5970. Node: Timeline151964
  5971. Node: Stuck projects152630
  5972. Node: Presentation and sorting154481
  5973. Node: Categories155272
  5974. Node: Time-of-day specifications155936
  5975. Node: Sorting of agenda items157907
  5976. Node: Agenda commands159189
  5977. Node: Custom agenda views166343
  5978. Node: Storing searches167062
  5979. Node: Block agenda168974
  5980. Node: Setting Options170204
  5981. Node: Exporting Agenda Views172943
  5982. Ref: Exporting Agenda Views-Footnote-1177227
  5983. Ref: Exporting Agenda Views-Footnote-2177284
  5984. Node: Extracting Agenda Information for other programs177470
  5985. Node: Embedded LaTeX181596
  5986. Ref: Embedded LaTeX-Footnote-1182688
  5987. Node: Math symbols182878
  5988. Node: Subscripts and Superscripts183643
  5989. Node: LaTeX fragments184487
  5990. Ref: LaTeX fragments-Footnote-1186721
  5991. Node: Processing LaTeX fragments186983
  5992. Node: CDLaTeX mode187929
  5993. Ref: CDLaTeX mode-Footnote-1190413
  5994. Node: Exporting190561
  5995. Node: ASCII export191875
  5996. Node: HTML export193165
  5997. Node: Export commands193784
  5998. Node: Quoting HTML tags195028
  5999. Node: Links195658
  6000. Node: Images196355
  6001. Ref: Images-Footnote-1197226
  6002. Node: CSS support197287
  6003. Ref: CSS support-Footnote-1198606
  6004. Node: XOXO export198719
  6005. Node: iCalendar export199158
  6006. Node: Text interpretation200377
  6007. Node: Comment lines200968
  6008. Node: Initial text201363
  6009. Node: Footnotes203032
  6010. Node: Enhancing text203847
  6011. Ref: Enhancing text-Footnote-1205706
  6012. Node: Export options205796
  6013. Node: Publishing207689
  6014. Ref: Publishing-Footnote-1208485
  6015. Node: Configuration208681
  6016. Node: Project alist209399
  6017. Node: Sources and destinations210465
  6018. Node: Selecting files211195
  6019. Node: Publishing action211943
  6020. Node: Publishing options213176
  6021. Node: Publishing links215328
  6022. Node: Project page index216841
  6023. Node: Sample configuration217619
  6024. Node: Simple example218111
  6025. Node: Complex example218784
  6026. Node: Triggering publication220860
  6027. Node: Miscellaneous221545
  6028. Node: Completion222179
  6029. Node: Customization223650
  6030. Node: In-buffer settings224233
  6031. Node: The very busy C-c C-c key229109
  6032. Node: Clean view230753
  6033. Node: TTY keys233330
  6034. Node: Interaction234940
  6035. Node: Cooperation235337
  6036. Node: Conflicts238213
  6037. Node: Bugs240216
  6038. Node: Extensions and Hacking241712
  6039. Node: Extensions242308
  6040. Node: Tables in arbitrary syntax244255
  6041. Node: Radio tables245332
  6042. Node: A LaTeX example247835
  6043. Ref: A LaTeX example-Footnote-1251481
  6044. Ref: A LaTeX example-Footnote-2251629
  6045. Node: Translator functions252064
  6046. Ref: Translator functions-Footnote-1255173
  6047. Node: Dynamic blocks255261
  6048. Node: Special agenda views257233
  6049. Ref: Special agenda views-Footnote-1259512
  6050. Node: History and Acknowledgments259772
  6051. Node: Index265866
  6052. Node: Key Index298020
  6053. 
  6054. End Tag Table