org 317 KB

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