org 280 KB

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