org 271 KB

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