org 389 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131
  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 5.20).
  7. Copyright (C) 2004, 2005, 2006, 2007, 2008 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 5.20).
  23. Copyright (C) 2004, 2005, 2006, 2007, 2008 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. * Tags:: Tagging headlines and matching sets of tags
  41. * Properties and columns:: Storing information about an entry
  42. * Dates and times:: Making items useful for planning
  43. * Remember:: Quickly adding nodes to the outline tree
  44. * Agenda views:: Collecting information into views
  45. * Embedded LaTeX:: LaTeX fragments and formulas
  46. * Exporting:: Sharing and publishing of notes
  47. * Publishing:: Create a web site of linked Org-mode files
  48. * Miscellaneous:: All the rest which did not fit elsewhere
  49. * Extensions and Hacking:: It is possible to write add-on code
  50. * History and Acknowledgments:: How Org-mode came into being
  51. * Main Index::
  52. * Key Index:: Key bindings and where they are described
  53. --- The Detailed Node Listing ---
  54. Introduction
  55. * Summary:: Brief summary of what Org-mode does
  56. * Installation:: How to install a downloaded version of Org-mode
  57. * Activation:: How to activate Org-mode for certain buffers.
  58. * Feedback:: Bug reports, ideas, patches etc.
  59. * Conventions:: Type-setting conventions in the manual
  60. Document Structure
  61. * Outlines:: Org-mode is based on outline-mode
  62. * Headlines:: How to typeset org-tree headlines
  63. * Visibility cycling:: Show and hide, much simplified
  64. * Motion:: Jumping to other headlines
  65. * Structure editing:: Changing sequence and level of headlines
  66. * Archiving:: Move done task trees to a different place
  67. * Sparse trees:: Matches embedded in context
  68. * Plain lists:: Additional structure within an entry
  69. * Drawers:: Tucking stuff away
  70. * orgstruct-mode:: Structure editing outside Org-mode
  71. Archiving
  72. * ARCHIVE tag:: Marking a tree as inactive
  73. * Moving subtrees:: Moving a tree to an archive file
  74. Tables
  75. * Built-in table editor:: Simple tables
  76. * Narrow columns:: Stop wasting space in tables
  77. * Column groups:: Grouping to trigger vertical lines
  78. * orgtbl-mode:: The table editor as minor mode
  79. * The spreadsheet:: The table editor has spreadsheet capabilities.
  80. The spreadsheet
  81. * References:: How to refer to another field or range
  82. * Formula syntax for Calc:: Using Calc to compute stuff
  83. * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
  84. * Field formulas:: Formulas valid for a single field
  85. * Column formulas:: Formulas valid for an entire column
  86. * Editing and debugging formulas:: Fixing formulas
  87. * Updating the table:: Recomputing all dependent fields
  88. * Advanced features:: Field names, parameters and automatic recalc
  89. Hyperlinks
  90. * Link format:: How links in Org-mode are formatted
  91. * Internal links:: Links to other places in the current file
  92. * External links:: URL-like links to the world
  93. * Handling links:: Creating, inserting and following
  94. * Using links outside Org-mode:: Linking from my C source code?
  95. * Link abbreviations:: Shortcuts for writing complex links
  96. * Search options:: Linking to a specific location
  97. * Custom searches:: When the default search is not enough
  98. Internal links
  99. * Radio targets:: Make targets trigger links in plain text.
  100. TODO items
  101. * TODO basics:: Marking and displaying TODO entries
  102. * TODO extensions:: Workflow and assignments
  103. * Progress logging:: Dates and notes for progress
  104. * Priorities:: Some things are more important than others
  105. * Breaking down tasks:: Splitting a task into manageable pieces
  106. * Checkboxes:: Tick-off lists
  107. Extended use of TODO keywords
  108. * Workflow states:: From TODO to DONE in steps
  109. * TODO types:: I do this, Fred does the rest
  110. * Multiple sets in one file:: Mixing it all, and still finding your way
  111. * Fast access to TODO states:: Single letter selection of a state
  112. * Per-file keywords:: Different files, different requirements
  113. * Faces for TODO keywords:: Highlighting states
  114. Progress Logging
  115. * Closing items:: When was this entry marked DONE?
  116. * Tracking TODO state changes:: When did the status change?
  117. Tags
  118. * Tag inheritance:: Tags use the tree structure of the outline
  119. * Setting tags:: How to assign tags to a headline
  120. * Tag searches:: Searching for combinations of tags
  121. Properties and Columns
  122. * Property syntax:: How properties are spelled out
  123. * Special properties:: Access to other Org-mode features
  124. * Property searches:: Matching property values
  125. * Property inheritance:: Passing values down the tree
  126. * Column view:: Tabular viewing and editing
  127. * Property API:: Properties for Lisp programmers
  128. Column View
  129. * Defining columns:: The COLUMNS format property
  130. * Using column view:: How to create and use column view
  131. * Capturing Column View:: A dynamic block for column view
  132. Defining Columns
  133. * Scope of column definitions:: Where defined, where valid?
  134. * Column attributes:: Appearance and content of a column
  135. Dates and Times
  136. * Time stamps:: Assigning a time to a tree entry
  137. * Creating timestamps:: Commands which insert timestamps
  138. * Deadlines and scheduling:: Planning your work
  139. * Clocking work time::
  140. Creating timestamps
  141. * The date/time prompt:: How org-mode helps you entering date and time
  142. * Custom time format:: Making dates look differently
  143. Deadlines and Scheduling
  144. * Inserting deadline/schedule:: Planning items
  145. * Repeated tasks:: Items that show up again and again
  146. Remember
  147. * Setting up remember:: Some code for .emacs to get things going
  148. * Remember templates:: Define the outline of different note types
  149. * Storing notes:: Directly get the note to where it belongs
  150. * Refiling notes:: Moving a note or task to a project
  151. Agenda Views
  152. * Agenda files:: Files being searched for agenda information
  153. * Agenda dispatcher:: Keyboard access to agenda views
  154. * Built-in agenda views:: What is available out of the box?
  155. * Presentation and sorting:: How agenda items are prepared for display
  156. * Agenda commands:: Remote editing of org trees
  157. * Custom agenda views:: Defining special searches and views
  158. The built-in agenda views
  159. * Weekly/Daily agenda:: The calendar page with current tasks
  160. * Global TODO list:: All unfinished action items
  161. * Matching tags and properties:: Structured information with fine-tuned search
  162. * Timeline:: Time-sorted view for single file
  163. * Stuck projects:: Find projects you need to review
  164. Presentation and sorting
  165. * Categories:: Not all tasks are equal
  166. * Time-of-day specifications:: How the agenda knows the time
  167. * Sorting of agenda items:: The order of things
  168. Custom agenda views
  169. * Storing searches:: Type once, use often
  170. * Block agenda:: All the stuff you need in a single buffer
  171. * Setting Options:: Changing the rules
  172. * Exporting Agenda Views:: Writing agendas to files.
  173. * Extracting Agenda Information for other programs::
  174. Embedded LaTeX
  175. * Math symbols:: TeX macros for symbols and Greek letters
  176. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  177. * LaTeX fragments:: Complex formulas made easy
  178. * Processing LaTeX fragments:: Previewing LaTeX processing
  179. * CDLaTeX mode:: Speed up entering of formulas
  180. Exporting
  181. * ASCII export:: Exporting to plain ASCII
  182. * HTML export:: Exporting to HTML
  183. * LaTeX export:: Exporting to LaTeX
  184. * XOXO export:: Exporting to XOXO
  185. * iCalendar export:: Exporting in iCalendar format
  186. * Text interpretation:: How the exporter looks at the file
  187. HTML export
  188. * HTML Export commands:: How to invoke LaTeX export
  189. * Quoting HTML tags:: Using direct HTML in Org-mode
  190. * Links:: Transformation of links for HTML
  191. * Images:: How to include images
  192. * CSS support:: Changing the appearence of the output
  193. LaTeX export
  194. * LaTeX export commands:: How to invoke LaTeX export
  195. * Quoting LaTeX code:: Incorporating literal LaTeX code
  196. * Sectioning structure::
  197. Text interpretation by the exporter
  198. * Comment lines:: Some lines will not be exported
  199. * Initial text:: Text before the first headline
  200. * Footnotes:: Numbers like [1]
  201. * Quoted examples:: Inserting quoted chnuks of text
  202. * Enhancing text:: Subscripts, symbols and more
  203. * Export options:: How to influence the export settings
  204. Publishing
  205. * Configuration:: Defining projects
  206. * Sample configuration:: Example projects
  207. * Triggering publication:: Publication commands
  208. Configuration
  209. * Project alist:: The central configuration variable
  210. * Sources and destinations:: From here to there
  211. * Selecting files:: What files are part of the project?
  212. * Publishing action:: Setting the function doing the publishing
  213. * Publishing options:: Tweaking HTML export
  214. * Publishing links:: Which links keep working after publishing?
  215. * Project page index:: Publishing a list of project files
  216. Sample configuration
  217. * Simple example:: One-component publishing
  218. * Complex example:: A multi-component publishing example
  219. Miscellaneous
  220. * Completion:: M-TAB knows what you need
  221. * Customization:: Adapting Org-mode to your taste
  222. * In-buffer settings:: Overview of the #+KEYWORDS
  223. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  224. * Clean view:: Getting rid of leading stars in the outline
  225. * TTY keys:: Using Org-mode on a tty
  226. * Interaction:: Other Emacs packages
  227. * Bugs:: Things which do not work perfectly
  228. Interaction with other packages
  229. * Cooperation:: Packages Org-mode cooperates with
  230. * Conflicts:: Packages that lead to conflicts
  231. Extensions, Hooks and Hacking
  232. * Extensions:: Existing 3rd-part extensions
  233. * Adding hyperlink types:: New custom link types
  234. * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
  235. * Dynamic blocks:: Automatically filled blocks
  236. * Special agenda views:: Customized views
  237. * Using the property API:: Writing programs that use entry properties
  238. Tables and Lists in arbitrary syntax
  239. * Radio tables:: Sending and receiving
  240. * A LaTeX example:: Step by step, almost a tutorial
  241. * Translator functions:: Copy and modify
  242. * Radio lists:: Doing the same for lists.
  243. 
  244. File: org, Node: Introduction, Next: Document structure, Prev: Top, Up: Top
  245. 1 Introduction
  246. **************
  247. * Menu:
  248. * Summary:: Brief summary of what Org-mode does
  249. * Installation:: How to install a downloaded version of Org-mode
  250. * Activation:: How to activate Org-mode for certain buffers.
  251. * Feedback:: Bug reports, ideas, patches etc.
  252. * Conventions:: Type-setting conventions in the manual
  253. 
  254. File: org, Node: Summary, Next: Installation, Prev: Introduction, Up: Introduction
  255. 1.1 Summary
  256. ===========
  257. Org-mode is a mode for keeping notes, maintaining TODO lists, and doing
  258. project planning with a fast and effective plain-text system.
  259. Org-mode develops organizational tasks around NOTES files that
  260. contain lists or information about projects as plain text. Org-mode is
  261. implemented on top of outline-mode, which makes it possible to keep the
  262. content of large files well structured. Visibility cycling and
  263. structure editing help to work with the tree. Tables are easily created
  264. with a built-in table editor. Org-mode supports TODO items, deadlines,
  265. time stamps, and scheduling. It dynamically compiles entries into an
  266. agenda that utilizes and smoothly integrates much of the Emacs calendar
  267. and diary. Plain text URL-like links connect to websites, emails,
  268. Usenet messages, BBDB entries, and any files related to the projects.
  269. For printing and sharing of notes, an Org-mode file can be exported as a
  270. structured ASCII file, as HTML, or (TODO and agenda items only) as an
  271. iCalendar file. It can also serve as a publishing tool for a set of
  272. linked webpages.
  273. An important design aspect that distinguishes Org-mode from for
  274. example Planner/Muse is that it encourages to store every piece of
  275. information only once. In Planner, you have project pages, day pages
  276. and possibly other files, duplicating some information such as tasks.
  277. In Org-mode, you only have notes files. In your notes you mark entries
  278. as tasks, label them with tags and timestamps. All necessary lists
  279. like a schedule for the day, the agenda for a meeting, tasks lists
  280. selected by tags etc are created dynamically when you need them.
  281. Org-mode keeps simple things simple. When first fired up, it should
  282. feel like a straightforward, easy to use outliner. Complexity is not
  283. imposed, but a large amount of functionality is available when you need
  284. it. Org-mode is a toolbox and can be used in different ways, for
  285. example as:
  286. * outline extension with visibility cycling and structure editing
  287. * ASCII system and table editor for taking structured notes
  288. * ASCII table editor with spreadsheet-like capabilities
  289. * TODO list editor
  290. * full agenda and planner with deadlines and work scheduling
  291. * environment to implement David Allen's GTD system
  292. * a basic database application
  293. * simple hypertext system, with HTML and LaTeX export
  294. * publishing tool to create a set of interlinked webpages
  295. Org-mode's automatic, context sensitive table editor with spreadsheet
  296. capabilities can be integrated into any major mode by activating the
  297. minor Orgtbl-mode. Using a translation step, it can be used to maintain
  298. tables in arbitrary file types, for example in LaTeX. The structure
  299. editing and list creation capabilities can be used outside Org-mode with
  300. the minor Orgstruct-mode.
  301. There is a website for Org-mode which provides links to the newest
  302. version of Org-mode, as well as additional information, frequently asked
  303. questions (FAQ), links to tutorials etc. This page is located at
  304. `http://orgmode.org'.
  305. 
  306. File: org, Node: Installation, Next: Activation, Prev: Summary, Up: Introduction
  307. 1.2 Installation
  308. ================
  309. Important: If Org-mode is part of the Emacs distribution or an XEmacs
  310. package, please skip this section and go directly to *Note Activation::.
  311. If you have downloaded Org-mode from the Web, you must take the
  312. following steps to install it: Go into the Org-mode distribution
  313. directory and edit the top section of the file `Makefile'. You must
  314. set the name of the Emacs binary (likely either `emacs' or `xemacs'),
  315. and the paths to the directories where local Lisp and Info files are
  316. kept. If you don't have access to the system-wide directories, create
  317. your own two directories for these files, enter them into the Makefile,
  318. and make sure Emacs finds the Lisp files by adding the following line
  319. to `.emacs':
  320. (setq load-path (cons "~/path/to/lispdir" load-path))
  321. XEmacs users now need to install the file `noutline.el' from the
  322. `xemacs' subdirectory of the Org-mode distribution. Use the command:
  323. make install-noutline
  324. Now byte-compile and install the Lisp files with the shell commands:
  325. make
  326. make install
  327. If you want to install the info documentation, use this command:
  328. make install-info
  329. Then add to `.emacs':
  330. ;; This line only if org-mode is not part of the X/Emacs distribution.
  331. (require 'org-install)
  332. 
  333. File: org, Node: Activation, Next: Feedback, Prev: Installation, Up: Introduction
  334. 1.3 Activation
  335. ==============
  336. Add the following lines to your `.emacs' file. The last two lines
  337. define _global_ keys for the commands `org-store-link' and `org-agenda'
  338. - please choose suitable keys yourself.
  339. ;; The following lines are always needed. Choose your own keys.
  340. (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
  341. (global-set-key "\C-cl" 'org-store-link)
  342. (global-set-key "\C-ca" 'org-agenda)
  343. Furthermore, you must activate `font-lock-mode' in org-mode buffers,
  344. because significant functionality depends on font-locking being active.
  345. You can do this with either one of the following two lines (XEmacs
  346. user must use the second option):
  347. (global-font-lock-mode 1) ; for all buffers
  348. (add-hook 'org-mode-hook 'turn-on-font-lock) ; org-mode buffers only
  349. With this setup, all files with extension `.org' will be put into
  350. Org-mode. As an alternative, make the first line of a file look like
  351. this:
  352. MY PROJECTS -*- mode: org; -*-
  353. which will select Org-mode for this buffer no matter what the file's
  354. name is. See also the variable `org-insert-mode-line-in-empty-file'.
  355. 
  356. File: org, Node: Feedback, Next: Conventions, Prev: Activation, Up: Introduction
  357. 1.4 Feedback
  358. ============
  359. If you find problems with Org-mode, or if you have questions, remarks,
  360. or ideas about it, please contact the maintainer Carsten Dominik at
  361. <carsten at orgmode dot org>.
  362. For bug reports, please provide as much information as possible,
  363. including the version information of Emacs (`C-h v emacs-version
  364. <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
  365. Org-mode related setup in `.emacs'. If an error occurs, a backtrace
  366. can be very useful (see below on how to create one). Often a small
  367. example file helps, along with clear information about:
  368. 1. What exactly did you do?
  369. 2. What did you expect to happen?
  370. 3. What happened instead?
  371. Thank you for helping to improve this mode.
  372. How to create a useful backtrace
  373. ................................
  374. If working with Org-mode produces an error with a message you don't
  375. understand, you may have hit a bug. The best way to report this is by
  376. providing, in addition to what was mentioned above, a _Backtrace_.
  377. This is information from the built-in debugger about where and how the
  378. error occurred. Here is how to produce a useful backtrace:
  379. 1. Start a fresh Emacs or XEmacs, and make sure that it will load the
  380. original Lisp code in `org.el' instead of the compiled version in
  381. `org.elc'. The backtrace contains much more information if it is
  382. produced with uncompiled code. To do this, either rename `org.elc'
  383. to something else before starting Emacs, or ask Emacs explicitly
  384. to load `org.el' by using the command line
  385. emacs -l /path/to/org.el
  386. 2. Go to the `Options' menu and select `Enter Debugger on Error'
  387. (XEmacs has this option in the `Troubleshooting' sub-menu).
  388. 3. Do whatever you have to do to hit the error. Don't forget to
  389. document the steps you take.
  390. 4. When you hit the error, a `*Backtrace*' buffer will appear on the
  391. screen. Save this buffer to a file (for example using `C-x C-w')
  392. and attach it to your bug report.
  393. 
  394. File: org, Node: Conventions, Prev: Feedback, Up: Introduction
  395. 1.5 Typesetting conventions used in this manual
  396. ===============================================
  397. Org-mode uses three types of keywords: TODO keywords, tags, and property
  398. names. In this manual we use the following conventions:
  399. `TODO'
  400. `WAITING'
  401. TODO keywords are written with all capitals, even if they are
  402. user-defined.
  403. `boss'
  404. `ARCHIVE'
  405. User-defined tags are written in lowercase; built-in tags with
  406. special meaning are written with all capitals.
  407. `Release'
  408. `PRIORITY'
  409. User-defined properties are capitalized; built-in properties with
  410. special meaning are written with all capitals.
  411. 
  412. File: org, Node: Document structure, Next: Tables, Prev: Introduction, Up: Top
  413. 2 Document Structure
  414. ********************
  415. Org-mode is based on outline mode and provides flexible commands to
  416. edit the structure of the document.
  417. * Menu:
  418. * Outlines:: Org-mode is based on outline-mode
  419. * Headlines:: How to typeset org-tree headlines
  420. * Visibility cycling:: Show and hide, much simplified
  421. * Motion:: Jumping to other headlines
  422. * Structure editing:: Changing sequence and level of headlines
  423. * Archiving:: Move done task trees to a different place
  424. * Sparse trees:: Matches embedded in context
  425. * Plain lists:: Additional structure within an entry
  426. * Drawers:: Tucking stuff away
  427. * orgstruct-mode:: Structure editing outside Org-mode
  428. 
  429. File: org, Node: Outlines, Next: Headlines, Prev: Document structure, Up: Document structure
  430. 2.1 Outlines
  431. ============
  432. Org-mode is implemented on top of outline-mode. Outlines allow a
  433. document to be organized in a hierarchical structure, which (at least
  434. for me) is the best representation of notes and thoughts. An overview
  435. of this structure is achieved by folding (hiding) large parts of the
  436. document to show only the general document structure and the parts
  437. currently being worked on. Org-mode greatly simplifies the use of
  438. outlines by compressing the entire show/hide functionality into a single
  439. command `org-cycle', which is bound to the <TAB> key.
  440. 
  441. File: org, Node: Headlines, Next: Visibility cycling, Prev: Outlines, Up: Document structure
  442. 2.2 Headlines
  443. =============
  444. Headlines define the structure of an outline tree. The headlines in
  445. Org-mode start with one or more stars, on the left margin(1). For
  446. example:
  447. * Top level headline
  448. ** Second level
  449. *** 3rd level
  450. some text
  451. *** 3rd level
  452. more text
  453. * Another top level headline
  454. Some people find the many stars too noisy and would prefer an outline
  455. that has whitespace followed by a single star as headline starters.
  456. *Note Clean view:: describes a setup to realize this.
  457. An empty line after the end of a subtree is considered part of it and
  458. will be hidden when the subtree is folded. However, if you leave at
  459. least two empty lines, one empty line will remain visible after folding
  460. the subtree, in order to structure the collapsed view. See the
  461. variable `org-cycle-separator-lines' to modify this behavior.
  462. ---------- Footnotes ----------
  463. (1) See the variable `org-special-ctrl-a/e' to configure special
  464. behavior of `C-a' and `C-e' in headlines.
  465. 
  466. File: org, Node: Visibility cycling, Next: Motion, Prev: Headlines, Up: Document structure
  467. 2.3 Visibility cycling
  468. ======================
  469. Outlines make it possible to hide parts of the text in the buffer.
  470. Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
  471. the visibility in the buffer.
  472. `<TAB>'
  473. _Subtree cycling_: Rotate current subtree among the states
  474. ,-> FOLDED -> CHILDREN -> SUBTREE --.
  475. '-----------------------------------'
  476. The cursor must be on a headline for this to work(1). When the
  477. cursor is at the beginning of the buffer and the first line is not
  478. a headline, then <TAB> actually runs global cycling (see
  479. below)(2). Also when called with a prefix argument (`C-u <TAB>'),
  480. global cycling is invoked.
  481. `S-<TAB>'
  482. `C-u <TAB>'
  483. _Global cycling_: Rotate the entire buffer among the states
  484. ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
  485. '--------------------------------------'
  486. When `S-<TAB>' is called with a numerical prefix N, the CONTENTS
  487. view up to headlines of level N will be shown. Note that inside
  488. tables, `S-<TAB>' jumps to the previous field.
  489. `C-c C-a'
  490. Show all.
  491. `C-c C-r'
  492. Reveal context around point, showing the current entry, the
  493. following heading and the hierarchy above. Useful for working
  494. near a location that has been exposed by a sparse tree command
  495. (*note Sparse trees::) or an agenda command (*note Agenda
  496. commands::). With prefix arg show, on each
  497. level, all sibling headings.
  498. `C-c C-x b'
  499. Show the current subtree in an indirect buffer(3). With numerical
  500. prefix ARG, go up to this level and then take that tree. If ARG is
  501. negative, go up that many levels. With `C-u' prefix, do not remove
  502. the previously used indirect buffer.
  503. When Emacs first visits an Org-mode file, the global state is set to
  504. OVERVIEW, i.e. only the top level headlines are visible. This can be
  505. configured through the variable `org-startup-folded', or on a per-file
  506. basis by adding one of the following lines anywhere in the buffer:
  507. #+STARTUP: overview
  508. #+STARTUP: content
  509. #+STARTUP: showall
  510. ---------- Footnotes ----------
  511. (1) see, however, the option `org-cycle-emulate-tab'.
  512. (2) see the option `org-cycle-global-at-bob'.
  513. (3) The indirect buffer (*note Indirect Buffers: (emacs)Indirect
  514. Buffers.) will contain the entire buffer, but will be narrowed to the
  515. current tree. Editing the indirect buffer will also change the
  516. original buffer, but without affecting visibility in that buffer.
  517. 
  518. File: org, Node: Motion, Next: Structure editing, Prev: Visibility cycling, Up: Document structure
  519. 2.4 Motion
  520. ==========
  521. The following commands jump to other headlines in the buffer.
  522. `C-c C-n'
  523. Next heading.
  524. `C-c C-p'
  525. Previous heading.
  526. `C-c C-f'
  527. Next heading same level.
  528. `C-c C-b'
  529. Previous heading same level.
  530. `C-c C-u'
  531. Backward to higher level heading.
  532. `C-c C-j'
  533. Jump to a different place without changing the current outline
  534. visibility. Shows the document structure in a temporary buffer,
  535. where you can use the following keys to find your destination:
  536. <TAB> Cycle visibility.
  537. <down> / <up> Next/previous visible headline.
  538. n / p Next/previous visible headline.
  539. f / b Next/previous headline same level.
  540. u One level up.
  541. 0-9 Digit argument.
  542. <RET> Select this location.
  543. 
  544. File: org, Node: Structure editing, Next: Archiving, Prev: Motion, Up: Document structure
  545. 2.5 Structure editing
  546. =====================
  547. `M-<RET>'
  548. Insert new heading with same level as current. If the cursor is
  549. in a plain list item, a new item is created (*note Plain lists::).
  550. To force creation of a new headline, use a prefix arg, or first
  551. press <RET> to get to the beginning of the next line. When this
  552. command is used in the middle of a line, the line is split and the
  553. rest of the line becomes the new headline. If the command is used
  554. at the beginning of a headline, the new headline is created before
  555. the current line. If at the beginning of any other line, the
  556. content of that line is made the new heading. If the command is
  557. used at the end of a folded subtree (i.e. behind the ellipses at
  558. the end of a headline), then a headline like the current one will
  559. be inserted after the end of the subtree.
  560. `C-<RET>'
  561. Insert a new heading after the current subtree, same level as the
  562. current headline. This command works from anywhere in the entry.
  563. `M-S-<RET>'
  564. Insert new TODO entry with same level as current heading.
  565. `M-<left>'
  566. Promote current heading by one level.
  567. `M-<right>'
  568. Demote current heading by one level.
  569. `M-S-<left>'
  570. Promote the current subtree by one level.
  571. `M-S-<right>'
  572. Demote the current subtree by one level.
  573. `M-S-<up>'
  574. Move subtree up (swap with previous subtree of same level).
  575. `M-S-<down>'
  576. Move subtree down (swap with next subtree of same level).
  577. `C-c C-x C-w'
  578. `C-c C-x C-k'
  579. Kill subtree, i.e. remove it from buffer but save in kill ring.
  580. With prefix arg, kill N sequential subtrees.
  581. `C-c C-x M-w'
  582. Copy subtree to kill ring. With prefix arg, copy N sequential
  583. subtrees.
  584. `C-c C-x C-y'
  585. Yank subtree from kill ring. This does modify the level of the
  586. subtree to make sure the tree fits in nicely at the yank position.
  587. The yank level can also be specified with a prefix arg, or by
  588. yanking after a headline marker like `****'.
  589. `C-c C-w'
  590. Refile entry to a different location. *Note Refiling notes::.
  591. `C-c ^'
  592. Sort same-level entries. When there is an active region, all
  593. entries in the region will be sorted. Otherwise the children of
  594. the current headline are sorted. The command prompts for the
  595. sorting method, which can be alphabetically, numerically, by time
  596. (using the first time stamp in each entry), by priority, and each
  597. of these in reverse order. You can also supply your own function
  598. to extract the sorting key. With a `C-u' prefix, sorting will be
  599. case-sensitive. With two `C-u C-u' prefixes, duplicate entries
  600. will also be removed.
  601. When there is an active region (transient-mark-mode), promotion and
  602. demotion work on all headlines in the region. To select a region of
  603. headlines, it is best to place both point and mark at the beginning of a
  604. line, mark at the beginning of the first headline, and point at the line
  605. just after the last headline to change. Note that when the cursor is
  606. inside a table (*note Tables::), the Meta-Cursor keys have different
  607. functionality.
  608. 
  609. File: org, Node: Archiving, Next: Sparse trees, Prev: Structure editing, Up: Document structure
  610. 2.6 Archiving
  611. =============
  612. When a project represented by a (sub)tree is finished, you may want to
  613. move the tree out of the way and to stop it from contributing to the
  614. agenda. Org-mode knows two ways of archiving. You can mark a tree with
  615. the ARCHIVE tag, or you can move an entire (sub)tree to a different
  616. location.
  617. * Menu:
  618. * ARCHIVE tag:: Marking a tree as inactive
  619. * Moving subtrees:: Moving a tree to an archive file
  620. 
  621. File: org, Node: ARCHIVE tag, Next: Moving subtrees, Prev: Archiving, Up: Archiving
  622. 2.6.1 The ARCHIVE tag
  623. ---------------------
  624. A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
  625. its location in the outline tree, but behaves in the following way:
  626. - It does not open when you attempt to do so with a visibility
  627. cycling command (*note Visibility cycling::). You can force
  628. cycling archived subtrees with `C-<TAB>', or by setting the option
  629. `org-cycle-open-archived-trees'. Also normal outline commands like
  630. `show-all' will open archived subtrees.
  631. - During sparse tree construction (*note Sparse trees::), matches in
  632. archived subtrees are not exposed, unless you configure the option
  633. `org-sparse-tree-open-archived-trees'.
  634. - During agenda view construction (*note Agenda views::), the
  635. content of archived trees is ignored unless you configure the
  636. option `org-agenda-skip-archived-trees'.
  637. - Archived trees are not exported (*note Exporting::), only the
  638. headline is. Configure the details using the variable
  639. `org-export-with-archived-trees'.
  640. The following commands help managing the ARCHIVE tag:
  641. `C-c C-x C-a'
  642. Toggle the ARCHIVE tag for the current headline. When the tag is
  643. set, the headline changes to a shadowish face, and the subtree
  644. below it is hidden.
  645. `C-u C-c C-x C-a'
  646. Check if any direct children of the current headline should be
  647. archived. To do this, each subtree is checked for open TODO
  648. entries. If none are found, the command offers to set the ARCHIVE
  649. tag for the child. If the cursor is _not_ on a headline when this
  650. command is invoked, the level 1 trees will be checked.
  651. `C-TAB'
  652. Cycle a tree even if it is tagged with ARCHIVE.
  653. 
  654. File: org, Node: Moving subtrees, Prev: ARCHIVE tag, Up: Archiving
  655. 2.6.2 Moving subtrees
  656. ---------------------
  657. Once an entire project is finished, you may want to move it to a
  658. different location, either in the current file, or even in a different
  659. file, the archive file.
  660. `C-c C-x C-s'
  661. Archive the subtree starting at the cursor position to the location
  662. given by `org-archive-location'. Context information that could be
  663. lost like the file name, the category, inherited tags, and the todo
  664. state will be store as properties in the entry.
  665. `C-u C-c C-x C-s'
  666. Check if any direct children of the current headline could be
  667. moved to the archive. To do this, each subtree is checked for
  668. open TODO entries. If none are found, the command offers to move
  669. it to the archive location. If the cursor is _not_ on a headline
  670. when this command is invoked, the level 1 trees will be checked.
  671. The default archive location is a file in the same directory as the
  672. current file, with the name derived by appending `_archive' to the
  673. current file name. For information and examples on how to change this,
  674. see the documentation string of the variable `org-archive-location'.
  675. There is also an in-buffer option for setting this variable, for
  676. example(1):
  677. #+ARCHIVE: %s_done::
  678. If you would like to have a special ARCHIVE location for a single entry
  679. or a (sub)tree, give the entry an `:ARCHIVE:' property with the
  680. location as the value (*note Properties and columns::).
  681. ---------- Footnotes ----------
  682. (1) For backward compatibility, the following also works: If there
  683. are several such lines in a file, each specifies the archive location
  684. for the text below it. The first such line also applies to any text
  685. before its definition. However, using this method is _strongly_
  686. deprecated as it is incompatible with the outline structure of the
  687. document. The correct method for setting multiple archive locations in
  688. a buffer is using a property.
  689. 
  690. File: org, Node: Sparse trees, Next: Plain lists, Prev: Archiving, Up: Document structure
  691. 2.7 Sparse trees
  692. ================
  693. An important feature of Org-mode is the ability to construct _sparse
  694. trees_ for selected information in an outline tree, so that the entire
  695. document is folded as much as possible, but the selected information is
  696. made visible along with the headline structure above it(1). Just try
  697. it out and you will see immediately how it works.
  698. Org-mode contains several commands creating such trees, all these
  699. commands can be accessed through a dispatcher:
  700. `C-c /'
  701. This prompts for an extra key to select a sparse-tree creating
  702. command.
  703. `C-c / r'
  704. Occur. Prompts for a regexp and shows a sparse tree with all
  705. matches. If the match is in a headline, the headline is made
  706. visible. If the match is in the body of an entry, headline and
  707. body are made visible. In order to provide minimal context, also
  708. the full hierarchy of headlines above the match is shown, as well
  709. as the headline following the match. Each match is also
  710. highlighted; the highlights disappear when the buffer is changed
  711. by an editing command, or by pressing `C-c C-c'. When called with
  712. a `C-u' prefix argument, previous highlights are kept, so several
  713. calls to this command can be stacked.
  714. For frequently used sparse trees of specific search strings, you can
  715. use the variable `org-agenda-custom-commands' to define fast keyboard
  716. access to specific sparse trees. These commands will then be
  717. accessible through the agenda dispatcher (*note Agenda dispatcher::).
  718. For example:
  719. (setq org-agenda-custom-commands
  720. '(("f" occur-tree "FIXME")))
  721. will define the key `C-c a f' as a shortcut for creating a sparse tree
  722. matching the string `FIXME'.
  723. The other sparse tree commands select headings based on TODO
  724. keywords, tags, or properties and will be discussed later in this
  725. manual.
  726. To print a sparse tree, you can use the Emacs command
  727. `ps-print-buffer-with-faces' which does not print invisible parts of
  728. the document (2). Or you can use the command `C-c C-e v' to export
  729. only the visible part of the document and print the resulting file.
  730. ---------- Footnotes ----------
  731. (1) See also the variables `org-show-hierarchy-above',
  732. `org-show-following-heading', and `org-show-siblings' for detailed
  733. control on how much context is shown around each match.
  734. (2) This does not work under XEmacs, because XEmacs uses selective
  735. display for outlining, not text properties.
  736. 
  737. File: org, Node: Plain lists, Next: Drawers, Prev: Sparse trees, Up: Document structure
  738. 2.8 Plain lists
  739. ===============
  740. Within an entry of the outline tree, hand-formatted lists can provide
  741. additional structure. They also provide a way to create lists of
  742. checkboxes (*note Checkboxes::). Org-mode supports editing such lists,
  743. and the HTML exporter (*note Exporting::) parses and formats them.
  744. Org-mode knows ordered and unordered lists. Unordered list items
  745. start with `-', `+', or `*'(1) as bullets. Ordered list items start
  746. with a numeral followed by either a period or a right parenthesis, such
  747. as `1.' or `1)'. Items belonging to the same list must have the same
  748. indentation on the first line. In particular, if an ordered list
  749. reaches number `10.', then the 2-digit numbers must be written
  750. left-aligned with the other numbers in the list. Indentation also
  751. determines the end of a list item. It ends before the next line that
  752. is indented like the bullet/number, or less. Empty lines are part of
  753. the previous item, so you can have several paragraphs in one item. If
  754. you would like an empty line to terminate all currently open plain
  755. lists, configure the variable `org-empty-line-terminates-plain-lists'.
  756. Here is an example:
  757. ** Lord of the Rings
  758. My favorite scenes are (in this order)
  759. 1. The attack of the Rohirrim
  760. 2. Eowyns fight with the witch king
  761. + this was already my favorite scene in the book
  762. + I really like Miranda Otto.
  763. 3. Peter Jackson being shot by Legolas
  764. - on DVD only
  765. He makes a really funny face when it happens.
  766. But in the end, not individual scenes matter but the film as a whole.
  767. Org-mode supports these lists by tuning filling and wrapping
  768. commands to deal with them correctly(2).
  769. The following commands act on items when the cursor is in the first
  770. line of an item (the line with the bullet or number).
  771. `<TAB>'
  772. Items can be folded just like headline levels if you set the
  773. variable `org-cycle-include-plain-lists'. The level of an item is
  774. then given by the indentation of the bullet/number. Items are
  775. always subordinate to real headlines, however; the hierarchies
  776. remain completely separated.
  777. If `org-cycle-include-plain-lists' has not been set, <TAB> fixes
  778. the indentation of the curent line in a heuristic way.
  779. `M-<RET>'
  780. Insert new item at current level. With prefix arg, force a new
  781. heading (*note Structure editing::). If this command is used in
  782. the middle of a line, the line is _split_ and the rest of the line
  783. becomes the new item. If this command is executed in the
  784. _whitespace before a bullet or number_, the new item is created
  785. _before_ the current item. If the command is executed in the
  786. white space before the text that is part of an item but does not
  787. contain the bullet, a bullet is added to the current line.
  788. `M-S-<RET>'
  789. Insert a new item with a checkbox (*note Checkboxes::).
  790. `S-<up>'
  791. `S-<down>'
  792. Jump to the previous/next item in the current list.
  793. `M-S-<up>'
  794. `M-S-<down>'
  795. Move the item including subitems up/down (swap with previous/next
  796. item of same indentation). If the list is ordered, renumbering is
  797. automatic.
  798. `M-S-<left>'
  799. `M-S-<right>'
  800. Decrease/increase the indentation of the item, including subitems.
  801. Initially, the item tree is selected based on current indentation.
  802. When these commands are executed several times in direct
  803. succession, the initially selected region is used, even if the new
  804. indentation would imply a different hierarchy. To use the new
  805. hierarchy, break the command chain with a cursor motion or so.
  806. `C-c C-c'
  807. If there is a checkbox (*note Checkboxes::) in the item line,
  808. toggle the state of the checkbox. If not, this command makes sure
  809. that all the items on this list level use the same bullet.
  810. Furthermore, if this is an ordered list, make sure the numbering
  811. is ok.
  812. `C-c -'
  813. Cycle the entire list level through the different itemize/enumerate
  814. bullets (`-', `+', `*', `1.', `1)'). With prefix arg, select the
  815. nth bullet from this list.
  816. ---------- Footnotes ----------
  817. (1) When using `*' as a bullet, lines must be indented or they will
  818. be seen as top-level headlines. Also, when you are hiding leading
  819. stars to get a clean outline view, plain list items starting with a
  820. star are visually indistinguishable from true headlines. In short:
  821. even though `*' is supported, it may be better to not use it for plain
  822. list items.
  823. (2) Org-mode only changes the filling settings for Emacs. For
  824. XEmacs, you should use Kyle E. Jones' `filladapt.el'. To turn this on,
  825. put into `.emacs': `(require 'filladapt)'
  826. 
  827. File: org, Node: Drawers, Next: orgstruct-mode, Prev: Plain lists, Up: Document structure
  828. 2.9 Drawers
  829. ===========
  830. Sometimes you want to keep information associated with an entry, but you
  831. normally don't want to see it. For this, Org-mode has _drawers_.
  832. Drawers need to be configured with the variable `org-drawers'(1).
  833. Drawers look like this:
  834. ** This is a headline
  835. Still outside the drawer
  836. :DRAWERNAME:
  837. This is inside the drawer.
  838. :END:
  839. After the drawer.
  840. Visibility cycling (*note Visibility cycling::) on the headline will
  841. hide and show the entry, but keep the drawer collapsed to a single line.
  842. In order to look inside the drawer, you need to move the cursor to the
  843. drawer line and press <TAB> there. Org-mode uses a drawer for storing
  844. properties (*note Properties and columns::).
  845. ---------- Footnotes ----------
  846. (1) You can define drawers on a per-file basis with a line like
  847. `#+DRAWERS: HIDDEN PROPERTIES STATE'
  848. 
  849. File: org, Node: orgstruct-mode, Prev: Drawers, Up: Document structure
  850. 2.10 The Orgstruct minor mode
  851. =============================
  852. If you like the intuitive way the Org-mode structure editing and list
  853. formatting works, you might want to use these commands in other modes
  854. like text-mode or mail-mode as well. The minor mode Orgstruct-mode
  855. makes this possible. You can always toggle the mode with `M-x
  856. orgstruct-mode'. To turn it on by default, for example in mail mode,
  857. use
  858. (add-hook 'mail-mode-hook 'turn-on-orgstruct)
  859. When this mode is active and the cursor is on a line that looks to
  860. Org-mode like a headline of the first line of a list item, most
  861. structure editing commands will work, even if the same keys normally
  862. have different functionality in the major mode you are using. If the
  863. cursor is not in one of those special lines, Orgstruct-mode lurks
  864. silently in the shadow.
  865. 
  866. File: org, Node: Tables, Next: Hyperlinks, Prev: Document structure, Up: Top
  867. 3 Tables
  868. ********
  869. Org-mode comes with a fast and intuitive table editor. Spreadsheet-like
  870. calculations are supported in connection with the Emacs `calc' package
  871. (*note Calc: (calc)Top.).
  872. * Menu:
  873. * Built-in table editor:: Simple tables
  874. * Narrow columns:: Stop wasting space in tables
  875. * Column groups:: Grouping to trigger vertical lines
  876. * orgtbl-mode:: The table editor as minor mode
  877. * The spreadsheet:: The table editor has spreadsheet capabilities.
  878. 
  879. File: org, Node: Built-in table editor, Next: Narrow columns, Prev: Tables, Up: Tables
  880. 3.1 The built-in table editor
  881. =============================
  882. Org-mode makes it easy to format tables in plain ASCII. Any line with
  883. `|' as the first non-whitespace character is considered part of a
  884. table. `|' is also the column separator. A table might look like this:
  885. | Name | Phone | Age |
  886. |-------+-------+-----|
  887. | Peter | 1234 | 17 |
  888. | Anna | 4321 | 25 |
  889. A table is re-aligned automatically each time you press <TAB> or
  890. <RET> or `C-c C-c' inside the table. <TAB> also moves to the next
  891. field (<RET> to the next row) and creates new table rows at the end of
  892. the table or before horizontal lines. The indentation of the table is
  893. set by the first line. Any line starting with `|-' is considered as a
  894. horizontal separator line and will be expanded on the next re-align to
  895. span the whole table width. So, to create the above table, you would
  896. only type
  897. |Name|Phone|Age|
  898. |-
  899. and then press <TAB> to align the table and start filling in fields.
  900. When typing text into a field, Org-mode treats <DEL>, <Backspace>,
  901. and all character keys in a special way, so that inserting and deleting
  902. avoids shifting other fields. Also, when typing _immediately after the
  903. cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
  904. the field is automatically made blank. If this behavior is too
  905. unpredictable for you, configure the variables
  906. `org-enable-table-editor' and `org-table-auto-blank-field'.
  907. Creation and conversion
  908. .......................
  909. `C-c |'
  910. Convert the active region to table. If every line contains at
  911. least one TAB character, the function assumes that the material is
  912. tab separated. If every line contains a comma, comma-separated
  913. values (CSV) are assumed. If not, lines are split at whitespace
  914. into fields. You can use a prefix argument to force a specific
  915. separator: `C-u' forces CSV, `C-u C-u' forces TAB, and a numeric
  916. argument N indicates that at least N consequtive spaces, or
  917. alternatively a TAB will be the separator.
  918. If there is no active region, this command creates an empty
  919. Org-mode table. But it's easier just to start typing, like
  920. `|Name|Phone|Age <RET> |- <TAB>'.
  921. Re-aligning and field motion
  922. ............................
  923. `C-c C-c'
  924. Re-align the table without moving the cursor.
  925. `<TAB>'
  926. Re-align the table, move to the next field. Creates a new row if
  927. necessary.
  928. `S-<TAB>'
  929. Re-align, move to previous field.
  930. `<RET>'
  931. Re-align the table and move down to next row. Creates a new row if
  932. necessary. At the beginning or end of a line, <RET> still does
  933. NEWLINE, so it can be used to split a table.
  934. Column and row editing
  935. ......................
  936. `M-<left>'
  937. `M-<right>'
  938. Move the current column left/right.
  939. `M-S-<left>'
  940. Kill the current column.
  941. `M-S-<right>'
  942. Insert a new column to the left of the cursor position.
  943. `M-<up>'
  944. `M-<down>'
  945. Move the current row up/down.
  946. `M-S-<up>'
  947. Kill the current row or horizontal line.
  948. `M-S-<down>'
  949. Insert a new row above (with arg: below) the current row.
  950. `C-c -'
  951. Insert a horizontal line below current row. With prefix arg, the
  952. line is created above the current line.
  953. `C-c ^'
  954. Sort the table lines in the region. The position of point
  955. indicates the column to be used for sorting, and the range of
  956. lines is the range between the nearest horizontal separator lines,
  957. or the entire table. If point is before the first column, you
  958. will be prompted for the sorting column. If there is an active
  959. region, the mark specifies the first line and the sorting column,
  960. while point should be in the last line to be included into the
  961. sorting. The command prompts for the sorting type
  962. (alphabetically, numerically, or by time). When called with a
  963. prefix argument, alphabetic sorting will be case-sensitive.
  964. Regions
  965. .......
  966. `C-c C-x M-w'
  967. Copy a rectangular region from a table to a special clipboard.
  968. Point and mark determine edge fields of the rectangle. The
  969. process ignores horizontal separator lines.
  970. `C-c C-x C-w'
  971. Copy a rectangular region from a table to a special clipboard, and
  972. blank all fields in the rectangle. So this is the "cut" operation.
  973. `C-c C-x C-y'
  974. Paste a rectangular region into a table. The upper right corner
  975. ends up in the current field. All involved fields will be
  976. overwritten. If the rectangle does not fit into the present table,
  977. the table is enlarged as needed. The process ignores horizontal
  978. separator lines.
  979. `C-c C-q'
  980. Wrap several fields in a column like a paragraph. If there is an
  981. active region, and both point and mark are in the same column, the
  982. text in the column is wrapped to minimum width for the given
  983. number of lines. A prefix ARG may be used to change the number of
  984. desired lines. If there is no region, the current field is split
  985. at the cursor position and the text fragment to the right of the
  986. cursor is prepended to the field one line down. If there is no
  987. region, but you specify a prefix ARG, the current field is made
  988. blank, and the content is appended to the field above.
  989. Calculations
  990. ............
  991. `C-c +'
  992. Sum the numbers in the current column, or in the rectangle defined
  993. by the active region. The result is shown in the echo area and can
  994. be inserted with `C-y'.
  995. `S-<RET>'
  996. When current field is empty, copy from first non-empty field above.
  997. When not empty, copy current field down to next row and move cursor
  998. along with it. Depending on the variable
  999. `org-table-copy-increment', integer field values will be
  1000. incremented during copy. This key is also used by CUA-mode (*note
  1001. Cooperation::).
  1002. Miscellaneous
  1003. .............
  1004. `C-c `'
  1005. Edit the current field in a separate window. This is useful for
  1006. fields that are not fully visible (*note Narrow columns::). When
  1007. called with a `C-u' prefix, just make the full field visible, so
  1008. that it can be edited in place.
  1009. `M-x org-table-import'
  1010. Import a file as a table. The table should be TAB- or whitespace
  1011. separated. Useful, for example, to import a spreadsheet table or
  1012. data from a database, because these programs generally can write
  1013. TAB-separated text files. This command works by inserting the
  1014. file into the buffer and then converting the region to a table.
  1015. Any prefix argument is passed on to the converter, which uses it
  1016. to determine the separator.
  1017. `C-c |'
  1018. Tables can also be imported by pasting tabular text into the
  1019. org-mode buffer, selecting the pasted text with `C-x C-x' and then
  1020. using the `C-c |' command (see above under Creation and conversion.
  1021. `M-x org-table-export'
  1022. Export the table as a TAB-separated file. Useful for data
  1023. exchange with, for example, spreadsheet or database programs.
  1024. If you don't like the automatic table editor because it gets in your
  1025. way on lines which you would like to start with `|', you can turn it
  1026. off with
  1027. (setq org-enable-table-editor nil)
  1028. Then the only table command that still works is `C-c C-c' to do a
  1029. manual re-align.
  1030. 
  1031. File: org, Node: Narrow columns, Next: Column groups, Prev: Built-in table editor, Up: Tables
  1032. 3.2 Narrow columns
  1033. ==================
  1034. The width of columns is automatically determined by the table editor.
  1035. Sometimes a single field or a few fields need to carry more text,
  1036. leading to inconveniently wide columns. To limit(1) the width of a
  1037. column, one field anywhere in the column may contain just the string
  1038. `<N>' where `N' is an integer specifying the width of the column in
  1039. characters. The next re-align will then set the width of this column
  1040. to no more than this value.
  1041. |---+------------------------------| |---+--------|
  1042. | | | | | <6> |
  1043. | 1 | one | | 1 | one |
  1044. | 2 | two | ----\ | 2 | two |
  1045. | 3 | This is a long chunk of text | ----/ | 3 | This=> |
  1046. | 4 | four | | 4 | four |
  1047. |---+------------------------------| |---+--------|
  1048. Fields that are wider become clipped and end in the string `=>'. Note
  1049. that the full text is still in the buffer, it is only invisible. To
  1050. see the full text, hold the mouse over the field - a tool-tip window
  1051. will show the full content. To edit such a field, use the command `C-c
  1052. `' (that is `C-c' followed by the backquote). This will open a new
  1053. window with the full field. Edit it and finish with `C-c C-c'.
  1054. When visiting a file containing a table with narrowed columns, the
  1055. necessary character hiding has not yet happened, and the table needs to
  1056. be aligned before it looks nice. Setting the option
  1057. `org-startup-align-all-tables' will realign all tables in a file upon
  1058. visiting, but also slow down startup. You can also set this option on
  1059. a per-file basis with:
  1060. #+STARTUP: align
  1061. #+STARTUP: noalign
  1062. ---------- Footnotes ----------
  1063. (1) This feature does not work on XEmacs.
  1064. 
  1065. File: org, Node: Column groups, Next: orgtbl-mode, Prev: Narrow columns, Up: Tables
  1066. 3.3 Column groups
  1067. =================
  1068. When Org-mode exports tables, it does so by default without vertical
  1069. lines because that is visually more satisfying in general. Occasionally
  1070. however, vertical lines can be useful to structure a table into groups
  1071. of columns, much like horizontal lines can do for groups of rows. In
  1072. order to specify column groups, you can use a special row where the
  1073. first field contains only `/'. The further fields can either contain
  1074. `<' to indicate that this column should start a group, `>' to indicate
  1075. the end of a column, or `<>' to make a column a group of its own.
  1076. Boundaries between colum groups will upon export be marked with
  1077. vertical lines. Here is an example:
  1078. | | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
  1079. |---+----+-----+-----+-----+---------+------------|
  1080. | / | <> | < | | > | < | > |
  1081. | # | 1 | 1 | 1 | 1 | 1 | 1 |
  1082. | # | 2 | 4 | 8 | 16 | 1.4142 | 1.1892 |
  1083. | # | 3 | 9 | 27 | 81 | 1.7321 | 1.3161 |
  1084. |---+----+-----+-----+-----+---------+------------|
  1085. #+TBLFM: $3=$2^2::$4=$2^3::$5=$2^4::$6=sqrt($2)::$7=sqrt(sqrt(($2))
  1086. It is also sufficient to just insert the colum group starters after
  1087. every vertical line you'd like to have:
  1088. | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
  1089. |----+-----+-----+-----+---------+------------|
  1090. | / | < | | | < | |
  1091. 
  1092. File: org, Node: orgtbl-mode, Next: The spreadsheet, Prev: Column groups, Up: Tables
  1093. 3.4 The Orgtbl minor mode
  1094. =========================
  1095. If you like the intuitive way the Org-mode table editor works, you
  1096. might also want to use it in other modes like text-mode or mail-mode.
  1097. The minor mode Orgtbl-mode makes this possible. You can always toggle
  1098. the mode with `M-x orgtbl-mode'. To turn it on by default, for example
  1099. in mail mode, use
  1100. (add-hook 'mail-mode-hook 'turn-on-orgtbl)
  1101. Furthermore, with some special setup, it is possible to maintain
  1102. tables in arbitrary syntax with Orgtbl-mode. For example, it is
  1103. possible to construct LaTeX tables with the underlying ease and power of
  1104. Orgtbl-mode, including spreadsheet capabilities. For details, see
  1105. *Note Tables in arbitrary syntax::.
  1106. 
  1107. File: org, Node: The spreadsheet, Prev: orgtbl-mode, Up: Tables
  1108. 3.5 The spreadsheet
  1109. ===================
  1110. The table editor makes use of the Emacs `calc' package to implement
  1111. spreadsheet-like capabilities. It can also evaluate Emacs Lisp forms to
  1112. derive fields from other fields. While fully featured, Org-mode's
  1113. implementation is not identical to other spreadsheets. For example,
  1114. Org-mode knows the concept of a _column formula_ that will be applied
  1115. to all non-header fields in a column without having to copy the formula
  1116. to each relevant field.
  1117. * Menu:
  1118. * References:: How to refer to another field or range
  1119. * Formula syntax for Calc:: Using Calc to compute stuff
  1120. * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
  1121. * Field formulas:: Formulas valid for a single field
  1122. * Column formulas:: Formulas valid for an entire column
  1123. * Editing and debugging formulas:: Fixing formulas
  1124. * Updating the table:: Recomputing all dependent fields
  1125. * Advanced features:: Field names, parameters and automatic recalc
  1126. 
  1127. File: org, Node: References, Next: Formula syntax for Calc, Prev: The spreadsheet, Up: The spreadsheet
  1128. 3.5.1 References
  1129. ----------------
  1130. To compute fields in the table from other fields, formulas must
  1131. reference other fields or ranges. In Org-mode, fields can be referenced
  1132. by name, by absolute coordinates, and by relative coordinates. To find
  1133. out what the coordinates of a field are, press `C-c ?' in that field,
  1134. or press `C-c }' to toggle the display of a grid.
  1135. Field references
  1136. ................
  1137. Formulas can reference the value of another field in two ways. Like in
  1138. any other spreadsheet, you may reference fields with a letter/number
  1139. combination like `B3', meaning the 2nd field in the 3rd row.
  1140. Org-mode also uses another, more general operator that looks like this:
  1141. @row$column
  1142. Column references can be absolute like `1', `2',...`N', or relative to
  1143. the current column like `+1' or `-2'.
  1144. The row specification only counts data lines and ignores horizontal
  1145. separator lines (hlines). You can use absolute row numbers `1'...`N',
  1146. and row numbers relative to the current row like `+3' or `-1'. Or
  1147. specify the row relative to one of the hlines: `I' refers to the first
  1148. hline(1), `II' to the second etc. `-I' refers to the first such line
  1149. above the current line, `+I' to the first such line below the current
  1150. line. You can also write `III+2' which is the second data line after
  1151. the third hline in the table. Relative row numbers like `-3' will not
  1152. cross hlines if the current line is too close to the hline. Instead,
  1153. the value directly at the hline is used.
  1154. `0' refers to the current row and column. Also, if you omit either
  1155. the column or the row part of the reference, the current row/column is
  1156. implied.
  1157. Org-mode's references with _unsigned_ numbers are fixed references
  1158. in the sense that if you use the same reference in the formula for two
  1159. different fields, the same field will be referenced each time.
  1160. Org-mode's references with _signed_ numbers are floating references
  1161. because the same reference operator can reference different fields
  1162. depending on the field being calculated by the formula.
  1163. Here are a few examples:
  1164. @2$3 2nd row, 3rd column
  1165. C2 same as previous
  1166. $5 column 5 in the current row
  1167. E& same as previous
  1168. @2 current column, row 2
  1169. @-1$-3 the field one row up, three columns to the left
  1170. @-I$2 field just under hline above current row, column 2
  1171. Range references
  1172. ................
  1173. You may reference a rectangular range of fields by specifying two field
  1174. references connected by two dots `..'. If both fields are in the
  1175. current row, you may simply use `$2..$7', but if at least one field is
  1176. in a different row, you need to use the general `@row$column' format at
  1177. least for the first field (i.e the reference must start with `@' in
  1178. order to be interpreted correctly). Examples:
  1179. $1..$3 First three fields in the current row.
  1180. $P..$Q Range, using column names (see under Advanced)
  1181. @2$1..@4$3 6 fields between these two fields.
  1182. A2..C4 Same as above.
  1183. @-1$-2..@-1 3 numbers from the column to the left, 2 up to current row
  1184. Range references return a vector of values that can be fed into Calc
  1185. vector functions. Empty fields in ranges are normally suppressed, so
  1186. that the vector contains only the non-empty fields (but see the `E'
  1187. mode switch below). If there are no non-empty fields, `[0]' is
  1188. returned to avoid syntax errors in formulas.
  1189. Named references
  1190. ................
  1191. `$name' is interpreted as the name of a column, parameter or constant.
  1192. Constants are defined globally through the variable
  1193. `org-table-formula-constants', and locally (for the file) through a
  1194. line like
  1195. #+CONSTANTS: c=299792458. pi=3.14 eps=2.4e-6
  1196. Also properties (*note Properties and columns::) can be used as
  1197. constants in table formulas: For a property `:Xyz:' use the name
  1198. `$PROP_Xyz', and the property will be searched in the current outline
  1199. entry and in the hierarchy above it. If you have the `constants.el'
  1200. package, it will also be used to resolve constants, including natural
  1201. constants like `$h' for Planck's constant, and units like `$km' for
  1202. kilometers(2). Column names and parameters can be specified in special
  1203. table lines. These are described below, see *Note Advanced features::.
  1204. All names must start with a letter, and further consist of letters and
  1205. numbers.
  1206. ---------- Footnotes ----------
  1207. (1) Note that only hlines are counted that _separate_ table lines.
  1208. If the table starts with a hline above the header, it does not count.
  1209. (2) `Constant.el' can supply the values of constants in two
  1210. different unit systems, `SI' and `cgs'. Which one is used depends on
  1211. the value of the variable `constants-unit-system'. You can use the
  1212. `#+STARTUP' options `constSI' and `constcgs' to set this value for the
  1213. current buffer.
  1214. 
  1215. File: org, Node: Formula syntax for Calc, Next: Formula syntax for Lisp, Prev: References, Up: The spreadsheet
  1216. 3.5.2 Formula syntax for Calc
  1217. -----------------------------
  1218. A formula can be any algebraic expression understood by the Emacs
  1219. `Calc' package. Note that `calc' has the non-standard convention that
  1220. `/' has lower precedence than `*', so that `a/b*c' is interpreted as
  1221. `a/(b*c)'. Before evaluation by `calc-eval' (*note calc-eval:
  1222. (calc)Calling Calc from Your Programs.), variable substitution takes
  1223. place according to the rules described above. The range vectors can be
  1224. directly fed into the calc vector functions like `vmean' and `vsum'.
  1225. A formula can contain an optional mode string after a semicolon.
  1226. This string consists of flags to influence Calc and other modes during
  1227. execution. By default, Org-mode uses the standard calc modes (precision
  1228. 12, angular units degrees, fraction and symbolic modes off. The display
  1229. format, however, has been changed to `(float 5)' to keep tables
  1230. compact. The default settings can be configured using the variable
  1231. `org-calc-default-modes'.
  1232. p20 switch the internal precision to 20 digits
  1233. n3 s3 e2 f4 normal, scientific, engineering, or fixed display format
  1234. D R angle modes: degrees, radians
  1235. F S fraction and symbolic modes
  1236. N interpret all fields as numbers, use 0 for non-numbers
  1237. T force text interpretation
  1238. E keep empty fields in ranges
  1239. In addition, you may provide a `printf' format specifier to reformat
  1240. the final result. A few examples:
  1241. $1+$2 Sum of first and second field
  1242. $1+$2;%.2f Same, format result to two decimals
  1243. exp($2)+exp($1) Math functions can be used
  1244. $0;%.1f Reformat current cell to 1 decimal
  1245. ($3-32)*5/9 Degrees F -> C conversion
  1246. $c/$1/$cm Hz -> cm conversion, using `constants.el'
  1247. tan($1);Dp3s1 Compute in degrees, precision 3, display SCI 1
  1248. sin($1);Dp3%.1e Same, but use printf specifier for display
  1249. vmean($2..$7) Compute column range mean, using vector function
  1250. vmean($2..$7);EN Same, but treat empty fields as 0
  1251. taylor($3,x=7,2) taylor series of $3, at x=7, second degree
  1252. Calc also contains a complete set of logical operations. For example
  1253. if($1<20,teen,string("")) "teen" if age $1 less than 20, else empty
  1254. 
  1255. File: org, Node: Formula syntax for Lisp, Next: Field formulas, Prev: Formula syntax for Calc, Up: The spreadsheet
  1256. 3.5.3 Emacs Lisp forms as formulas
  1257. ----------------------------------
  1258. It is also possible to write a formula in Emacs Lisp; this can be useful
  1259. for string manipulation and control structures, if the Calc's
  1260. functionality is not enough. If a formula starts with a single quote
  1261. followed by an opening parenthesis, then it is evaluated as a lisp form.
  1262. The evaluation should return either a string or a number. Just as with
  1263. `calc' formulas, you can specify modes and a printf format after a
  1264. semicolon. With Emacs Lisp forms, you need to be concious about the way
  1265. field references are interpolated into the form. By default, a
  1266. reference will be interpolated as a Lisp string (in double quotes)
  1267. containing the field. If you provide the `N' mode switch, all
  1268. referenced elements will be numbers (non-number fields will be zero) and
  1269. interpolated as Lisp numbers, without quotes. If you provide the `L'
  1270. flag, all fields will be interpolated literally, without quotes. I.e.,
  1271. if you want a reference to be interpreted as a string by the Lisp form,
  1272. enclode the reference operator itself in double quotes, like `"$3"'.
  1273. Ranges are inserted as space-separated fields, so you can embed them in
  1274. list or vector syntax. A few examples, note how the `N' mode is used
  1275. when we do computations in lisp.
  1276. Swap the first two characters of the content of column 1
  1277. '(concat (substring $1 1 2) (substring $1 0 1) (substring $1 2))
  1278. Add columns 1 and 2, equivalent to the Calc's `$1+$2'
  1279. '(+ $1 $2);N
  1280. Compute the sum of columns 1-4, like Calc's `vsum($1..$4)'
  1281. '(apply '+ '($1..$4));N
  1282. 
  1283. File: org, Node: Field formulas, Next: Column formulas, Prev: Formula syntax for Lisp, Up: The spreadsheet
  1284. 3.5.4 Field formulas
  1285. --------------------
  1286. To assign a formula to a particular field, type it directly into the
  1287. field, preceded by `:=', for example `:=$1+$2'. When you press <TAB>
  1288. or <RET> or `C-c C-c' with the cursor still in the field, the formula
  1289. will be stored as the formula for this field, evaluated, and the
  1290. current field replaced with the result.
  1291. Formulas are stored in a special line starting with `#+TBLFM:'
  1292. directly below the table. If you typed the equation in the 4th field of
  1293. the 3rd data line in the table, the formula will look like
  1294. `@3$4=$1+$2'. When inserting/deleting/swapping column and rows with
  1295. the appropriate commands, absolute references (but not relative ones)
  1296. in stored formulas are modified in order to still reference the same
  1297. field. Of cause this is not true if you edit the table structure with
  1298. normal editing commands - then you must fix the equations yourself.
  1299. Instead of typing an equation into the field, you may also use the
  1300. following command
  1301. `C-u C-c ='
  1302. Install a new formula for the current field. The command prompts
  1303. for a formula, with default taken from the `#+TBLFM:' line, applies
  1304. it to the current field and stores it.
  1305. 
  1306. File: org, Node: Column formulas, Next: Editing and debugging formulas, Prev: Field formulas, Up: The spreadsheet
  1307. 3.5.5 Column formulas
  1308. ---------------------
  1309. Often in a table, the same formula should be used for all fields in a
  1310. particular column. Instead of having to copy the formula to all fields
  1311. in that column, org-mode allows to assign a single formula to an entire
  1312. column. If the table contains horizontal separator hlines, everything
  1313. before the first such line is considered part of the table _header_ and
  1314. will not be modified by column formulas.
  1315. To assign a formula to a column, type it directly into any field in
  1316. the column, preceded by an equal sign, like `=$1+$2'. When you press
  1317. <TAB> or <RET> or `C-c C-c' with the cursor still in the field, the
  1318. formula will be stored as the formula for the current column, evaluated
  1319. and the current field replaced with the result. If the field contains
  1320. only `=', the previously stored formula for this column is used. For
  1321. each column, Org-mode will only remember the most recently used
  1322. formula. In the `TBLFM:' line, column formulas will look like
  1323. `$4=$1+$2'.
  1324. Instead of typing an equation into the field, you may also use the
  1325. following command:
  1326. `C-c ='
  1327. Install a new formula for the current column and replace current
  1328. field with the result of the formula. The command prompts for a
  1329. formula, with default taken from the `#+TBLFM' line, applies it to
  1330. the current field and stores it. With a numerical prefix (e.g.
  1331. `C-5 C-c =') will apply it to that many consecutive fields in the
  1332. current column.
  1333. 
  1334. File: org, Node: Editing and debugging formulas, Next: Updating the table, Prev: Column formulas, Up: The spreadsheet
  1335. 3.5.6 Editing and Debugging formulas
  1336. ------------------------------------
  1337. You can edit individual formulas in the minibuffer or directly in the
  1338. field. Org-mode can also prepare a special buffer with all active
  1339. formulas of a table. When offering a formula for editing, Org-mode
  1340. converts references to the standard format (like `B3' or `D&') if
  1341. possible. If you prefer to only work with the internal format (like
  1342. `@3$2' or `$4'), configure the variable
  1343. `org-table-use-standard-references'.
  1344. `C-c ='
  1345. `C-u C-c ='
  1346. Edit the formula associated with the current column/field in the
  1347. minibuffer. See *Note Column formulas:: and *Note Field
  1348. formulas::.
  1349. `C-u C-u C-c ='
  1350. Re-insert the active formula (either a field formula, or a column
  1351. formula) into the current field, so that you can edit it directly
  1352. in the field. The advantage over editing in the minibuffer is
  1353. that you can use the command `C-c ?'.
  1354. `C-c ?'
  1355. While editing a formula in a table field, highlight the field(s)
  1356. referenced by the reference at the cursor position in the formula.
  1357. `C-c }'
  1358. Toggle the display of row and column numbers for a table, using
  1359. overlays. These are updated each time the table is aligned, you
  1360. can force it with `C-c C-c'.
  1361. `C-c {'
  1362. Toggle the formula debugger on and off. See below.
  1363. `C-c ''
  1364. Edit all formulas for the current table in a special buffer, where
  1365. the formulas will be displayed one per line. If the current field
  1366. has an active formula, the cursor in the formula editor will mark
  1367. it. While inside the special buffer, Org-mode will automatically
  1368. highlight any field or range reference at the cursor position.
  1369. You may edit, remove and add formulas, and use the following
  1370. commands:
  1371. `C-c C-c'
  1372. `C-x C-s'
  1373. Exit the formula editor and store the modified formulas.
  1374. With `C-u' prefix, also apply the new formulas to the entire
  1375. table.
  1376. `C-c C-q'
  1377. Exit the formula editor without installing changes.
  1378. `C-c C-r'
  1379. Toggle all references in the formula editor between standard
  1380. (like `B3') and internal (like `@3$2').
  1381. `<TAB>'
  1382. Pretty-print or indent lisp formula at point. When in a line
  1383. containing a lisp formula, format the formula according to
  1384. Emacs Lisp rules. Another <TAB> collapses the formula back
  1385. again. In the open formula, <TAB> re-indents just like in
  1386. Emacs-lisp-mode.
  1387. `M-<TAB>'
  1388. Complete Lisp symbols, just like in Emacs-lisp-mode.
  1389. `S-<up>/<down>/<left>/<right>'
  1390. Shift the reference at point. For example, if the reference
  1391. is `B3' and you press `S-<right>', it will become `C3'. This
  1392. also works for relative references, and for hline references.
  1393. `M-S-<up>/<down>'
  1394. Move the test line for column formulas in the Org-mode buffer
  1395. up and down.
  1396. `M-<up>/<down>'
  1397. Scroll the window displaying the table.
  1398. `C-c }'
  1399. Turn the coordinate grid in the table on and off.
  1400. Making a table field blank does not remove the formula associated
  1401. with the field, because that is stored in a different line (the `TBLFM'
  1402. line) - during the next recalculation the field will be filled again.
  1403. To remove a formula from a field, you have to give an empty reply when
  1404. prompted for the formula, or to edit the `#+TBLFM' line.
  1405. You may edit the `#+TBLFM' directly and re-apply the changed
  1406. equations with `C-c C-c' in that line, or with the normal recalculation
  1407. commands in the table.
  1408. Debugging formulas
  1409. ..................
  1410. When the evaluation of a formula leads to an error, the field content
  1411. becomes the string `#ERROR'. If you would like see what is going on
  1412. during variable substitution and calculation in order to find a bug,
  1413. turn on formula debugging in the `Tbl' menu and repeat the calculation,
  1414. for example by pressing `C-u C-u C-c = <RET>' in a field. Detailed
  1415. information will be displayed.
  1416. 
  1417. File: org, Node: Updating the table, Next: Advanced features, Prev: Editing and debugging formulas, Up: The spreadsheet
  1418. 3.5.7 Updating the Table
  1419. ------------------------
  1420. Recalculation of a table is normally not automatic, but needs to be
  1421. triggered by a command. See *Note Advanced features:: for a way to make
  1422. recalculation at least semi-automatically.
  1423. In order to recalculate a line of a table or the entire table, use
  1424. the following commands:
  1425. `C-c *'
  1426. Recalculate the current row by first applying the stored column
  1427. formulas from left to right, and all field formulas in the current
  1428. row.
  1429. `C-u C-c *'
  1430. `C-u C-c C-c'
  1431. Recompute the entire table, line by line. Any lines before the
  1432. first hline are left alone, assuming that these are part of the
  1433. table header.
  1434. `C-u C-u C-c *'
  1435. `C-u C-u C-c C-c'
  1436. Iterate the table by recomputing it until no further changes occur.
  1437. This may be necessary if some computed fields use the value of
  1438. other fields that are computed later in the calculation sequence.
  1439. 
  1440. File: org, Node: Advanced features, Prev: Updating the table, Up: The spreadsheet
  1441. 3.5.8 Advanced features
  1442. -----------------------
  1443. If you want the recalculation of fields to happen automatically, or if
  1444. you want to be able to assign names to fields and columns, you need to
  1445. reserve the first column of the table for special marking characters.
  1446. `C-#'
  1447. Rotate the calculation mark in first column through the states `',
  1448. `#', `*', `!', `$'. The meaning of these characters is discussed
  1449. below. When there is an active region, change all marks in the
  1450. region.
  1451. Here is an example of a table that collects exam results of students
  1452. and makes use of these features:
  1453. |---+---------+--------+--------+--------+-------+------|
  1454. | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
  1455. |---+---------+--------+--------+--------+-------+------|
  1456. | ! | | P1 | P2 | P3 | Tot | |
  1457. | # | Maximum | 10 | 15 | 25 | 50 | 10.0 |
  1458. | ^ | | m1 | m2 | m3 | mt | |
  1459. |---+---------+--------+--------+--------+-------+------|
  1460. | # | Peter | 10 | 8 | 23 | 41 | 8.2 |
  1461. | # | Sara | 6 | 14 | 19 | 39 | 7.8 |
  1462. | # | Sam | 2 | 4 | 3 | 9 | 1.8 |
  1463. |---+---------+--------+--------+--------+-------+------|
  1464. | | Average | | | | 29.7 | |
  1465. | ^ | | | | | at | |
  1466. | $ | max=50 | | | | | |
  1467. |---+---------+--------+--------+--------+-------+------|
  1468. #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-II..@-I);%.1f
  1469. Important: Please note that for these special tables, recalculating the
  1470. table with `C-u C-c *' will only affect rows that are marked `#' or
  1471. `*', and fields that have a formula assigned to the field itself. The
  1472. column formulas are not applied in rows with empty first field.
  1473. The marking characters have the following meaning:
  1474. `!'
  1475. The fields in this line define names for the columns, so that you
  1476. may refer to a column as `$Tot' instead of `$6'.
  1477. `^'
  1478. This row defines names for the fields _above_ the row. With such
  1479. a definition, any formula in the table may use `$m1' to refer to
  1480. the value `10'. Also, if you assign a formula to a names field, it
  1481. will be stored as `$name=...'.
  1482. `_'
  1483. Similar to `^', but defines names for the fields in the row
  1484. _below_.
  1485. `$'
  1486. Fields in this row can define _parameters_ for formulas. For
  1487. example, if a field in a `$' row contains `max=50', then formulas
  1488. in this table can refer to the value 50 using `$max'. Parameters
  1489. work exactly like constants, only that they can be defined on a
  1490. per-table basis.
  1491. `#'
  1492. Fields in this row are automatically recalculated when pressing
  1493. <TAB> or <RET> or `S-<TAB>' in this row. Also, this row is
  1494. selected for a global recalculation with `C-u C-c *'. Unmarked
  1495. lines will be left alone by this command.
  1496. `*'
  1497. Selects this line for global recalculation with `C-u C-c *', but
  1498. not for automatic recalculation. Use this when automatic
  1499. recalculation slows down editing too much.
  1500. `'
  1501. Unmarked lines are exempt from recalculation with `C-u C-c *'.
  1502. All lines that should be recalculated should be marked with `#' or
  1503. `*'.
  1504. `/'
  1505. Do not export this line. Useful for lines that contain the
  1506. narrowing `<N>' markers.
  1507. Finally, just to whet your appetite on what can be done with the
  1508. fantastic `calc' package, here is a table that computes the Taylor
  1509. series of degree `n' at location `x' for a couple of functions
  1510. (homework: try that with Excel :-)
  1511. |---+-------------+---+-----+--------------------------------------|
  1512. | | Func | n | x | Result |
  1513. |---+-------------+---+-----+--------------------------------------|
  1514. | # | exp(x) | 1 | x | 1 + x |
  1515. | # | exp(x) | 2 | x | 1 + x + x^2 / 2 |
  1516. | # | exp(x) | 3 | x | 1 + x + x^2 / 2 + x^3 / 6 |
  1517. | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
  1518. | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2 |
  1519. | * | tan(x) | 3 | x | 0.0175 x + 1.77e-6 x^3 |
  1520. |---+-------------+---+-----+--------------------------------------|
  1521. #+TBLFM: $5=taylor($2,$4,$3);n3
  1522. 
  1523. File: org, Node: Hyperlinks, Next: TODO items, Prev: Tables, Up: Top
  1524. 4 Hyperlinks
  1525. ************
  1526. Like HTML, Org-mode provides links inside a file, external links to
  1527. other files, Usenet articles, emails, and much more.
  1528. * Menu:
  1529. * Link format:: How links in Org-mode are formatted
  1530. * Internal links:: Links to other places in the current file
  1531. * External links:: URL-like links to the world
  1532. * Handling links:: Creating, inserting and following
  1533. * Using links outside Org-mode:: Linking from my C source code?
  1534. * Link abbreviations:: Shortcuts for writing complex links
  1535. * Search options:: Linking to a specific location
  1536. * Custom searches:: When the default search is not enough
  1537. 
  1538. File: org, Node: Link format, Next: Internal links, Prev: Hyperlinks, Up: Hyperlinks
  1539. 4.1 Link format
  1540. ===============
  1541. Org-mode will recognize plain URL-like links and activate them as
  1542. clickable links. The general link format, however, looks like this:
  1543. [[link][description]] or alternatively [[link]]
  1544. Once a link in the buffer is complete (all brackets present),
  1545. Org-mode will change the display so that `description' is displayed
  1546. instead of `[[link][description]]' and `link' is displayed instead of
  1547. `[[link]]'. Links will be highlighted in the face `org-link', which by
  1548. default is an underlined face. You can directly edit the visible part
  1549. of a link. Note that this can be either the `link' part (if there is
  1550. no description) or the `description' part. To edit also the invisible
  1551. `link' part, use `C-c C-l' with the cursor on the link.
  1552. If you place the cursor at the beginning or just behind the end of
  1553. the displayed text and press <BACKSPACE>, you will remove the
  1554. (invisible) bracket at that location. This makes the link incomplete
  1555. and the internals are again displayed as plain text. Inserting the
  1556. missing bracket hides the link internals again. To show the internal
  1557. structure of all links, use the menu entry `Org->Hyperlinks->Literal
  1558. links'.
  1559. 
  1560. File: org, Node: Internal links, Next: External links, Prev: Link format, Up: Hyperlinks
  1561. 4.2 Internal links
  1562. ==================
  1563. If the link does not look like a URL, it is considered to be internal in
  1564. the current file. Links such as `[[My Target]]' or `[[My Target][Find
  1565. my target]]' lead to a text search in the current file. The link can
  1566. be followed with `C-c C-o' when the cursor is on the link, or with a
  1567. mouse click (*note Handling links::). The preferred match for such a
  1568. link is a dedicated target: the same string in double angular brackets.
  1569. Targets may be located anywhere; sometimes it is convenient to put
  1570. them into a comment line. For example
  1571. # <<My Target>>
  1572. In HTML export (*note HTML export::), such targets will become named
  1573. anchors for direct access through `http' links(1).
  1574. If no dedicated target exists, Org-mode will search for the words in
  1575. the link. In the above example the search would be for `my target'.
  1576. Links starting with a star like `*My Target' restrict the search to
  1577. headlines. When searching, Org-mode will first try an exact match, but
  1578. then move on to more and more lenient searches. For example, the link
  1579. `[[*My Targets]]' will find any of the following:
  1580. ** My targets
  1581. ** TODO my targets are bright
  1582. ** my 20 targets are
  1583. To insert a link targeting a headline, in-buffer completion can be
  1584. used. Just type a star followed by a few optional letters into the
  1585. buffer and press `M-<TAB>'. All headlines in the current buffer will be
  1586. offered as completions. *Note Handling links::, for more commands
  1587. creating links.
  1588. Following a link pushes a mark onto Org-mode's own mark ring. You
  1589. can return to the previous position with `C-c &'. Using this command
  1590. several times in direct succession goes back to positions recorded
  1591. earlier.
  1592. * Menu:
  1593. * Radio targets:: Make targets trigger links in plain text.
  1594. ---------- Footnotes ----------
  1595. (1) Note that text before the first headline is usually not
  1596. exported, so the first such target should be after the first headline.
  1597. 
  1598. File: org, Node: Radio targets, Prev: Internal links, Up: Internal links
  1599. 4.2.1 Radio targets
  1600. -------------------
  1601. Org-mode can automatically turn any occurrences of certain target names
  1602. in normal text into a link. So without explicitly creating a link, the
  1603. text connects to the target radioing its position. Radio targets are
  1604. enclosed by triple angular brackets. For example, a target `<<<My
  1605. Target>>>' causes each occurrence of `my target' in normal text to
  1606. become activated as a link. The Org-mode file is scanned automatically
  1607. for radio targets only when the file is first loaded into Emacs. To
  1608. update the target list during editing, press `C-c C-c' with the cursor
  1609. on or at a target.
  1610. 
  1611. File: org, Node: External links, Next: Handling links, Prev: Internal links, Up: Hyperlinks
  1612. 4.3 External links
  1613. ==================
  1614. Org-mode supports links to files, websites, Usenet and email messages,
  1615. and BBDB database entries. External links are URL-like locators. They
  1616. start with a short identifying string followed by a colon. There can be
  1617. no space after the colon. The following list shows examples for each
  1618. link type.
  1619. http://www.astro.uva.nl/~dominik on the web
  1620. file:/home/dominik/images/jupiter.jpg file, absolute path
  1621. file:papers/last.pdf file, relative path
  1622. news:comp.emacs Usenet link
  1623. mailto:adent@galaxy.net Mail link
  1624. vm:folder VM folder link
  1625. vm:folder#id VM message link
  1626. vm://myself@some.where.org/folder#id VM on remote machine
  1627. wl:folder WANDERLUST folder link
  1628. wl:folder#id WANDERLUST message link
  1629. mhe:folder MH-E folder link
  1630. mhe:folder#id MH-E message link
  1631. rmail:folder RMAIL folder link
  1632. rmail:folder#id RMAIL message link
  1633. gnus:group GNUS group link
  1634. gnus:group#id GNUS article link
  1635. bbdb:Richard Stallman BBDB link
  1636. shell:ls *.org A shell command
  1637. elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
  1638. A link should be enclosed in double brackets and may contain a
  1639. descriptive text to be displayed instead of the url (*note Link
  1640. format::), for example:
  1641. [[http://www.gnu.org/software/emacs/][GNU Emacs]]
  1642. If the description is a file name or URL that points to an image, HTML
  1643. export (*note HTML export::) will inline the image as a clickable
  1644. button. If there is no description at all and the link points to an
  1645. image, that image will be inlined into the exported HTML file.
  1646. Org-mode also finds external links in the normal text and activates
  1647. them as links. If spaces must be part of the link (for example in
  1648. `bbdb:Richard Stallman'), or if you need to remove ambiguities about
  1649. the end of the link, enclose them in angular brackets.
  1650. 
  1651. File: org, Node: Handling links, Next: Using links outside Org-mode, Prev: External links, Up: Hyperlinks
  1652. 4.4 Handling links
  1653. ==================
  1654. Org-mode provides methods to create a link in the correct syntax, to
  1655. insert it into an org-mode file, and to follow the link.
  1656. `C-c l'
  1657. Store a link to the current location. This is a _global_ command
  1658. which can be used in any buffer to create a link. The link will be
  1659. stored for later insertion into an Org-mode buffer (see below).
  1660. For Org-mode files, if there is a `<<target>>' at the cursor, the
  1661. link points to the target. Otherwise it points to the current
  1662. headline. For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
  1663. the link will indicate the current article/entry. For W3 and W3M
  1664. buffers, the link goes to the current URL. For any other files,
  1665. the link will point to the file, with a search string (*note
  1666. Search options::) pointing to the contents of the current line.
  1667. If there is an active region, the selected words will form the
  1668. basis of the search string. If the automatically created link is
  1669. not working correctly or accurately enough, you can write custom
  1670. functions to select the search string and to do the search for
  1671. particular file types - see *Note Custom searches::. The key
  1672. binding `C-c l' is only a suggestion - see *Note Installation::.
  1673. `C-c C-l'
  1674. Insert a link. This prompts for a link to be inserted into the
  1675. buffer. You can just type a link, using text for an internal
  1676. link, or one of the link type prefixes mentioned in the examples
  1677. above. All links stored during the current session are part of
  1678. the history for this prompt, so you can access them with <up> and
  1679. <down> (or `M-p/n'). Completion, on the other hand, will help you
  1680. to insert valid link prefixes like `http:' or `ftp:', including
  1681. the prefixes defined through link abbreviations (*note Link
  1682. abbreviations::). The link will be inserted into the buffer(1),
  1683. along with a descriptive text. If some text was selected when
  1684. this command is called, the selected text becomes the default
  1685. description.
  1686. Note that you don't have to use this command to insert a link.
  1687. Links in Org-mode are plain text, and you can type or paste them
  1688. straight into the buffer. By using this command, the links are
  1689. automatically enclosed in double brackets, and you will be asked
  1690. for the optional descriptive text.
  1691. `C-u C-c C-l'
  1692. When `C-c C-l' is called with a `C-u' prefix argument, a link to a
  1693. file will be inserted and you may use file name completion to
  1694. select the name of the file. The path to the file is inserted
  1695. relative to the directory of the current org file, if the linked
  1696. file is in the current directory or in a subdirectory of it, or if
  1697. the path is written relative to the current directory using `../'.
  1698. Otherwise an absolute path is used, if possible with `~/' for
  1699. your home directory. You can force an absolute path with two
  1700. `C-u' prefixes.
  1701. `C-c C-l (with cursor on existing link)'
  1702. When the cursor is on an existing link, `C-c C-l' allows you to
  1703. edit the link and description parts of the link.
  1704. `C-c C-o'
  1705. Open link at point. This will launch a web browser for URLs (using
  1706. `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
  1707. the corresponding links, and execute the command in a shell link.
  1708. When the cursor is on an internal link, this commands runs the
  1709. corresponding search. When the cursor is on a TAG list in a
  1710. headline, it creates the corresponding TAGS view. If the cursor
  1711. is on a time stamp, it compiles the agenda for that date.
  1712. Furthermore, it will visit text and remote files in `file:' links
  1713. with Emacs and select a suitable application for local non-text
  1714. files. Classification of files is based on file extension only.
  1715. See option `org-file-apps'. If you want to override the default
  1716. application and visit the file with Emacs, use a `C-u' prefix.
  1717. `mouse-2'
  1718. `mouse-1'
  1719. On links, `mouse-2' will open the link just as `C-c C-o' would.
  1720. Under Emacs 22, also `mouse-1' will follow a link.
  1721. `mouse-3'
  1722. Like `mouse-2', but force file links to be opened with Emacs, and
  1723. internal links to be displayed in another window(2).
  1724. `C-c %'
  1725. Push the current position onto the mark ring, to be able to return
  1726. easily. Commands following an internal link do this automatically.
  1727. `C-c &'
  1728. Jump back to a recorded position. A position is recorded by the
  1729. commands following internal links, and by `C-c %'. Using this
  1730. command several times in direct succession moves through a ring of
  1731. previously recorded positions.
  1732. `C-c C-x C-n'
  1733. `C-c C-x C-p'
  1734. Move forward/backward to the next link in the buffer. At the
  1735. limit of the buffer, the search fails once, and then wraps around.
  1736. The key bindings for this are really too long, you might want to
  1737. bind this also to `C-n' and `C-p'
  1738. (add-hook 'org-load-hook
  1739. (lambda ()
  1740. (define-key 'org-mode-map "\C-n" 'org-next-link)
  1741. (define-key 'org-mode-map "\C-p" 'org-previous-link)))
  1742. ---------- Footnotes ----------
  1743. (1) After insertion of a stored link, the link will be removed from
  1744. the list of stored links. To keep it in the list later use, use a
  1745. triple `C-u' prefix to `C-c C-l', or configure the option
  1746. `org-keep-stored-link-after-insertion'.
  1747. (2) See the variable `org-display-internal-link-with-indirect-buffer'
  1748. 
  1749. File: org, Node: Using links outside Org-mode, Next: Link abbreviations, Prev: Handling links, Up: Hyperlinks
  1750. 4.5 Using links outside Org-mode
  1751. ================================
  1752. You can insert and follow links that have Org-mode syntax not only in
  1753. Org-mode, but in any Emacs buffer. For this, you should create two
  1754. global commands, like this (please select suitable global keys
  1755. yourself):
  1756. (global-set-key "\C-c L" 'org-insert-link-global)
  1757. (global-set-key "\C-c o" 'org-open-at-point-global)
  1758. 
  1759. File: org, Node: Link abbreviations, Next: Search options, Prev: Using links outside Org-mode, Up: Hyperlinks
  1760. 4.6 Link abbreviations
  1761. ======================
  1762. Long URLs can be cumbersome to type, and often many similar links are
  1763. needed in a document. For this you can use link abbreviations. An
  1764. abbreviated link looks like this
  1765. [[linkword:tag][description]]
  1766. where the tag is optional. Such abbreviations are resolved according to
  1767. the information in the variable `org-link-abbrev-alist' that relates
  1768. the linkwords to replacement text. Here is an example:
  1769. (setq org-link-abbrev-alist
  1770. '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
  1771. ("google" . "http://www.google.com/search?q=")
  1772. ("ads" . "http://adsabs.harvard.edu/cgi-bin/
  1773. nph-abs_connect?author=%s&db_key=AST")))
  1774. If the replacement text contains the string `%s', it will be
  1775. replaced with the tag. Otherwise the tag will be appended to the string
  1776. in order to create the link. You may also specify a function that will
  1777. be called with the tag as the only argument to create the link.
  1778. With the above setting, you could link to a specific bug with
  1779. `[[bugzilla:129]]', search the web for `OrgMode' with
  1780. `[[google:OrgMode]]' and find out what the Org-mode author is doing
  1781. besides Emacs hacking with `[[ads:Dominik,C]]'.
  1782. If you need special abbreviations just for a single Org-mode buffer,
  1783. you can define them in the file with
  1784. #+LINK: bugzilla http://10.1.2.9/bugzilla/show_bug.cgi?id=
  1785. #+LINK: google http://www.google.com/search?q=%s
  1786. In-buffer completion *note Completion:: can be used after `[' to
  1787. complete link abbreviations.
  1788. 
  1789. File: org, Node: Search options, Next: Custom searches, Prev: Link abbreviations, Up: Hyperlinks
  1790. 4.7 Search options in file links
  1791. ================================
  1792. File links can contain additional information to make Emacs jump to a
  1793. particular location in the file when following a link. This can be a
  1794. line number or a search option after a double(1) colon. For example,
  1795. when the command `C-c l' creates a link (*note Handling links::) to a
  1796. file, it encodes the words in the current line as a search string that
  1797. can be used to find this line back later when following the link with
  1798. `C-c C-o'.
  1799. Here is the syntax of the different ways to attach a search to a file
  1800. link, together with an explanation:
  1801. [[file:~/code/main.c::255]]
  1802. [[file:~/xx.org::My Target]]
  1803. [[file:~/xx.org::*My Target]]
  1804. [[file:~/xx.org::/regexp/]]
  1805. `255'
  1806. Jump to line 255.
  1807. `My Target'
  1808. Search for a link target `<<My Target>>', or do a text search for
  1809. `my target', similar to the search in internal links, see *Note
  1810. Internal links::. In HTML export (*note HTML export::), such a
  1811. file link will become an HTML reference to the corresponding named
  1812. anchor in the linked file.
  1813. `*My Target'
  1814. In an Org-mode file, restrict search to headlines.
  1815. `/regexp/'
  1816. Do a regular expression search for `regexp'. This uses the Emacs
  1817. command `occur' to list all matches in a separate window. If the
  1818. target file is in Org-mode, `org-occur' is used to create a sparse
  1819. tree with the matches.
  1820. As a degenerate case, a file link with an empty file name can be used
  1821. to search the current file. For example, `[[file:::find me]]' does a
  1822. search for `find me' in the current file, just as `[[find me]]' would.
  1823. ---------- Footnotes ----------
  1824. (1) For backward compatibility, line numbers can also follow a
  1825. single colon.
  1826. 
  1827. File: org, Node: Custom searches, Prev: Search options, Up: Hyperlinks
  1828. 4.8 Custom Searches
  1829. ===================
  1830. The default mechanism for creating search strings and for doing the
  1831. actual search related to a file link may not work correctly in all
  1832. cases. For example, BibTeX database files have many entries like
  1833. `year="1993"' which would not result in good search strings, because
  1834. the only unique identification for a BibTeX entry is the citation key.
  1835. If you come across such a problem, you can write custom functions to
  1836. set the right search string for a particular file type, and to do the
  1837. search for the string in the file. Using `add-hook', these functions
  1838. need to be added to the hook variables
  1839. `org-create-file-search-functions' and
  1840. `org-execute-file-search-functions'. See the docstring for these
  1841. variables for more information. Org-mode actually uses this mechanism
  1842. for BibTeX database files, and you can use the corresponding code as an
  1843. implementation example. Search for `BibTeX links' in the source file.
  1844. 
  1845. File: org, Node: TODO items, Next: Tags, Prev: Hyperlinks, Up: Top
  1846. 5 TODO items
  1847. ************
  1848. Org-mode does not maintain TODO lists as separate documents. Instead,
  1849. TODO items are an integral part of the notes file, because TODO items
  1850. usually come up while taking notes! With Org-mode, simply mark any
  1851. entry in a tree as being a TODO item. In this way, information is not
  1852. duplicated, and the entire context from which the TODO item emerged is
  1853. always present.
  1854. Of course, this technique for managing TODO items scatters them
  1855. throughout your notes file. Org-mode compensates for this by providing
  1856. methods to give you an overview of all the things that you have to do.
  1857. * Menu:
  1858. * TODO basics:: Marking and displaying TODO entries
  1859. * TODO extensions:: Workflow and assignments
  1860. * Progress logging:: Dates and notes for progress
  1861. * Priorities:: Some things are more important than others
  1862. * Breaking down tasks:: Splitting a task into manageable pieces
  1863. * Checkboxes:: Tick-off lists
  1864. 
  1865. File: org, Node: TODO basics, Next: TODO extensions, Prev: TODO items, Up: TODO items
  1866. 5.1 Basic TODO functionality
  1867. ============================
  1868. Any headline becomes a TODO item when it starts with the word `TODO',
  1869. for example:
  1870. *** TODO Write letter to Sam Fortune
  1871. The most important commands to work with TODO entries are:
  1872. `C-c C-t'
  1873. Rotate the TODO state of the current item among
  1874. ,-> (unmarked) -> TODO -> DONE --.
  1875. '--------------------------------'
  1876. The same rotation can also be done "remotely" from the timeline and
  1877. agenda buffers with the `t' command key (*note Agenda commands::).
  1878. `C-u C-c C-t'
  1879. Select a specific keyword using completion or (if it has been set
  1880. up) the fast selection interface.
  1881. `S-<right>'
  1882. `S-<left>'
  1883. Select the following/preceding TODO state, similar to cycling.
  1884. Useful mostly if more than two TODO states are possible (*note
  1885. TODO extensions::).
  1886. `C-c C-c'
  1887. Use the fast tag interface to directly select a specific TODO
  1888. state. For this you need to assign keys to TODO states, like this:
  1889. #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) | DONE(d)
  1890. See *Note Per-file keywords:: and *Note Setting tags:: for more
  1891. information.
  1892. `C-c C-v'
  1893. `C-c / t'
  1894. View TODO items in a _sparse tree_ (*note Sparse trees::). Folds
  1895. the entire buffer, but shows all TODO items and the headings
  1896. hierarchy above them. With prefix arg, search for a specific
  1897. TODO. You will be prompted for the keyword, and you can also give
  1898. a list of keywords like `KWD1|KWD2|...'. With numerical prefix N,
  1899. show the tree for the Nth keyword in the variable
  1900. `org-todo-keywords'. With two prefix args, find all TODO and DONE
  1901. entries.
  1902. `C-c a t'
  1903. Show the global TODO list. Collects the TODO items from all agenda
  1904. files (*note Agenda views::) into a single buffer. The new buffer
  1905. will be in `agenda-mode', which provides commands to examine and
  1906. manipulate the TODO entries from the new buffer (*note Agenda
  1907. commands::). *Note Global TODO list::, for more information.
  1908. `S-M-<RET>'
  1909. Insert a new TODO entry below the current one.
  1910. 
  1911. File: org, Node: TODO extensions, Next: Progress logging, Prev: TODO basics, Up: TODO items
  1912. 5.2 Extended use of TODO keywords
  1913. =================================
  1914. By default, marked TODO entries have one of only two states: TODO and
  1915. DONE. Org-mode allows you to classify TODO items in more complex ways
  1916. with _TODO keywords_ (stored in `org-todo-keywords'). With special
  1917. setup, the TODO keyword system can work differently in different files.
  1918. Note that tags are another way to classify headlines in general and
  1919. TODO items in particular (*note Tags::).
  1920. * Menu:
  1921. * Workflow states:: From TODO to DONE in steps
  1922. * TODO types:: I do this, Fred does the rest
  1923. * Multiple sets in one file:: Mixing it all, and still finding your way
  1924. * Fast access to TODO states:: Single letter selection of a state
  1925. * Per-file keywords:: Different files, different requirements
  1926. * Faces for TODO keywords:: Highlighting states
  1927. 
  1928. File: org, Node: Workflow states, Next: TODO types, Prev: TODO extensions, Up: TODO extensions
  1929. 5.2.1 TODO keywords as workflow states
  1930. --------------------------------------
  1931. You can use TODO keywords to indicate different _sequential_ states in
  1932. the process of working on an item, for example(1):
  1933. (setq org-todo-keywords
  1934. '((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))
  1935. The vertical bar separates the TODO keywords (states that _need
  1936. action_) from the DONE states (which need _no further action_. If you
  1937. don't provide the separator bar, the last state is used as the DONE
  1938. state. With this setup, the command `C-c C-t' will cycle an entry from
  1939. TODO to FEEDBACK, then to VERIFY, and finally to DONE and DELEGATED.
  1940. You may also use a prefix argument to quickly select a specific state.
  1941. For example `C-3 C-c C-t' will change the state immediately to VERIFY.
  1942. If you define many keywords, you can use in-buffer completion (see
  1943. *Note Completion::) to insert these words into the buffer. Changing a
  1944. todo state can be logged with a timestamp, see *Note Tracking TODO
  1945. state changes:: for more information.
  1946. ---------- Footnotes ----------
  1947. (1) Changing this variable only becomes effective after restarting
  1948. Org-mode in a buffer.
  1949. 
  1950. File: org, Node: TODO types, Next: Multiple sets in one file, Prev: Workflow states, Up: TODO extensions
  1951. 5.2.2 TODO keywords as types
  1952. ----------------------------
  1953. The second possibility is to use TODO keywords to indicate different
  1954. _types_ of action items. For example, you might want to indicate that
  1955. items are for "work" or "home". Or, when you work with several people
  1956. on a single project, you might want to assign action items directly to
  1957. persons, by using their names as TODO keywords. This would be set up
  1958. like this:
  1959. (setq org-todo-keywords '((type "Fred" "Sara" "Lucy" "|" "DONE")))
  1960. In this case, different keywords do not indicate a sequence, but
  1961. rather different types. So the normal work flow would be to assign a
  1962. task to a person, and later to mark it DONE. Org-mode supports this
  1963. style by adapting the workings of the command `C-c C-t'(1). When used
  1964. several times in succession, it will still cycle through all names, in
  1965. order to first select the right type for a task. But when you return
  1966. to the item after some time and execute `C-c C-t' again, it will switch
  1967. from any name directly to DONE. Use prefix arguments or completion to
  1968. quickly select a specific name. You can also review the items of a
  1969. specific TODO type in a sparse tree by using a numeric prefix to `C-c
  1970. C-v'. For example, to see all things Lucy has to do, you would use
  1971. `C-3 C-c C-v'. To collect Lucy's items from all agenda files into a
  1972. single buffer, you would use the prefix arg as well when creating the
  1973. global todo list: `C-3 C-c t'.
  1974. ---------- Footnotes ----------
  1975. (1) This is also true for the `t' command in the timeline and agenda
  1976. buffers.
  1977. 
  1978. File: org, Node: Multiple sets in one file, Next: Fast access to TODO states, Prev: TODO types, Up: TODO extensions
  1979. 5.2.3 Multiple keyword sets in one file
  1980. ---------------------------------------
  1981. Sometimes you may want to use different sets of TODO keywords in
  1982. parallel. For example, you may want to have the basic `TODO'/`DONE',
  1983. but also a workflow for bug fixing, and a separate state indicating
  1984. that an item has been canceled (so it is not DONE, but also does not
  1985. require action). Your setup would then look like this:
  1986. (setq org-todo-keywords
  1987. '((sequence "TODO" "|" "DONE")
  1988. (sequence "REPORT" "BUG" "KNOWNCAUSE" "|" "FIXED")
  1989. (sequence "|" "CANCELED")))
  1990. The keywords should all be different, this helps Org-mode to keep
  1991. track of which subsequence should be used for a given entry. In this
  1992. setup, `C-c C-t' only operates within a subsequence, so it switches from
  1993. `DONE' to (nothing) to `TODO', and from `FIXED' to (nothing) to
  1994. `REPORT'. Therefore you need a mechanism to initially select the
  1995. correct sequence. Besides the obvious ways like typing a keyword or
  1996. using completion, you may also apply the following commands:
  1997. `C-S-<right>'
  1998. `C-S-<left>'
  1999. These keys jump from one TODO subset to the next. In the above
  2000. example, `C-S-<right>' would jump from `TODO' or `DONE' to
  2001. `REPORT', and any of the words in the second row to `CANCELED'.
  2002. `S-<right>'
  2003. `S-<left>'
  2004. `S-<<left>>' and `S-<<right>>' and walk through _all_ keywords
  2005. from all sets, so for example `S-<<right>>' would switch from
  2006. `DONE' to `REPORT' in the example above.
  2007. 
  2008. File: org, Node: Fast access to TODO states, Next: Per-file keywords, Prev: Multiple sets in one file, Up: TODO extensions
  2009. 5.2.4 Fast access to TODO states
  2010. --------------------------------
  2011. If you would like to quickly change an entry to an arbitrary TODO state
  2012. instead of cycling through the states, you can set up keys for
  2013. single-letter access to the states. This is done by adding the section
  2014. key after each keyword, in parenthesis. For example:
  2015. (setq org-todo-keywords
  2016. '((sequence "TODO(t)" "|" "DONE(d)")
  2017. (sequence "REPORT(r)" "BUG(b)" "KNOWNCAUSE(k)" "|" "FIXED(f)")
  2018. (sequence "|" "CANCELED(c)")))
  2019. If you then press `C-u C-c C-t' followed by the selection key, the
  2020. entry will be switched to this state. <SPC> can be used to remove any
  2021. TODO keyword from an entry. Should you like this way of selecting TODO
  2022. states a lot, you might want to set the variable
  2023. `org-use-fast-todo-selection' to `t' and make this behavior the
  2024. default. Check also the variable
  2025. `org-fast-tag-selection-include-todo', it allows to change the TODO
  2026. state through the tags interface (*note Setting tags::).
  2027. 
  2028. File: org, Node: Per-file keywords, Next: Faces for TODO keywords, Prev: Fast access to TODO states, Up: TODO extensions
  2029. 5.2.5 Setting up keywords for individual files
  2030. ----------------------------------------------
  2031. It can be very useful to use different aspects of the TODO mechanism in
  2032. different files. For file-local settings, you need to add special lines
  2033. to the file which set the keywords and interpretation for that file
  2034. only. For example, to set one of the two examples discussed above, you
  2035. need one of the following lines, starting in column zero anywhere in the
  2036. file:
  2037. #+SEQ_TODO: TODO FEEDBACK VERIFY | DONE CANCELED
  2038. or
  2039. #+TYP_TODO: Fred Sara Lucy Mike | DONE
  2040. A setup for using several sets in parallel would be:
  2041. #+SEQ_TODO: TODO | DONE
  2042. #+SEQ_TODO: REPORT BUG KNOWNCAUSE | FIXED
  2043. #+SEQ_TODO: | CANCELED
  2044. To make sure you are using the correct keyword, type `#+' into the
  2045. buffer and then use `M-<TAB>' completion.
  2046. Remember that the keywords after the vertical bar (or the last
  2047. keyword if no bar is there) must always mean that the item is DONE
  2048. (although you may use a different word). After changing one of these
  2049. lines, use `C-c C-c' with the cursor still in the line to make the
  2050. changes known to Org-mode(1).
  2051. ---------- Footnotes ----------
  2052. (1) Org-mode parses these lines only when Org-mode is activated
  2053. after visiting a file. `C-c C-c' with the cursor in a line starting
  2054. with `#+' is simply restarting Org-mode for the current buffer.
  2055. 
  2056. File: org, Node: Faces for TODO keywords, Prev: Per-file keywords, Up: TODO extensions
  2057. 5.2.6 Faces for TODO keywords
  2058. -----------------------------
  2059. Org-mode highlights TODO keywords with special faces: `org-todo' for
  2060. keywords indicating that an item still has to be acted upon, and
  2061. `org-done' for keywords indicating that an item is finished. If you
  2062. are using more than 2 different states, you might want to use special
  2063. faces for some of them. This can be done using the variable
  2064. `org-todo-keyword-faces'. For example:
  2065. (setq org-todo-keyword-faces
  2066. '(("TODO" . org-warning)
  2067. ("DEFERRED" . shadow)
  2068. ("CANCELED" . (:foreground "blue" :weight bold))))
  2069. 
  2070. File: org, Node: Progress logging, Next: Priorities, Prev: TODO extensions, Up: TODO items
  2071. 5.3 Progress Logging
  2072. ====================
  2073. Org-mode can automatically record a time stamp and even a note when you
  2074. mark a TODO item as DONE, or even each time you change the state of a
  2075. TODO item.
  2076. * Menu:
  2077. * Closing items:: When was this entry marked DONE?
  2078. * Tracking TODO state changes:: When did the status change?
  2079. 
  2080. File: org, Node: Closing items, Next: Tracking TODO state changes, Prev: Progress logging, Up: Progress logging
  2081. 5.3.1 Closing items
  2082. -------------------
  2083. If you want to keep track of _when_ a certain TODO item was finished,
  2084. turn on logging with(1)
  2085. (setq org-log-done t)
  2086. Then each time you turn a TODO entry into DONE using either `C-c C-t'
  2087. in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
  2088. [timestamp]' will be inserted just after the headline. If you turn the
  2089. entry back into a TODO item through further state cycling, that line
  2090. will be removed again. In the timeline (*note Timeline::) and in the
  2091. agenda (*note Weekly/Daily agenda::), you can then use the `l' key to
  2092. display the TODO items closed on each day, giving you an overview of
  2093. what has been done on a day. If you want to record a note along with
  2094. the timestamp, use(2)
  2095. (setq org-log-done '(done))
  2096. ---------- Footnotes ----------
  2097. (1) The corresponding in-buffer setting is: `#+STARTUP: logdone'.
  2098. You may also set this for the scope of a subtree by adding a
  2099. `:LOGGING:' property with one or more of the logging keywords in the
  2100. value.
  2101. (2) The corresponding in-buffer setting is: `#+STARTUP: lognotedone'
  2102. 
  2103. File: org, Node: Tracking TODO state changes, Prev: Closing items, Up: Progress logging
  2104. 5.3.2 Tracking TODO state changes
  2105. ---------------------------------
  2106. When TODO keywords are used as workflow states (*note Workflow
  2107. states::), you might want to keep track of when a state change occurred
  2108. and record a note about this change. With the setting(1)
  2109. (setq org-log-done '(state))
  2110. each state change will prompt you for a note that will be attached to
  2111. the current headline. If you press `C-c C-c' without typing anything
  2112. into the note buffer, only the time of the state change will be noted.
  2113. Very likely you do not want this verbose tracking all the time, so it
  2114. is probably better to configure this behavior with in-buffer options.
  2115. For example, if you are tracking purchases, put these into a separate
  2116. file that contains:
  2117. #+SEQ_TODO: TODO(t) ORDERED(o) INVOICE(i) PAYED(p) | RECEIVED(r)
  2118. #+STARTUP: lognotestate
  2119. If you only need to take a note for some of the states, mark those
  2120. states with an additional `@', like this:
  2121. #+SEQ_TODO: TODO(t) ORDERED(o@) INVOICE(i@) PAYED(p) | RECEIVED(r)
  2122. #+STARTUP: lognotestate
  2123. ---------- Footnotes ----------
  2124. (1) The corresponding in-buffer setting is: `#+STARTUP:
  2125. lognotestate'.
  2126. 
  2127. File: org, Node: Priorities, Next: Breaking down tasks, Prev: Progress logging, Up: TODO items
  2128. 5.4 Priorities
  2129. ==============
  2130. If you use Org-mode extensively, you may end up enough TODO items that
  2131. it starts to make sense to prioritize them. Prioritizing can be done by
  2132. placing a _priority cookie_ into the headline of a TODO item, like this
  2133. *** TODO [#A] Write letter to Sam Fortune
  2134. By default, Org-mode supports three priorities: `A', `B', and `C'. `A'
  2135. is the highest priority. An entry without a cookie is treated as
  2136. priority `B'. Priorities make a difference only in the agenda (*note
  2137. Weekly/Daily agenda::); outside the agenda, they have no inherent
  2138. meaning to Org-mode.
  2139. Priorities can be attached to any outline tree entries; they do not
  2140. need to be TODO items.
  2141. `C-c ,'
  2142. Set the priority of the current headline. The command prompts for
  2143. a priority character `A', `B' or `C'. When you press <SPC>
  2144. instead, the priority cookie is removed from the headline. The
  2145. priorities can also be changed "remotely" from the timeline and
  2146. agenda buffer with the `,' command (*note Agenda commands::).
  2147. `S-<up>'
  2148. `S-<down>'
  2149. Increase/decrease priority of current headline(1). Note that these
  2150. keys are also used to modify time stamps (*note Creating
  2151. timestamps::). Furthermore, these keys are also used by CUA-mode
  2152. (*note Conflicts::).
  2153. You can change the range of allowed priorities by setting the
  2154. variables `org-highest-priority', `org-lowest-priority', and
  2155. `org-default-priority'. For an individual buffer, you may set these
  2156. values (highest, lowest, default) like this (please make sure that the
  2157. highest priority is earlier in the alphabet than the lowest priority):
  2158. #+PRIORITIES: A C B
  2159. ---------- Footnotes ----------
  2160. (1) See also the option `org-priority-start-cycle-with-default''.
  2161. 
  2162. File: org, Node: Breaking down tasks, Next: Checkboxes, Prev: Priorities, Up: TODO items
  2163. 5.5 Breaking tasks down into subtasks
  2164. =====================================
  2165. It is often advisable to break down large tasks into smaller, manageable
  2166. subtasks. You can do this by creating an outline tree below a TODO
  2167. item, with detailed subtasks on the tree(1). Another possibility is
  2168. the use of checkboxes to identify (a hierarchy of) a large number of
  2169. subtasks (*note Checkboxes::).
  2170. ---------- Footnotes ----------
  2171. (1) To keep subtasks out of the global TODO list, see the
  2172. `org-agenda-todo-list-sublevels'.
  2173. 
  2174. File: org, Node: Checkboxes, Prev: Breaking down tasks, Up: TODO items
  2175. 5.6 Checkboxes
  2176. ==============
  2177. Every item in a plain list (*note Plain lists::) can be made into a
  2178. checkbox by starting it with the string `[ ]'. This feature is similar
  2179. to TODO items (*note TODO items::), but is more lightweight.
  2180. Checkboxes are not included into the global TODO list, so they are often
  2181. great to split a task into a number of simple steps. Or you can use
  2182. them in a shopping list. To toggle a checkbox, use `C-c C-c', or use
  2183. the mouse (thanks to Piotr Zielinski's `org-mouse.el').
  2184. Here is an example of a checkbox list.
  2185. * TODO Organize party [2/4]
  2186. - [-] call people [1/3]
  2187. - [ ] Peter
  2188. - [X] Sarah
  2189. - [ ] Sam
  2190. - [X] order food
  2191. - [ ] think about what music to play
  2192. - [X] talk to the neighbors
  2193. Checkboxes work hierarchically, so if a checkbox item has children
  2194. that are checkboxes, toggling one of the children checkboxes will make
  2195. the parent checkbox reflect if none, some, or all o the children are
  2196. checked.
  2197. The `[2/4]' and `[1/3]' in the first and second line are cookies
  2198. indicating how many checkboxes present in this entry have been checked
  2199. off, and the total number of checkboxes are present. This can give you
  2200. an idea on how many checkboxes remain, even without opening a folded
  2201. entry. The cookies can be placed into a headline or into (the first
  2202. line of) a plain list item. Each cookie covers all checkboxes
  2203. structurally below the headline/item on which the cookie appear. You
  2204. have to insert the cookie yourself by typing either `[/]' or `[%]'.
  2205. With `[/]' you get an `n out of m' result, as in the examples above.
  2206. With `[%]' you get information about the percentage of checkboxes
  2207. checked (in the above example, this would be `[50%]' and `[33%]',
  2208. respectively).
  2209. The following commands work with checkboxes:
  2210. `C-c C-c'
  2211. Toggle checkbox at point. With prefix argument, set it to `[-]',
  2212. which is considered to be an intermediate state.
  2213. `C-c C-x C-b'
  2214. Toggle checkbox at point.
  2215. - If there is an active region, toggle the first checkbox in
  2216. the region and set all remaining boxes to the same status as
  2217. the first. If you want to toggle all boxes in the region
  2218. independently, use a prefix argument.
  2219. - If the cursor is in a headline, toggle checkboxes in the
  2220. region between this headline and the next (so _not_ the
  2221. entire subtree).
  2222. - If there is no active region, just toggle the checkbox at
  2223. point.
  2224. `M-S-<RET>'
  2225. Insert a new item with a checkbox. This works only if the cursor
  2226. is already in a plain list item (*note Plain lists::).
  2227. `C-c #'
  2228. Update the checkbox statistics in the current outline entry. When
  2229. called with a `C-u' prefix, update the entire file. Checkbox
  2230. statistic cookies are updated automatically if you toggle
  2231. checkboxes with `C-c C-c' and make new ones with `M-S-<RET>'. If
  2232. you delete boxes or add/change them by hand, use this command to
  2233. get things back into synch. Or simply toggle any checkbox twice
  2234. with `C-c C-c'.
  2235. 
  2236. File: org, Node: Tags, Next: Properties and columns, Prev: TODO items, Up: Top
  2237. 6 Tags
  2238. ******
  2239. An excellent way to implement labels and contexts for cross-correlating
  2240. information is to assign tags to headlines. Org-mode has extensive
  2241. support for tags.
  2242. Every headline can contain a list of tags; they occur at the end of
  2243. the headline. Tags are normal words containing letters, numbers, `_',
  2244. and `@'. Tags must be preceded and followed by a single colon, e.g.,
  2245. `:WORK:'. Several tags can be specified, as in `:work:URGENT:'.
  2246. * Menu:
  2247. * Tag inheritance:: Tags use the tree structure of the outline
  2248. * Setting tags:: How to assign tags to a headline
  2249. * Tag searches:: Searching for combinations of tags
  2250. 
  2251. File: org, Node: Tag inheritance, Next: Setting tags, Prev: Tags, Up: Tags
  2252. 6.1 Tag inheritance
  2253. ===================
  2254. Tags make use of the hierarchical structure of outline trees. If a
  2255. heading has a certain tag, all subheadings will inherit the tag as
  2256. well. For example, in the list
  2257. * Meeting with the French group :work:
  2258. ** Summary by Frank :boss:notes:
  2259. *** TODO Prepare slides for him :action:
  2260. the final heading will have the tags `:work:', `:boss:', `:notes:', and
  2261. `:action:' even though the final heading is not explicitly marked with
  2262. those tags. When executing tag searches and Org-mode finds that a
  2263. certain headline matches the search criterion, it will not check any
  2264. sublevel headline, assuming that these also match and that the list of
  2265. matches could become very long because of that. If you do want the
  2266. subevels be tested and listed as well, you may set the variable
  2267. `org-tags-match-list-sublevels'. To turn off tag inheritance entirely,
  2268. use the variable `org-use-tag-inheritance'.
  2269. 
  2270. File: org, Node: Setting tags, Next: Tag searches, Prev: Tag inheritance, Up: Tags
  2271. 6.2 Setting tags
  2272. ================
  2273. Tags can simply be typed into the buffer at the end of a headline.
  2274. After a colon, `M-<TAB>' offers completion on tags. There is also a
  2275. special command for inserting tags:
  2276. `C-c C-c'
  2277. Enter new tags for the current headline. Org-mode will either
  2278. offer completion or a special single-key interface for setting
  2279. tags, see below. After pressing <RET>, the tags will be inserted
  2280. and aligned to `org-tags-column'. When called with a `C-u'
  2281. prefix, all tags in the current buffer will be aligned to that
  2282. column, just to make things look nice. TAGS are automatically
  2283. realigned after promotion, demotion, and TODO state changes (*note
  2284. TODO basics::).
  2285. Org will support tag insertion based on a _list of tags_. By
  2286. default this list is constructed dynamically, containing all tags
  2287. currently used in the buffer. You may also globally specify a hard list
  2288. of tags with the variable `org-tag-alist'. Finally you can set the
  2289. default tags for a given file with lines like
  2290. #+TAGS: @work @home @tennisclub
  2291. #+TAGS: laptop car pc sailboat
  2292. If you have globally defined your preferred set of tags using the
  2293. variable `org-tag-alist', but would like to use a dynamic tag list in a
  2294. specific file, add an empty TAGS option line to that file:
  2295. #+TAGS:
  2296. The default support method for entering tags is minibuffer
  2297. completion. However, Org-mode also implements a much better method:
  2298. _fast tag selection_. This method allows to select and deselect tags
  2299. with a single key per tag. To function efficiently, you should assign
  2300. unique keys to most tags. This can be done globally with
  2301. (setq org-tag-alist '(("@work" . ?w) ("@home" . ?h) ("laptop" . ?l)))
  2302. or on a per-file basis with
  2303. #+TAGS: @work(w) @home(h) @tennisclub(t) laptop(l) pc(p)
  2304. You can also group together tags that are mutually exclusive. With
  2305. curly braces(1)
  2306. #+TAGS: { @work(w) @home(h) @tennisclub(t) } laptop(l) pc(p)
  2307. you indicate that at most one of `@work', `@home', and `@tennisclub'
  2308. should be selected.
  2309. Don't forget to press `C-c C-c' with the cursor in one of these lines
  2310. to activate any changes.
  2311. If at least one tag has a selection key, pressing `C-c C-c' will
  2312. automatically present you with a special interface, listing inherited
  2313. tags, the tags of the current headline, and a list of all legal tags
  2314. with corresponding keys(2). In this interface, you can use the
  2315. following keys:
  2316. `a-z...'
  2317. Pressing keys assigned to tags will add or remove them from the
  2318. list of tags in the current line. Selecting a tag in a group of
  2319. mutually exclusive tags will turn off any other tags from that
  2320. group.
  2321. `<TAB>'
  2322. Enter a tag in the minibuffer, even if the tag is not in the
  2323. predefined list. You will be able to complete on all tags present
  2324. in the buffer.
  2325. `<SPC>'
  2326. Clear all tags for this line.
  2327. `<RET>'
  2328. Accept the modified set.
  2329. `C-g'
  2330. Abort without installing changes.
  2331. `q'
  2332. If `q' is not assigned to a tag, it aborts like `C-g'.
  2333. `!'
  2334. Turn off groups of mutually exclusive tags. Use this to (as an
  2335. exception) assign several tags from such a group.
  2336. `C-c'
  2337. Toggle auto-exit after the next change (see below). If you are
  2338. using expert mode, the first `C-c' will display the selection
  2339. window.
  2340. This method lets you assign tags to a headline with very few keys. With
  2341. the above setup, you could clear the current tags and set `@home',
  2342. `laptop' and `pc' tags with just the following keys: `C-c C-c <SPC> h l
  2343. p <RET>'. Switching from `@home' to `@work' would be done with `C-c
  2344. C-c w <RET>' or alternatively with `C-c C-c C-c w'. Adding the
  2345. non-predefined tag `Sarah' could be done with `C-c C-c <TAB> S a r a h
  2346. <RET> <RET>'.
  2347. If you find that most of the time, you need only a single keypress to
  2348. modify your list of tags, set the variable
  2349. `org-fast-tag-selection-single-key'. Then you no longer have to press
  2350. <RET> to exit fast tag selection - it will immediately exit after the
  2351. first change. If you then occasionally need more keys, press `C-c' to
  2352. turn off auto-exit for the current tag selection process (in effect:
  2353. start selection with `C-c C-c C-c' instead of `C-c C-c'). If you set
  2354. the variable to the value `expert', the special window is not even
  2355. shown for single-key tag selection, it comes up only when you press an
  2356. extra `C-c'.
  2357. ---------- Footnotes ----------
  2358. (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
  2359. respectively. Several groups are allowed.
  2360. (2) Keys will automatically be assigned to tags which have no
  2361. configured keys.
  2362. 
  2363. File: org, Node: Tag searches, Prev: Setting tags, Up: Tags
  2364. 6.3 Tag searches
  2365. ================
  2366. Once a system of tags has been set up, it can be used to collect related
  2367. information into special lists.
  2368. `C-c \'
  2369. `C-c / T'
  2370. Create a sparse tree with all headlines matching a tags search.
  2371. With a `C-u' prefix argument, ignore headlines that are not a TODO
  2372. line.
  2373. `C-c a m'
  2374. Create a global list of tag matches from all agenda files. *Note
  2375. Matching tags and properties::.
  2376. `C-c a M'
  2377. Create a global list of tag matches from all agenda files, but
  2378. check only TODO items and force checking subitems (see variable
  2379. `org-tags-match-list-sublevels').
  2380. A tags search string can use Boolean operators `&' for AND and `|'
  2381. for OR. `&' binds more strongly than `|'. Parenthesis are currently
  2382. not implemented. A tag may also be preceded by `-', to select against
  2383. it, and `+' is syntactic sugar for positive selection. The AND
  2384. operator `&' is optional when `+' or `-' is present. Examples:
  2385. `+work-boss'
  2386. Select headlines tagged `:work:', but discard those also tagged
  2387. `:boss:'.
  2388. `work|laptop'
  2389. Selects lines tagged `:work:' or `:laptop:'.
  2390. `work|laptop&night'
  2391. Like before, but require the `:laptop:' lines to be tagged also
  2392. `:night:'.
  2393. If you are using multi-state TODO keywords (*note TODO
  2394. extensions::), it can be useful to also match on the TODO keyword.
  2395. This can be done by adding a condition after a slash to a tags match.
  2396. The syntax is similar to the tag matches, but should be applied with
  2397. consideration: For example, a positive selection on several TODO
  2398. keywords can not meaningfully be combined with boolean AND. However,
  2399. _negative selection_ combined with AND can be meaningful. To make sure
  2400. that only lines are checked that actually have any TODO keyword, use
  2401. `C-c a M', or equivalently start the todo part after the slash with `!'.
  2402. Examples:
  2403. `work/WAITING'
  2404. Select `:work:'-tagged TODO lines with the specific TODO keyword
  2405. `WAITING'.
  2406. `work/!-WAITING-NEXT'
  2407. Select `:work:'-tagged TODO lines that are neither `WAITING' nor
  2408. `NEXT'
  2409. `work/+WAITING|+NEXT'
  2410. Select `:work:'-tagged TODO lines that are either `WAITING' or
  2411. `NEXT'.
  2412. Any element of the tag/todo match can be a regular expression - in
  2413. this case it must be enclosed in curly braces. For example,
  2414. `work+{^boss.*}' matches headlines that contain the tag `:work:' and
  2415. any tag starting with `boss'.
  2416. You can also require a headline to be of a certain level or
  2417. category, by writing instead of any TAG an expression like `LEVEL=3' or
  2418. `CATEGORY="work"', respectively. For example, a search
  2419. `+LEVEL=3+boss/-DONE' lists all level three headlines that have the tag
  2420. `boss' and are _not_ marked with the todo keyword DONE.
  2421. 
  2422. File: org, Node: Properties and columns, Next: Dates and times, Prev: Tags, Up: Top
  2423. 7 Properties and Columns
  2424. ************************
  2425. Properties are a set of key-value pairs associated with an entry. There
  2426. are two main applications for properties in Org-mode. First, properties
  2427. are like tags, but with a value. Second, you can use properties to
  2428. implement (very basic) database capabilities in an Org-mode buffer. For
  2429. an example of the first application, imagine maintaining a file where
  2430. you document bugs and plan releases of a piece of software. Instead of
  2431. using tags like `:release_1:', `:release_2:', one can use a property,
  2432. say `:Release:', that in different subtrees has different values, such
  2433. as `1.0' or `2.0'. For an example of the second application of
  2434. properties, imagine keeping track of one's music CD's, where properties
  2435. could be things such as the album artist, date of release, number of
  2436. tracks, and so on.
  2437. Properties can be conveniently edited and viewed in column view
  2438. (*note Column view::).
  2439. Properties are like tags, but with a value. For example, in a file
  2440. where you document bugs and plan releases of a piece of software,
  2441. instead of using tags like `:release_1:', `:release_2:', it can be more
  2442. efficient to use a property `:Release:' with a value `1.0' or `2.0'.
  2443. Second, you can use properties to implement (very basic) database
  2444. capabilities in an Org-mode buffer, for example to create a list of
  2445. Music CD's you own. You can edit and view properties conveniently in
  2446. column view (*note Column view::).
  2447. * Menu:
  2448. * Property syntax:: How properties are spelled out
  2449. * Special properties:: Access to other Org-mode features
  2450. * Property searches:: Matching property values
  2451. * Property inheritance:: Passing values down the tree
  2452. * Column view:: Tabular viewing and editing
  2453. * Property API:: Properties for Lisp programmers
  2454. 
  2455. File: org, Node: Property syntax, Next: Special properties, Prev: Properties and columns, Up: Properties and columns
  2456. 7.1 Property Syntax
  2457. ===================
  2458. Properties are key-value pairs. They need to be inserted into a special
  2459. drawer (*note Drawers::) with the name `PROPERTIES'. Each property is
  2460. specified on a single line, with the key (surrounded by colons) first,
  2461. and the value after it. Here is an example:
  2462. * CD collection
  2463. ** Classic
  2464. *** Goldberg Variations
  2465. :PROPERTIES:
  2466. :Title: Goldberg Variations
  2467. :Composer: J.S. Bach
  2468. :Artist: Glen Gould
  2469. :Publisher: Deutsche Grammphon
  2470. :NDisks: 1
  2471. :END:
  2472. You may define the allowed values for a particular property `:Xyz:'
  2473. by setting a property `:Xyz_ALL:'. This special property is
  2474. _inherited_, so if you set it in a level 1 entry, it will apply to the
  2475. entire tree. When allowed values are defined, setting the
  2476. corresponding property becomes easier and is less prone to typing
  2477. errors. For the example with the CD collection, we can predefine
  2478. publishers and the number of disks in a box like this:
  2479. * CD collection
  2480. :PROPERTIES:
  2481. :NDisks_ALL: 1 2 3 4
  2482. :Publisher_ALL: "Deutsche Grammophon" Phillips EMI
  2483. :END:
  2484. If you want to set properties that can be inherited by any entry in a
  2485. file, use a line like
  2486. #+PROPERTY: NDisks_ALL 1 2 3 4
  2487. Property values set with the global variable `org-global-properties'
  2488. can be inherited by all entries in all Org-mode files.
  2489. The following commands help to work with properties:
  2490. `M-<TAB>'
  2491. After an initial colon in a line, complete property keys. All
  2492. keys used in the current file will be offered as possible
  2493. completions.
  2494. `C-c C-x p'
  2495. Set a property. This prompts for a property name and a value. If
  2496. necessary, the property drawer is created as well.
  2497. `M-x org-insert-property-drawer'
  2498. Insert a property drawer into the current entry. The drawer will
  2499. be inserted early in the entry, but after the lines with planning
  2500. information like deadlines.
  2501. `C-c C-c'
  2502. With the cursor in a property drawer, this executes property
  2503. commands.
  2504. `C-c C-c s'
  2505. Set a property in the current entry. Both the property and the
  2506. value can be inserted using completion.
  2507. `S-<left>/<right>'
  2508. Switch property at point to the next/previous allowed value.
  2509. `C-c C-c d'
  2510. Remove a property from the current entry.
  2511. `C-c C-c D'
  2512. Globally remove a property, from all entries in the current file.
  2513. `C-c C-c c'
  2514. Compute the property at point, using the operator and scope from
  2515. the nearest column format definition.
  2516. 
  2517. File: org, Node: Special properties, Next: Property searches, Prev: Property syntax, Up: Properties and columns
  2518. 7.2 Special Properties
  2519. ======================
  2520. Special properties provide alternative access method to Org-mode
  2521. features discussed in the previous chapters, like the TODO state or the
  2522. priority of an entry. This interface exists so that you can include
  2523. these states into columns view (*note Column view::), or to use them in
  2524. queries. The following property names are special and should not be
  2525. used as keys in the properties drawer:
  2526. TODO The TODO keyword of the entry.
  2527. TAGS The tags defined directly in the headline.
  2528. ALLTAGS All tags, including inherited ones.
  2529. PRIORITY The priority of the entry, a string with a single letter.
  2530. DEADLINE The deadline time string, without the angular brackets.
  2531. SCHEDULED The scheduling time stamp, without the angular brackets.
  2532. TIMESTAMP The first keyword-less time stamp in the entry.
  2533. TIMESTAMP_IA The first inactive time stamp in the entry.
  2534. CLOCKSUM The sum of CLOCK intervals in the subtree. `org-clock-sum'
  2535. must be run first to compute the values.
  2536. 
  2537. File: org, Node: Property searches, Next: Property inheritance, Prev: Special properties, Up: Properties and columns
  2538. 7.3 Property searches
  2539. =====================
  2540. To create sparse trees and special lists with selection based on
  2541. properties, the same commands are used as for tag searches (*note Tag
  2542. searches::), and the same logic applies. For example, a search string
  2543. +work-boss+PRIORITY="A"+Coffee="unlimited"+With={Sarah\|Denny}
  2544. finds entries tagged `:work:' but not `:boss:', which also have a
  2545. priority value `A', a `:Coffee:' property with the value `unlimited',
  2546. and a `:With:' property that is matched by the regular expression
  2547. `Sarah\|Denny'.
  2548. You can configure Org-mode to use property inheritance during a
  2549. search, see *Note Property inheritance:: for details.
  2550. There is also a special command for creating sparse trees based on a
  2551. single property:
  2552. `C-c / p'
  2553. Create a sparse tree based on the value of a property. This first
  2554. prompts for the name of a property, and then for a value. A
  2555. sparse tree is created with all entries that define this property
  2556. with the given value. If you enclose the value into curly braces,
  2557. it is interpreted as a regular expression and matched against the
  2558. property values.
  2559. 
  2560. File: org, Node: Property inheritance, Next: Column view, Prev: Property searches, Up: Properties and columns
  2561. 7.4 Property Inheritance
  2562. ========================
  2563. The outline structure of Org-mode documents lends itself for an
  2564. inheritance model of properties: If the parent in a tree has a certain
  2565. property, the children can inherit this property. Org-mode does not
  2566. turn this on by default, because it can slow down property searches
  2567. significantly and is often not needed. However, if you find inheritance
  2568. useful, you can turn it on by setting the variable
  2569. `org-use-property-inheritance'. It may be set to `t', to make all
  2570. properties inherited from the parent, or to a list of properties that
  2571. should be inherited.
  2572. Org-mode has a few properties for which inheritance is hard-coded, at
  2573. least for the special applications for which they are used:
  2574. `COLUMNS'
  2575. The `:COLUMNS:' property defines the format of column view (*note
  2576. Column view::). It is inherited in the sense that the level where
  2577. a `:COLUMNS:' property is defined is used as the starting point
  2578. for a column view table, independently of the location in the
  2579. subtree from where columns view is turned on.
  2580. `CATEGORY'
  2581. For agenda view, a category set through a `:CATEGORY:' property
  2582. applies to the entire subtree.
  2583. `ARCHIVE'
  2584. For archiving, the `:ARCHIVE:' property may define the archive
  2585. location for the entire subtree (*note Moving subtrees::).
  2586. 
  2587. File: org, Node: Column view, Next: Property API, Prev: Property inheritance, Up: Properties and columns
  2588. 7.5 Column View
  2589. ===============
  2590. A great way to view and edit properties in an outline tree is _column
  2591. view_. In column view, each outline item is turned into a table row.
  2592. Columns in this table provide access to properties of the entries.
  2593. Org-mode implements columns by overlaying a tabular structure over the
  2594. headline of each item. While the headlines have been turned into a
  2595. table row, you can still change the visibility of the outline tree.
  2596. For example, you get a compact table by switching to CONTENTS view
  2597. (`S-<TAB> S-<TAB>', or simply `c' while column view is active), but you
  2598. can still open, read, and edit the entry below each headline. Or, you
  2599. can switch to column view after executing a sparse tree command and in
  2600. this way get a table only for the selected items. Column view also
  2601. works in agenda buffers (*note Agenda views::) where queries have
  2602. collected selected items, possibly from a number of files.
  2603. * Menu:
  2604. * Defining columns:: The COLUMNS format property
  2605. * Using column view:: How to create and use column view
  2606. * Capturing Column View:: A dynamic block for column view
  2607. 
  2608. File: org, Node: Defining columns, Next: Using column view, Prev: Column view, Up: Column view
  2609. 7.5.1 Defining Columns
  2610. ----------------------
  2611. Setting up a column view first requires defining the columns. This is
  2612. done by defining a column format line.
  2613. * Menu:
  2614. * Scope of column definitions:: Where defined, where valid?
  2615. * Column attributes:: Appearance and content of a column
  2616. 
  2617. File: org, Node: Scope of column definitions, Next: Column attributes, Prev: Defining columns, Up: Defining columns
  2618. 7.5.1.1 Scope of column definitions
  2619. ...................................
  2620. To define a column format for an entire file, use a line like
  2621. #+COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
  2622. To specify a format that only applies to a specific tree, add a
  2623. `:COLUMNS:' property to the top node of that tree, for example:
  2624. ** Top node for columns view
  2625. :PROPERTIES:
  2626. :COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
  2627. :END:
  2628. If a `:COLUMNS:' property is present in an entry, it defines columns
  2629. for the entry itself, and for the entire subtree below it. Since the
  2630. column definition is part of the hierarchical structure of the document,
  2631. you can define columns on level 1 that are general enough for all
  2632. sublevels, and more specific columns further down, when you edit a
  2633. deeper part of the tree.
  2634. 
  2635. File: org, Node: Column attributes, Prev: Scope of column definitions, Up: Defining columns
  2636. 7.5.1.2 Column attributes
  2637. .........................
  2638. A column definition sets the attributes of a column. The general
  2639. definition looks like this:
  2640. %[width]property[(title)][{summary-type}]
  2641. Except for the percent sign and the property name, all items are
  2642. optional. The individual parts have the following meaning:
  2643. width An integer specifying the width of the column in characters.
  2644. If omitted, the width will be determined automatically.
  2645. property The property that should be edited in this column.
  2646. (title) The header text for the column. If omitted, the
  2647. property name is used.
  2648. {summary-type} The summary type. If specified, the column values for
  2649. parent nodes are computed from the children.
  2650. Supported summary types are:
  2651. {+} Sum numbers in this column.
  2652. {+;%.1f} Like `+', but format result with `%.1f'.
  2653. {$} Currency, short for `+;%.2f'.
  2654. {:} Sum times, HH:MM:SS, plain numbers are hours.
  2655. {X} Checkbox status, [X] if all children are [X].
  2656. Here is an example for a complete columns definition, along with allowed
  2657. values.
  2658. :COLUMNS: %20ITEM %9Approved(Approved?){X} %Owner %11Status \(1)
  2659. %10Time_Estimate{:} %CLOCKSUM
  2660. :Owner_ALL: Tammy Mark Karl Lisa Don
  2661. :Status_ALL: "In progress" "Not started yet" "Finished" ""
  2662. :Approved_ALL: "[ ]" "[X]"
  2663. The first column, `%25ITEM', means the first 25 characters of the
  2664. item itself, i.e. of the headline. You probably always should start the
  2665. column definition with the ITEM specifier. The other specifiers create
  2666. columns `Owner' with a list of names as allowed values, for `Status'
  2667. with four different possible values, and for a checkbox field
  2668. `Approved'. When no width is given after the `%' character, the column
  2669. will be exactly as wide as it needs to be in order to fully display all
  2670. values. The `Approved' column does have a modified title (`Approved?',
  2671. with a question mark). Summaries will be created for the
  2672. `Time_Estimate' column by adding time duration expressions like HH:MM,
  2673. and for the `Approved' column, by providing an `[X]' status if all
  2674. children have been checked. The `CLOCKSUM' column is special, it lists
  2675. the sum of CLOCK intervals in the subtree.
  2676. ---------- Footnotes ----------
  2677. (1) Please note that the COLUMNS definition must be on a single line
  2678. - it is wrapped here only because of formatting constraints.
  2679. 
  2680. File: org, Node: Using column view, Next: Capturing Column View, Prev: Defining columns, Up: Column view
  2681. 7.5.2 Using Column View
  2682. -----------------------
  2683. Turning column view on and off
  2684. ..............................
  2685. `C-c C-x C-c'
  2686. Create the column view for the local environment. This command
  2687. searches the hierarchy, up from point, for a `:COLUMNS:' property
  2688. that defines a format. When one is found, the column view table
  2689. is established for the entire tree, starting from the entry that
  2690. contains the `:COLUMNS:' property. If none is found, the format
  2691. is taken from the `#+COLUMNS' line or from the variable
  2692. `org-columns-default-format', and column view is established for
  2693. the current entry and its subtree.
  2694. `r'
  2695. Recreate the column view, to included hanges happening in the
  2696. buffer.
  2697. `g'
  2698. Same as `r'.
  2699. `q'
  2700. Exit column view.
  2701. Editing values
  2702. ..............
  2703. `<left> <right> <up> <down>'
  2704. Move through the column view from field to field.
  2705. `S-<left>/<right>'
  2706. Switch to the next/previous allowed value of the field. For this,
  2707. you have to have specified allowed values for a property.
  2708. `n / p'
  2709. Same as `S-<left>/<right>'
  2710. `e'
  2711. Edit the property at point. For the special properties, this will
  2712. invoke the same interface that you normally use to change that
  2713. property. For example, when editing a TAGS property, the tag
  2714. completion or fast selection interface will pop up.
  2715. `C-c C-c'
  2716. When there is a checkbox at point, toggle it.
  2717. `v'
  2718. View the full value of this property. This is useful if the width
  2719. of the column is smaller than that of the value.
  2720. `a'
  2721. Edit the list of allowed values for this property. If the list is
  2722. found in the hierarchy, the modified values is stored there. If
  2723. no list is found, the new value is stored in the first entry that
  2724. is part of the current column view.
  2725. Modifying the table structure
  2726. .............................
  2727. `< / >'
  2728. Make the column narrower/wider by one character.
  2729. `S-M-<right>'
  2730. Insert a new column, to the right of the current column.
  2731. `S-M-<left>'
  2732. Delete the current column.
  2733. 
  2734. File: org, Node: Capturing Column View, Prev: Using column view, Up: Column view
  2735. 7.5.3 Capturing Column View
  2736. ---------------------------
  2737. Since column view is just an overlay over a buffer, it cannot be
  2738. exported or printed directly. If you want to capture a column view, use
  2739. the dynamic block (*note Dynamic blocks::). The frame of this block
  2740. looks like this:
  2741. * The column view
  2742. #+BEGIN: columnview :hlines 1 :id "label"
  2743. #+END:
  2744. This dynamic block has the following parameters:
  2745. `:id'
  2746. This is most important parameter. Column view is a feature that is
  2747. often localized to a certain (sub)tree, and the capture block
  2748. might be in a different location in the file. To identify the
  2749. tree whose view to capture, you can use 3 values:
  2750. local use the tree in which the capture block is located
  2751. global make a global view, including all headings in the file
  2752. "label" call column view in the tree that has and `:ID:'
  2753. property with the value label
  2754. `:hlines'
  2755. When `t', insert a hline after every line. When a number N, insert
  2756. a hline before each headline with level `<= N'.
  2757. `:vlines'
  2758. When set to `t', enforce column groups to get vertical lines.
  2759. The following commands insert or update the dynamic block:
  2760. `C-c C-x r'
  2761. Insert a dynamic block capturing a column view. You will be
  2762. prompted for the scope or id of the view.
  2763. `C-c C-c'
  2764. `C-c C-x C-u'
  2765. Update dynamical block at point. The cursor needs to be in the
  2766. `#+BEGIN' line of the dynamic block.
  2767. `C-u C-c C-x C-u'
  2768. Update all dynamic blocks (*note Dynamic blocks::). This is
  2769. useful if you have several clocktable blocks in a buffer.
  2770. 
  2771. File: org, Node: Property API, Prev: Column view, Up: Properties and columns
  2772. 7.6 The Property API
  2773. ====================
  2774. There is a full API for accessing and changing properties. This API can
  2775. be used by Emacs Lisp programs to work with properties and to implement
  2776. features based on them. For more information see *Note Using the
  2777. property API::.
  2778. 
  2779. File: org, Node: Dates and times, Next: Remember, Prev: Properties and columns, Up: Top
  2780. 8 Dates and Times
  2781. *****************
  2782. To assist project planning, TODO items can be labeled with a date and/or
  2783. a time. The specially formatted string carrying the date and time
  2784. information is called a _timestamp_ in Org-mode. This may be a little
  2785. confusing because timestamp is often used as indicating when something
  2786. was created or last changed. However, in Org-mode this term is used in
  2787. a much wider sense.
  2788. * Menu:
  2789. * Time stamps:: Assigning a time to a tree entry
  2790. * Creating timestamps:: Commands which insert timestamps
  2791. * Deadlines and scheduling:: Planning your work
  2792. * Clocking work time::
  2793. 
  2794. File: org, Node: Time stamps, Next: Creating timestamps, Prev: Dates and times, Up: Dates and times
  2795. 8.1 Time stamps, deadlines and scheduling
  2796. =========================================
  2797. A time stamp is a specification of a date (possibly with time or a range
  2798. of times) in a special format, either `<2003-09-16 Tue>' or
  2799. `<2003-09-16 Tue 09:39>' or `<2003-09-16 Tue 12:00-12:30>'(1). A time
  2800. stamp can appear anywhere in the headline or body of an org-tree entry.
  2801. Its presence causes entries to be shown on specific dates in the agenda
  2802. (*note Weekly/Daily agenda::). We distinguish:
  2803. PLAIN TIME STAMP; EVENT; APPOINTMENT
  2804. A simple time stamp just assigns a date/time to an item. This is
  2805. just like writing down an appointment or event in a paper agenda.
  2806. In the timeline and agenda displays, the headline of an entry
  2807. associated with a plain time stamp will be shown exactly on that
  2808. date.
  2809. * Meet Peter at the movies <2006-11-01 Wed 19:15>
  2810. * Discussion on climate change <2006-11-02 Thu 20:00-22:00>
  2811. TIME STAMP WITH REPEATER INTERVAL
  2812. A time stamp may contain a _repeater interval_, indicating that it
  2813. applies not only on the given date, but again and again after a
  2814. certain interval of N days (d), weeks (w), months(m), or years(y).
  2815. The following will show up in the agenda every Wednesday:
  2816. * Pick up Sam at school <2007-05-16 Wed 12:30 +1w>
  2817. DIARY-STYLE SEXP ENTRIES
  2818. For more complex date specifications, Org-mode supports using the
  2819. special sexp diary entries implemented in the Emacs calendar/diary
  2820. package. For example
  2821. * The nerd meeting on every 2nd Thursday of the month
  2822. <%%(diary-float t 4 2)>
  2823. TIME/DATE RANGE
  2824. Two time stamps connected by `--' denote a range. The headline
  2825. will be shown on the first and last day of the range, and on any
  2826. dates that are displayed and fall in the range. Here is an
  2827. example:
  2828. ** Meeting in Amsterdam
  2829. <2004-08-23 Mon>--<2004-08-26 Thu>
  2830. INACTIVE TIME STAMP
  2831. Just like a plain time stamp, but with square brackets instead of
  2832. angular ones. These time stamps are inactive in the sense that
  2833. they do _not_ trigger an entry to show up in the agenda.
  2834. * Gillian comes late for the fifth time [2006-11-01 Wed]
  2835. ---------- Footnotes ----------
  2836. (1) This is the standard ISO date/time format. To use an
  2837. alternative format, see *Note Custom time format::.
  2838. 
  2839. File: org, Node: Creating timestamps, Next: Deadlines and scheduling, Prev: Time stamps, Up: Dates and times
  2840. 8.2 Creating timestamps
  2841. =======================
  2842. For Org-mode to recognize time stamps, they need to be in the specific
  2843. format. All commands listed below produce time stamps in the correct
  2844. format.
  2845. `C-c .'
  2846. Prompt for a date and insert a corresponding time stamp. When the
  2847. cursor is at a previously used time stamp, it is updated to NOW.
  2848. When this command is used twice in succession, a time range is
  2849. inserted.
  2850. `C-u C-c .'
  2851. Like `C-c .', but use the alternative format which contains date
  2852. and time. The default time can be rounded to multiples of 5
  2853. minutes, see the option `org-time-stamp-rounding-minutes'.
  2854. `C-c !'
  2855. Like `C-c .', but insert an inactive time stamp that will not cause
  2856. an agenda entry.
  2857. `C-c <'
  2858. Insert a time stamp corresponding to the cursor date in the
  2859. Calendar.
  2860. `C-c >'
  2861. Access the Emacs calendar for the current date. If there is a
  2862. timestamp in the current line, goto the corresponding date instead.
  2863. `C-c C-o'
  2864. Access the agenda for the date given by the time stamp or -range at
  2865. point (*note Weekly/Daily agenda::).
  2866. `S-<left>'
  2867. `S-<right>'
  2868. Change date at cursor by one day. These key bindings conflict with
  2869. CUA-mode (*note Conflicts::).
  2870. `S-<up>'
  2871. `S-<down>'
  2872. Change the item under the cursor in a timestamp. The cursor can
  2873. be on a year, month, day, hour or minute. Note that if the cursor
  2874. is in a headline and not at a time stamp, these same keys modify
  2875. the priority of an item. (*note Priorities::). The key bindings
  2876. also conflict with CUA-mode (*note Conflicts::).
  2877. `C-c C-y'
  2878. Evaluate a time range by computing the difference between start and
  2879. end. With prefix arg, insert result after the time range (in a
  2880. table: into the following column).
  2881. * Menu:
  2882. * The date/time prompt:: How org-mode helps you entering date and time
  2883. * Custom time format:: Making dates look differently
  2884. 
  2885. File: org, Node: The date/time prompt, Next: Custom time format, Prev: Creating timestamps, Up: Creating timestamps
  2886. 8.2.1 The date/time prompt
  2887. --------------------------
  2888. When Org-mode prompts for a date/time, the default is shown as an ISO
  2889. date, and the prompt therefore seems to ask for an ISO date. But it
  2890. will in fact accept any string containing some date and/or time
  2891. information, and it is really smart about interpreting your input. You
  2892. can, for example, use `C-y' to paste a (possibly multi-line) string
  2893. copied from an email message. Org-mode will find whatever information
  2894. is in there and derive anything you have not specified from the
  2895. _default date and time_. The default is usually the current date and
  2896. time, but when modifying an existing time stamp, or when entering the
  2897. second stamp of a range, it is taken from the stamp in the buffer.
  2898. When filling in information, Org-mode assumes that most of the time you
  2899. will want to enter a date in the future: If you omit the month/year and
  2900. the given day/month is before today, it will assume that you mean a
  2901. future date(1).
  2902. For example, lets assume that today is June 13, 2006. Here is how
  2903. various inputs will be interpreted, the items filled in by Org-mode are
  2904. in bold.
  2905. 3-2-5 --> 2003-02-05
  2906. 14 --> 2006-06-14
  2907. 12 --> 2006-07-12
  2908. Fri --> nearest Friday (defaultdate or later)
  2909. sep 15 --> 2006-11-15
  2910. feb 15 --> 2007-02-15
  2911. sep 12 9 --> 2009-09-12
  2912. 12:45 --> 2006-06-13 12:45
  2913. 22 sept 0:34 --> 2006-09-22 0:34
  2914. Furthermore you can specify a relative date by giving, as the
  2915. _first_ thing in the input: a plus/minus sign, a number and a letter
  2916. [dwmy] to indicate change in days weeks, months, years. With a single
  2917. plus or minus, the date is always relative to today. With a double
  2918. plus or minus, it is relative to the default date. If instead of a
  2919. single letter, you use the abbreviation of day name, the date will be
  2920. the nth such day. E.g.
  2921. +4d --> four days from today
  2922. +4 --> same as above
  2923. +2w --> two weeks from today
  2924. ++5 --> five days from default date
  2925. +2tue --> second tuesday from now.
  2926. The function understands English month and weekday abbreviations. If
  2927. you want to use unabbreviated names and/or other languages, configure
  2928. the variables `parse-time-months' and `parse-time-weekdays'.
  2929. Parallel to the minibuffer prompt, a calendar is popped up(2). When
  2930. you exit the date prompt, either by clicking on a date in the calendar,
  2931. or by pressing <RET>, the date selected in the calendar will be
  2932. combined with the information entered at the prompt. You can control
  2933. the calendar fully from the minibuffer:
  2934. > / < Scroll calendar forward/backward by one month.
  2935. mouse-1 Select date by clicking on it.
  2936. S-<right>/<left> One day forward/backward.
  2937. S-<down>/<up> One week forward/backward.
  2938. M-S-<right>/<left> One month forward/backward.
  2939. <RET> Choose date in calendar.
  2940. The actions of the date/time prompt may seem complex, but I asure you
  2941. they will grow on you. To help you understand what is going on, the
  2942. current interpretation of your input will be displayed live in the
  2943. minibuffer(3).
  2944. ---------- Footnotes ----------
  2945. (1) See the variable `org-read-date-prefer-future'.
  2946. (2) If you don't need/want the calendar, configure the variable
  2947. `org-popup-calendar-for-date-prompt'.
  2948. (3) If you find this distracting, turn the display of with
  2949. `org-read-date-display-live'.
  2950. 
  2951. File: org, Node: Custom time format, Prev: The date/time prompt, Up: Creating timestamps
  2952. 8.2.2 Custom time format
  2953. ------------------------
  2954. Org-mode uses the standard ISO notation for dates and times as it is
  2955. defined in ISO 8601. If you cannot get used to this and require another
  2956. representation of date and time to keep you happy, you can get it by
  2957. customizing the variables `org-display-custom-times' and
  2958. `org-time-stamp-custom-formats'.
  2959. `C-c C-x C-t'
  2960. Toggle the display of custom formats for dates and times.
  2961. Org-mode needs the default format for scanning, so the custom date/time
  2962. format does not _replace_ the default format - instead it is put _over_
  2963. the default format using text properties. This has the following
  2964. consequences:
  2965. * You cannot place the cursor onto a time stamp anymore, only before
  2966. or after.
  2967. * The `S-<up>/<down>' keys can no longer be used to adjust each
  2968. component of a time stamp. If the cursor is at the beginning of
  2969. the stamp, `S-<up>/<down>' will change the stamp by one day, just
  2970. like `S-<left>/<right>'. At the end of the stamp, the time will
  2971. be changed by one minute.
  2972. * If the time stamp contains a range of clock times or a repeater,
  2973. these will not be overlayed, but remain in the buffer as they were.
  2974. * When you delete a time stamp character-by-character, it will only
  2975. disappear from the buffer after _all_ (invisible) characters
  2976. belonging to the ISO timestamp have been removed.
  2977. * If the custom time stamp format is longer than the default and you
  2978. are using dates in tables, table alignment will be messed up. If
  2979. the custom format is shorter, things do work as expected.
  2980. 
  2981. File: org, Node: Deadlines and scheduling, Next: Clocking work time, Prev: Creating timestamps, Up: Dates and times
  2982. 8.3 Deadlines and Scheduling
  2983. ============================
  2984. A time stamp may be preceded by special keywords to facilitate planning:
  2985. DEADLINE
  2986. Meaning: the task (most likely a TODO item, though not
  2987. necessarily) is supposed to be finished on that date.
  2988. On the deadline date, the task will be listed in the agenda. In
  2989. addition, the agenda for _today_ will carry a warning about the
  2990. approaching or missed deadline, starting
  2991. `org-deadline-warning-days' before the due date, and continuing
  2992. until the entry is marked DONE. An example:
  2993. *** TODO write article about the Earth for the Guide
  2994. The editor in charge is [[bbdb:Ford Prefect]]
  2995. DEADLINE: <2004-02-29 Sun>
  2996. You can specify a different lead time for warnings for a specific
  2997. deadlines using the following syntax. Here is an example with a
  2998. warning period of 5 days `DEADLINE: <2004-02-29 Sun -5d>'.
  2999. SCHEDULED
  3000. Meaning: you are planning to start working on that task on the
  3001. given date.
  3002. The headline will be listed under the given date(1). In addition,
  3003. a reminder that the scheduled date has passed will be present in
  3004. the compilation for _today_, until the entry is marked DONE.
  3005. I.e., the task will automatically be forwarded until completed.
  3006. *** TODO Call Trillian for a date on New Years Eve.
  3007. SCHEDULED: <2004-12-25 Sat>
  3008. Important: Scheduling an item in Org-mode should not be understood
  3009. in the same way that we understand scheduling a meeting. Setting
  3010. a date for a meeting is just a simple appointment, you should mark
  3011. this entry with a simple plain time stamp, to get this item shown
  3012. on the date where it applies. This is a frequent
  3013. mis-understanding from Org-users. In Org-mode, scheduling means
  3014. setting a date when you want to start working on an action item.
  3015. You may use time stamps with repeaters in scheduling and deadline
  3016. entries. Org-mode will issue early and late warnings based on the
  3017. assumption that the time stamp represents the nearest instance of the
  3018. repeater. However, the use of diary sexp entries like `<%%(diary-float
  3019. t 42)>' in scheduling and deadline timestamps is limited. Org-mode
  3020. does not know enough about the internals of each sexp function to issue
  3021. early and late warnings. However, it will show the item on each day
  3022. where the sexp entry matches.
  3023. * Menu:
  3024. * Inserting deadline/schedule:: Planning items
  3025. * Repeated tasks:: Items that show up again and again
  3026. ---------- Footnotes ----------
  3027. (1) It will still be listed on that date after it has been marked
  3028. DONE. If you don't like this, set the variable
  3029. `org-agenda-skip-scheduled-if-done'.
  3030. 
  3031. File: org, Node: Inserting deadline/schedule, Next: Repeated tasks, Prev: Deadlines and scheduling, Up: Deadlines and scheduling
  3032. 8.3.1 Inserting deadline/schedule
  3033. ---------------------------------
  3034. The following commands allow to quickly insert a deadline or to schedule
  3035. an item:
  3036. `C-c C-d'
  3037. Insert `DEADLINE' keyword along with a stamp. The insertion will
  3038. happen in the line directly following the headline. When called
  3039. with a prefix arg, an existing deadline will be removed from the
  3040. entry.
  3041. `C-c / d'
  3042. Create a sparse tree with all deadlines that are either past-due,
  3043. or which will become due within `org-deadline-warning-days'. With
  3044. `C-u' prefix, show all deadlines in the file. With a numeric
  3045. prefix, check that many days. For example, `C-1 C-c / d' shows
  3046. all deadlines due tomorrow.
  3047. `C-c C-s'
  3048. Insert `SCHEDULED' keyword along with a stamp. The insertion will
  3049. happen in the line directly following the headline. Any CLOSED
  3050. timestamp will be removed. When called with a prefix argument,
  3051. remove the scheduling date from the entry.
  3052. 
  3053. File: org, Node: Repeated tasks, Prev: Inserting deadline/schedule, Up: Deadlines and scheduling
  3054. 8.3.2 Repeated Tasks
  3055. --------------------
  3056. Some tasks need to be repeated again and again. Org-mode helps to
  3057. organize such tasks using a so-called repeater in a DEADLINE, SCHEDULED,
  3058. or plain time stamp. In the following example
  3059. ** TODO Pay the rent
  3060. DEADLINE: <2005-10-01 Sat +1m>
  3061. the `+1m' is a repeater; the intended interpretation is that the
  3062. task has a deadline on <2005-10-01> and repeats itself every (one) month
  3063. starting from that time.
  3064. Deadlines and scheduled items produce entries in the agenda when they
  3065. are over-due, so it is important to be able to mark such an entry as
  3066. completed once you have done so. When you mark a DEADLINE or a SCHEDULE
  3067. with the todo keyword DONE, it will no longer produce entries in the
  3068. agenda. The problem with this is, however, that then also the _next_
  3069. instance of the repeated entry will not be active. Org-mode deals with
  3070. this in the following way: When you try to mark such an entry DONE
  3071. (using `C-c C-t'), it will shift the base date of the repeating time
  3072. stamp by the repeater interval, and immediately set the entry state
  3073. back to TODO. In the example above, setting the state to DONE would
  3074. actually switch the date like this:
  3075. ** TODO Pay the rent
  3076. DEADLINE: <2005-11-01 Tue +1m>
  3077. You will also be prompted for a note(1) that will be put under the
  3078. DEADLINE line to keep a record that you actually acted on the previous
  3079. instance of this deadline.
  3080. As a consequence of shifting the base date, this entry will no
  3081. longer be visible in the agenda when checking past dates, but all
  3082. future instances will be visible.
  3083. You may have both scheduling and deadline information for a specific
  3084. task - just make sure that the repeater intervals on both are the same.
  3085. ---------- Footnotes ----------
  3086. (1) You can change this using the option `org-log-repeat', or the
  3087. `#+STARTUP' options `logrepeat' and `nologrepeat'.
  3088. 
  3089. File: org, Node: Clocking work time, Prev: Deadlines and scheduling, Up: Dates and times
  3090. 8.4 Clocking work time
  3091. ======================
  3092. Org-mode allows you to clock the time you spent on specific tasks in a
  3093. project. When you start working on an item, you can start the clock.
  3094. When you stop working on that task, or when you mark the task done, the
  3095. clock is stopped and the corresponding time interval is recorded. It
  3096. also computes the total time spent on each subtree of a project.
  3097. `C-c C-x C-i'
  3098. Start the clock on the current item (clock-in). This inserts the
  3099. CLOCK keyword together with a timestamp. If this is not the first
  3100. clocking of this item, the multiple CLOCK lines will be wrapped
  3101. into a `:CLOCK:' drawer (see also the variable
  3102. `org-clock-into-drawer'.
  3103. `C-c C-x C-o'
  3104. Stop the clock (clock-out). The inserts another timestamp at the
  3105. same location where the clock was last started. It also directly
  3106. computes the resulting time in inserts it after the time range as
  3107. `=> HH:MM'. See the variable `org-log-done' for the possibility to
  3108. record an additional note together with the clock-out time
  3109. stamp(1).
  3110. `C-c C-y'
  3111. Recompute the time interval after changing one of the time stamps.
  3112. This is only necessary if you edit the time stamps directly. If
  3113. you change them with `S-<cursor>' keys, the update is automatic.
  3114. `C-c C-t'
  3115. Changing the TODO state of an item to DONE automatically stops the
  3116. clock if it is running in this same item.
  3117. `C-c C-x C-x'
  3118. Cancel the current clock. This is useful if a clock was started by
  3119. mistake, or if you ended up working on something else.
  3120. `C-c C-x C-j'
  3121. Jump to the entry that contains the currently running clock, an
  3122. another window.
  3123. `C-c C-x C-d'
  3124. Display time summaries for each subtree in the current buffer.
  3125. This puts overlays at the end of each headline, showing the total
  3126. time recorded under that heading, including the time of any
  3127. subheadings. You can use visibility cycling to study the tree, but
  3128. the overlays disappear when you change the buffer (see variable
  3129. `org-remove-highlights-with-change') or press `C-c C-c'.
  3130. `C-c C-x C-r'
  3131. Insert a dynamic block (*note Dynamic blocks::) containing a clock
  3132. report as an org-mode table into the current file. When the
  3133. cursor is at an existing clock table, just update it. When called
  3134. with a prefix argument, jump to the first clock report in the
  3135. current document and update it.
  3136. #+BEGIN: clocktable :maxlevel 2 :emphasize nil :scope file
  3137. #+END: clocktable
  3138. If such a block already exists at point, its content is replaced
  3139. by the new table. The `BEGIN' line can specify options:
  3140. :maxlevel Maximum level depth to which times are listed in the table.
  3141. :emphasize When `t', emphasize level one and level two items
  3142. :scope The scope to consider. This can be any of the following:
  3143. nil the current buffer or narrowed region
  3144. file the full current buffer
  3145. subtree the subtree where the clocktable is located
  3146. treeN the surrounding level N tree, for example `tree3'
  3147. tree the surrounding level 1 tree
  3148. agenda all agenda files
  3149. ("file"..) scan these files
  3150. :block The time block to consider. This block is specified relative
  3151. to the current time and may be any of these keywords:
  3152. `today', `yesterday', `thisweek', `lastweek',
  3153. `thismonth', `lastmonth', `thisyear', or `lastyear'.
  3154. :tstart A time string specifying when to start considering times
  3155. :tend A time string specifying when to stop considering times
  3156. :step `week' or `day', to split the table into chunks
  3157. So to get a clock summary of the current level 1 tree, for the
  3158. current day, you could write
  3159. #+BEGIN: clocktable :maxlevel 2 :block today :scope tree1
  3160. #+END: clocktable
  3161. and to use a specific time range you could write(2)
  3162. #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
  3163. :tend "<2006-08-10 Thu 12:00>"
  3164. #+END: clocktable
  3165. `C-c C-c'
  3166. `C-c C-x C-u'
  3167. Update dynamical block at point. The cursor needs to be in the
  3168. `#+BEGIN' line of the dynamic block.
  3169. `C-u C-c C-x C-u'
  3170. Update all dynamic blocks (*note Dynamic blocks::). This is
  3171. useful if you have several clocktable blocks in a buffer.
  3172. The `l' key may be used in the timeline (*note Timeline::) and in
  3173. the agenda (*note Weekly/Daily agenda::) to show which tasks have been
  3174. worked on or closed during a day.
  3175. ---------- Footnotes ----------
  3176. (1) The corresponding in-buffer setting is: `#+STARTUP:
  3177. lognoteclock-out'
  3178. (2) Note that all parameters must be specified in a single line -
  3179. the line is broken here only to fit it onto the manual.
  3180. 
  3181. File: org, Node: Remember, Next: Agenda views, Prev: Dates and times, Up: Top
  3182. 9 Remember
  3183. **********
  3184. The Remember package by John Wiegley lets you store quick notes with
  3185. little interruption of your work flow. See
  3186. `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
  3187. information. It is an excellent way to add new notes and tasks to
  3188. Org-mode files. Org-mode significantly expands the possibilities of
  3189. remember: You may define templates for different note types, and
  3190. associate target files and headlines with specific templates. It also
  3191. allows you to select the location where a note should be stored
  3192. interactively, on the fly.
  3193. * Menu:
  3194. * Setting up remember:: Some code for .emacs to get things going
  3195. * Remember templates:: Define the outline of different note types
  3196. * Storing notes:: Directly get the note to where it belongs
  3197. * Refiling notes:: Moving a note or task to a project
  3198. 
  3199. File: org, Node: Setting up remember, Next: Remember templates, Prev: Remember, Up: Remember
  3200. 9.1 Setting up remember
  3201. =======================
  3202. The following customization will tell remember to use org files as
  3203. target, and to create annotations compatible with Org-mode links.
  3204. (org-remember-insinuate)
  3205. (setq org-directory "~/path/to/my/orgfiles/")
  3206. (setq org-default-notes-file (concat org-directory "/notes.org"))
  3207. (define-key global-map "\C-cr" 'org-remember)
  3208. The last line binds the command `org-remember' to a global key(1).
  3209. `org-remember' basically just calls `remember', but it makes a few
  3210. things easier: If there is an active region, it will automatically copy
  3211. the region into the remember buffer. It also allows to jump to the
  3212. buffer and location where remember notes are being stored: Just call
  3213. `org-remember' with a prefix argument. If you use two prefix
  3214. arguments, Org-mode jumps to the location where the last remember note
  3215. was stored.
  3216. ---------- Footnotes ----------
  3217. (1) Please select your own key, `C-c r' is only a suggestion.
  3218. 
  3219. File: org, Node: Remember templates, Next: Storing notes, Prev: Setting up remember, Up: Remember
  3220. 9.2 Remember templates
  3221. ======================
  3222. In combination with Org-mode, you can use templates to generate
  3223. different types of remember notes. For example, if you would like to
  3224. use one template to create general TODO entries, another one for
  3225. journal entries, and a third one for collecting random ideas, you could
  3226. use:
  3227. (setq org-remember-templates
  3228. '(("Todo" ?t "* TODO %?\n %i\n %a" "~/org/TODO.org" "Tasks")
  3229. ("Journal" ?j "* %U %?\n\n %i\n %a" "~/org/JOURNAL.org")
  3230. ("Idea" ?i "* %^{Title}\n %i\n %a" "~/org/JOURNAL.org" "New Ideas")))
  3231. In these entries, the first string is just a name, and the character
  3232. specifies how to select the template. It is useful if the character is
  3233. also the first letter of the name. The next string specifies the
  3234. template. Two more (optional) strings give the file in which, and the
  3235. headline under which the new note should be stored. The file (if not
  3236. present or `nil') defaults to `org-default-notes-file', the heading to
  3237. `org-remember-default-headline'.
  3238. When you call `M-x remember' (or `M-x org-remember') to remember
  3239. something, org will prompt for a key to select the template (if you have
  3240. more than one template) and then prepare the buffer like
  3241. * TODO
  3242. [[file:link to where you called remember]]
  3243. During expansion of the template, special `%'-escapes allow dynamic
  3244. insertion of content:
  3245. %^{prompt} prompt the user for a string and replace this sequence with it.
  3246. You may specify a default value and a completion table with
  3247. %^{prompt|default|completion2|completion3...}
  3248. The arrow keys access a prompt-specific history.
  3249. %t time stamp, date only
  3250. %T time stamp with date and time
  3251. %u, %U like the above, but inactive time stamps
  3252. %^t like `%t', but prompt for date. Similarly `%^T', `%^u', `%^U'
  3253. You may define a prompt like `%^{Birthday}t'
  3254. %n user name (taken from `user-full-name')
  3255. %a annotation, normally the link created with `org-store-link'
  3256. %A like `%a', but prompt for the description part
  3257. %i initial content, the region when remember is called with C-u.
  3258. The entire text will be indented like `%i' itself.
  3259. %c Content of the clipboard, or current kill ring head.
  3260. %^g prompt for tags, with completion on tags in target file.
  3261. %^G prompt for tags, with completion all tags in all agenda files.
  3262. %:keyword specific information for certain link types, see below
  3263. %[pathname] insert the contents of the file given by `pathname'
  3264. %(sexp) evaluate elisp `(sexp)' and replace with the result
  3265. %! immediately store note after completing the template
  3266. (skipping the `C-c C-c' that normally triggers storing)
  3267. For specific link types, the following keywords will be defined(1):
  3268. Link type | Available keywords
  3269. -------------------+----------------------------------------------
  3270. bbdb | %:name %:company
  3271. vm, wl, mh, rmail | %:type %:subject %:message-id
  3272. | %:from %:fromname %:fromaddress
  3273. | %:to %:toname %:toaddress
  3274. | %:fromto (either "to NAME" or "from NAME")(2)
  3275. gnus | %:group, for messages also all email fields
  3276. w3, w3m | %:url
  3277. info | %:file %:node
  3278. calendar | %:date"
  3279. To place the cursor after template expansion use:
  3280. %? After completing the template, position cursor here.
  3281. If you change you mind about which template to use, call `org-remember'
  3282. in the remember buffer. You may then select a new template that will
  3283. be filled with the previous context information.
  3284. ---------- Footnotes ----------
  3285. (1) If you define your own link types (*note Adding hyperlink
  3286. types::), any property you store with `org-store-link-props' can be
  3287. accessed in remember templates in a similar way.
  3288. (2) This will always be the other, not the user. See the variable
  3289. `org-from-is-user-regexp'.
  3290. 
  3291. File: org, Node: Storing notes, Next: Refiling notes, Prev: Remember templates, Up: Remember
  3292. 9.3 Storing notes
  3293. =================
  3294. When you are finished preparing a note with remember, you have to press
  3295. `C-c C-c' to file the note away. The handler will store the note in
  3296. the file and under the headline specified in the template, or it will
  3297. use the default file and headlines. The window configuration will be
  3298. restored, sending you back to the working context before the call to
  3299. `remember'. To re-use the location found during the last call to
  3300. `remember', exit the remember buffer with `C-u C-u C-c C-c', i.e.
  3301. specify a double prefix argument to `C-c C-c'.
  3302. If you want to store the note directly to a different place, use
  3303. `C-u C-c C-c' instead to exit remember(1). The handler will then first
  3304. prompt for a target file - if you press <RET>, the value specified for
  3305. the template is used. Then the command offers the headings tree of the
  3306. selected file, with the cursor position at the default headline (if you
  3307. had specified one in the template). You can either immediately press
  3308. <RET> to get the note placed there. Or you can use the following keys
  3309. to find a different location:
  3310. <TAB> Cycle visibility.
  3311. <down> / <up> Next/previous visible headline.
  3312. n / p Next/previous visible headline.
  3313. f / b Next/previous headline same level.
  3314. u One level up.
  3315. Pressing <RET> or <left> or <right> then leads to the following
  3316. result.
  3317. Cursor Key Note gets inserted
  3318. position
  3319. on headline <RET> as sublevel of the heading at cursor, first or
  3320. last
  3321. depending on `org-reverse-note-order'.
  3322. <left>/<right>as same level, before/after current heading
  3323. buffer-start <RET> as level 2 heading at end of file or level 1
  3324. at beginning
  3325. depending on `org-reverse-note-order'.
  3326. not on <RET> at cursor position, level taken from context.
  3327. headline
  3328. Before inserting the text into a tree, the function ensures that the
  3329. text has a headline, i.e. a first line that starts with a `*'. If not,
  3330. a headline is constructed from the current date and some additional
  3331. data. If you have indented the text of the note below the headline, the
  3332. indentation will be adapted if inserting the note into the tree requires
  3333. demotion from level 1.
  3334. ---------- Footnotes ----------
  3335. (1) Configure the variable `org-remember-store-without-prompt' to
  3336. make this behavior the default.
  3337. 
  3338. File: org, Node: Refiling notes, Prev: Storing notes, Up: Remember
  3339. 9.4 Refiling notes
  3340. ==================
  3341. Remember is usually used to quickly capture notes and tasks into one or
  3342. a few capture lists. When reviewing the captured data, you may want to
  3343. refile some of the entries into a different list, for example into a
  3344. project. Cutting, finding the right location and then pasting the note
  3345. is cumbersome. To simplify this process, you can use the following
  3346. special command:
  3347. `C-c C-w'
  3348. Refile the entry at point. This command offers possible locations
  3349. for refiling the entry and lets you select one with completion.
  3350. The item is filed below the target heading as a subitem.
  3351. Depending on `org-reverse-note-order', it will be either the first
  3352. of last subitem.
  3353. By default, all level 1 headlines in the current buffer are
  3354. considered to be targets, but you can have more complex definitions
  3355. across a number of files. See the variable `org-refile-targets'
  3356. for details.
  3357. `C-u C-c C-w'
  3358. Use the refile interface to jump to a heading.
  3359. `C- C-u C-c C-w'
  3360. Jump to the location where `org-refile' last moved a tree to.
  3361. 
  3362. File: org, Node: Agenda views, Next: Embedded LaTeX, Prev: Remember, Up: Top
  3363. 10 Agenda Views
  3364. ***************
  3365. Due to the way Org-mode works, TODO items, time-stamped items, and
  3366. tagged headlines can be scattered throughout a file or even a number of
  3367. files. To get an overview of open action items, or of events that are
  3368. important for a particular date, this information must be collected,
  3369. sorted and displayed in an organized way.
  3370. Org-mode can select items based on various criteria, and display them
  3371. in a separate buffer. Six different view types are provided:
  3372. * an _agenda_ that is like a calendar and shows information for
  3373. specific dates,
  3374. * a _TODO list_ that covers all unfinished action items,
  3375. * a _tags view_, showings headlines based on the tags associated
  3376. with them,
  3377. * a _timeline view_ that shows all events in a single Org-mode file,
  3378. in time-sorted view,
  3379. * a _stuck projects view_ showing projects that currently don't move
  3380. along, and
  3381. * _custom views_ that are special tag/keyword searches and
  3382. combinations of different views.
  3383. The extracted information is displayed in a special _agenda buffer_.
  3384. This buffer is read-only, but provides commands to visit the
  3385. corresponding locations in the original Org-mode files, and even to
  3386. edit these files remotely.
  3387. Two variables control how the agenda buffer is displayed and whether
  3388. the window configuration is restored when the agenda exits:
  3389. `org-agenda-window-setup' and `org-agenda-restore-windows-after-quit'.
  3390. * Menu:
  3391. * Agenda files:: Files being searched for agenda information
  3392. * Agenda dispatcher:: Keyboard access to agenda views
  3393. * Built-in agenda views:: What is available out of the box?
  3394. * Presentation and sorting:: How agenda items are prepared for display
  3395. * Agenda commands:: Remote editing of org trees
  3396. * Custom agenda views:: Defining special searches and views
  3397. 
  3398. File: org, Node: Agenda files, Next: Agenda dispatcher, Prev: Agenda views, Up: Agenda views
  3399. 10.1 Agenda files
  3400. =================
  3401. The information to be shown is normally collected from all _agenda
  3402. files_, the files listed in the variable `org-agenda-files'(1). If a
  3403. directory is part of this list, all files with the extension `.org' in
  3404. this directory will be part of the list.
  3405. Thus even if you only work with a single Org-mode file, this file
  3406. should be put into that list(2). You can customize `org-agenda-files',
  3407. but the easiest way to maintain it is through the following commands
  3408. `C-c ['
  3409. Add current file to the list of agenda files. The file is added to
  3410. the front of the list. If it was already in the list, it is moved
  3411. to the front. With prefix arg, file is added/moved to the end.
  3412. `C-c ]'
  3413. Remove current file from the list of agenda files.
  3414. `C-,'
  3415. `C-''
  3416. Cycle through agenda file list, visiting one file after the other.
  3417. The Org menu contains the current list of files and can be used to
  3418. visit any of them.
  3419. If you would like to focus the agenda temporarily onto a file not in
  3420. this list, or onto just one file in the list or even only a subtree in a
  3421. file, this can be done in different ways. For a single agenda command,
  3422. you may press `<' once or several times in the dispatcher (*note Agenda
  3423. dispatcher::). To restrict the agenda scope for an extended period,
  3424. use the following commands:
  3425. `C-c C-x <'
  3426. Permanently restrict the agenda to the current subtree. When with
  3427. a prefix argument, or with the cursor before the first headline in
  3428. a file, the agenda scope is set to the entire file. This
  3429. restriction remains in effect until removed with `C-c C-x >', or
  3430. by typing either `<' or `>' in the agenda dispatcher. If there is
  3431. a window displaying an agenda view, the new restriction takes
  3432. effect immediately.
  3433. `C-c C-x <'
  3434. Remove the permanent restriction created by `C-c C-x <'.
  3435. When working with `Speedbar', you can use the following commands in the
  3436. speedbar frame:
  3437. `< in the speedbar frame'
  3438. Permanently restrict the agenda to the item at the cursor in the
  3439. speedbar frame, either an Org-mode file or a subtree in such a
  3440. file. If there is a window displaying an agenda view, the new
  3441. restriction takes effect immediately.
  3442. `> in the speedbar frame'
  3443. Lift the restriction again.
  3444. ---------- Footnotes ----------
  3445. (1) If the value of that variable is not a list, but a single file
  3446. name, then the list of agenda files will be maintained in that external
  3447. file.
  3448. (2) When using the dispatcher, pressing `<' before selecting a
  3449. command will actually limit the command to the current file, and ignore
  3450. `org-agenda-files' until the next dispatcher command.
  3451. 
  3452. File: org, Node: Agenda dispatcher, Next: Built-in agenda views, Prev: Agenda files, Up: Agenda views
  3453. 10.2 The agenda dispatcher
  3454. ==========================
  3455. The views are created through a dispatcher that should be bound to a
  3456. global key, for example `C-c a' (*note Installation::). In the
  3457. following we will assume that `C-c a' is indeed how the dispatcher is
  3458. accessed and list keyboard access to commands accordingly. After
  3459. pressing `C-c a', an additional letter is required to execute a
  3460. command. The dispatcher offers the following default commands:
  3461. `a'
  3462. Create the calendar-like agenda (*note Weekly/Daily agenda::).
  3463. `t / T'
  3464. Create a list of all TODO items (*note Global TODO list::).
  3465. `m / M'
  3466. Create a list of headlines matching a TAGS expression (*note
  3467. Matching tags and properties::).
  3468. `L'
  3469. Create the timeline view for the current buffer (*note Timeline::).
  3470. `# / !'
  3471. Create a list of stuck projects (*note Stuck projects::).
  3472. `/'
  3473. Search for a regular expression in all agenda files and
  3474. additionally in the files listed in
  3475. `org-agenda-multi-occur-extra-files'. This uses the Emacs command
  3476. `multi-occur'. A prefix argument can be used to specify the
  3477. number of context lines for each match, default is 1.
  3478. `<'
  3479. Restrict an agenda command to the current buffer(1). After
  3480. pressing `<', you still need to press the character selecting the
  3481. command.
  3482. `< <'
  3483. If there is an active region, restrict the following agenda
  3484. command to the region. Otherwise, restrict it to the current
  3485. subtree(2). After pressing `< <', you still need to press the
  3486. character selecting the command.
  3487. You can also define custom commands that will be accessible through
  3488. the dispatcher, just like the default commands. This includes the
  3489. possibility to create extended agenda buffers that contain several
  3490. blocks together, for example the weekly agenda, the global TODO list and
  3491. a number of special tags matches. *Note Custom agenda views::.
  3492. ---------- Footnotes ----------
  3493. (1) For backward compatibility, you can also press `1' to restrict
  3494. to the current buffer.
  3495. (2) For backward compatibility, you can also press `0' to restrict
  3496. to the current buffer.
  3497. 
  3498. File: org, Node: Built-in agenda views, Next: Presentation and sorting, Prev: Agenda dispatcher, Up: Agenda views
  3499. 10.3 The built-in agenda views
  3500. ==============================
  3501. In this section we describe the built-in views.
  3502. * Menu:
  3503. * Weekly/Daily agenda:: The calendar page with current tasks
  3504. * Global TODO list:: All unfinished action items
  3505. * Matching tags and properties:: Structured information with fine-tuned search
  3506. * Timeline:: Time-sorted view for single file
  3507. * Stuck projects:: Find projects you need to review
  3508. 
  3509. File: org, Node: Weekly/Daily agenda, Next: Global TODO list, Prev: Built-in agenda views, Up: Built-in agenda views
  3510. 10.3.1 The weekly/daily agenda
  3511. ------------------------------
  3512. The purpose of the weekly/daily _agenda_ is to act like a page of a
  3513. paper agenda, showing all the tasks for the current week or day.
  3514. `C-c a a'
  3515. Compile an agenda for the current week from a list of org files.
  3516. The agenda shows the entries for each day. With a numeric
  3517. prefix(1) (like `C-u 2 1 C-c a a') you may set the number of days
  3518. to be displayed (see also the variable `org-agenda-ndays')
  3519. Remote editing from the agenda buffer means, for example, that you
  3520. can change the dates of deadlines and appointments from the agenda
  3521. buffer. The commands available in the Agenda buffer are listed in
  3522. *Note Agenda commands::.
  3523. Calendar/Diary integration
  3524. ..........................
  3525. Emacs contains the calendar and diary by Edward M. Reingold. The
  3526. calendar displays a three-month calendar with holidays from different
  3527. countries and cultures. The diary allows you to keep track of
  3528. anniversaries, lunar phases, sunrise/set, recurrent appointments
  3529. (weekly, monthly) and more. In this way, it is quite complementary to
  3530. Org-mode. It can be very useful to combine output from Org-mode with
  3531. the diary.
  3532. In order to include entries from the Emacs diary into Org-mode's
  3533. agenda, you only need to customize the variable
  3534. (setq org-agenda-include-diary t)
  3535. After that, everything will happen automatically. All diary entries
  3536. including holidays, anniversaries etc will be included in the agenda
  3537. buffer created by Org-mode. <SPC>, <TAB>, and <RET> can be used from
  3538. the agenda buffer to jump to the diary file in order to edit existing
  3539. diary entries. The `i' command to insert new entries for the current
  3540. date works in the agenda buffer, as well as the commands `S', `M', and
  3541. `C' to display Sunrise/Sunset times, show lunar phases and to convert
  3542. to other calendars, respectively. `c' can be used to switch back and
  3543. forth between calendar and agenda.
  3544. If you are using the diary only for sexp entries and holidays, it is
  3545. faster to not use the above setting, but instead to copy or even move
  3546. the entries into an Org-mode file. Org-mode evaluates diary-style sexp
  3547. entries, and does it faster because there is no overhead for first
  3548. creating the diary display. Note that the sexp entries must start at
  3549. the left margin, no white space is allowed before them. For example,
  3550. the following segment of an Org-mode file will be processed and entries
  3551. will be made in the agenda:
  3552. * Birthdays and similar stuff
  3553. #+CATEGORY: Holiday
  3554. %%(org-calendar-holiday) ; special function for holiday names
  3555. #+CATEGORY: Ann
  3556. %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old
  3557. %%(diary-anniversary 2 10 1869) Mahatma Gandhi would be %d years old
  3558. Appointment reminders
  3559. .....................
  3560. Org can interact with Emacs appointments notification facility.
  3561. To add all the appointments of your agenda files, use the command
  3562. `org-agenda-to-appt'. This commands also lets you filter through the
  3563. list of your appointments and add only those belonging to a specific
  3564. category or matching a regular expression. See the docstring for
  3565. details.
  3566. ---------- Footnotes ----------
  3567. (1) For backward compatibility, the universal prefix `C-u' causes
  3568. all TODO entries to be listed before the agenda. This feature is
  3569. deprecated, use the dedicated TODO list, or a block agenda instead.
  3570. 
  3571. File: org, Node: Global TODO list, Next: Matching tags and properties, Prev: Weekly/Daily agenda, Up: Built-in agenda views
  3572. 10.3.2 The global TODO list
  3573. ---------------------------
  3574. The global TODO list contains all unfinished TODO items, formatted and
  3575. collected into a single place.
  3576. `C-c a t'
  3577. Show the global TODO list. This collects the TODO items from all
  3578. agenda files (*note Agenda views::) into a single buffer. The
  3579. buffer is in `agenda-mode', so there are commands to examine and
  3580. manipulate the TODO entries directly from that buffer (*note
  3581. Agenda commands::).
  3582. `C-c a T'
  3583. Like the above, but allows selection of a specific TODO keyword.
  3584. You can also do this by specifying a prefix argument to `C-c a t'.
  3585. With a `C-u' prefix you are prompted for a keyword, and you may
  3586. also specify several keywords by separating them with `|' as
  3587. boolean OR operator. With a numeric prefix, the Nth keyword in
  3588. `org-todo-keywords' is selected. The `r' key in the agenda buffer
  3589. regenerates it, and you can give a prefix argument to this command
  3590. to change the selected TODO keyword, for example `3 r'. If you
  3591. often need a search for a specific keyword, define a custom
  3592. command for it (*note Agenda dispatcher::).
  3593. Matching specific TODO keywords can also be done as part of a tags
  3594. search (*note Tag searches::).
  3595. Remote editing of TODO items means that you can change the state of a
  3596. TODO entry with a single key press. The commands available in the TODO
  3597. list are described in *Note Agenda commands::.
  3598. Normally the global todo list simply shows all headlines with TODO
  3599. keywords. This list can become very long. There are two ways to keep
  3600. it more compact:
  3601. - Some people view a TODO item that has been _scheduled_ for
  3602. execution (*note Time stamps::) as no longer _open_. Configure the
  3603. variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
  3604. items from the global TODO list.
  3605. - TODO items may have sublevels to break up the task into subtasks.
  3606. In such cases it may be enough to list only the highest level TODO
  3607. headline and omit the sublevels from the global list. Configure
  3608. the variable `org-agenda-todo-list-sublevels' to get this behavior.
  3609. 
  3610. File: org, Node: Matching tags and properties, Next: Timeline, Prev: Global TODO list, Up: Built-in agenda views
  3611. 10.3.3 Matching Tags and Properties
  3612. -----------------------------------
  3613. If headlines in the agenda files are marked with _tags_ (*note Tags::),
  3614. you can select headlines based on the tags that apply to them and
  3615. collect them into an agenda buffer.
  3616. `C-c a m'
  3617. Produce a list of all headlines that match a given set of tags.
  3618. The command prompts for a selection criterion, which is a boolean
  3619. logic expression with tags, like `+work+urgent-withboss' or
  3620. `work|home' (*note Tags::). If you often need a specific search,
  3621. define a custom command for it (*note Agenda dispatcher::).
  3622. `C-c a M'
  3623. Like `C-c a m', but only select headlines that are also TODO items
  3624. and force checking subitems (see variable
  3625. `org-tags-match-list-sublevels'). Matching specific todo keywords
  3626. together with a tags match is also possible, see *Note Tag
  3627. searches::.
  3628. The commands available in the tags list are described in *Note
  3629. Agenda commands::.
  3630. 
  3631. File: org, Node: Timeline, Next: Stuck projects, Prev: Matching tags and properties, Up: Built-in agenda views
  3632. 10.3.4 Timeline for a single file
  3633. ---------------------------------
  3634. The timeline summarizes all time-stamped items from a single Org-mode
  3635. file in a _time-sorted view_. The main purpose of this command is to
  3636. give an overview over events in a project.
  3637. `C-c a L'
  3638. Show a time-sorted view of the org file, with all time-stamped
  3639. items. When called with a `C-u' prefix, all unfinished TODO
  3640. entries (scheduled or not) are also listed under the current date.
  3641. The commands available in the timeline buffer are listed in *Note
  3642. Agenda commands::.
  3643. 
  3644. File: org, Node: Stuck projects, Prev: Timeline, Up: Built-in agenda views
  3645. 10.3.5 Stuck projects
  3646. ---------------------
  3647. If you are following a system like David Allen's GTD to organize your
  3648. work, one of the "duties" you have is a regular review to make sure
  3649. that all projects move along. A _stuck_ project is a project that has
  3650. no defined next actions, so it will never show up in the TODO lists
  3651. Org-mode produces. During the review, you need to identify such
  3652. projects and define next actions for them.
  3653. `C-c a #'
  3654. List projects that are stuck.
  3655. `C-c a !'
  3656. Customize the variable `org-stuck-projects' to define what a stuck
  3657. project is and how to find it.
  3658. You almost certainly will have to configure this view before it will
  3659. work for you. The built-in default assumes that all your projects are
  3660. level-2 headlines, and that a project is not stuck if it has at least
  3661. one entry marked with a todo keyword TODO or NEXT or NEXTACTION.
  3662. Lets assume that you, in your own way of using Org-mode, identify
  3663. projects with a tag PROJECT, and that you use a todo keyword MAYBE to
  3664. indicate a project that should not be considered yet. Lets further
  3665. assume that the todo keyword DONE marks finished projects, and that NEXT
  3666. and TODO indicate next actions. The tag @SHOP indicates shopping and
  3667. is a next action even without the NEXT tag. Finally, if the project
  3668. contains the special word IGNORE anywhere, it should not be listed
  3669. either. In this case you would start by identifying eligible projects
  3670. with a tags/todo match `+PROJECT/-MAYBE-DONE', and then check for TODO,
  3671. NEXT, @SHOP, and IGNORE in the subtree to identify projects that are
  3672. not stuck. The correct customization for this is
  3673. (setq org-stuck-projects
  3674. '("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@SHOP")
  3675. "\\<IGNORE\\>"))
  3676. 
  3677. File: org, Node: Presentation and sorting, Next: Agenda commands, Prev: Built-in agenda views, Up: Agenda views
  3678. 10.4 Presentation and sorting
  3679. =============================
  3680. Before displaying items in an agenda view, Org-mode visually prepares
  3681. the items and sorts them. Each item occupies a single line. The line
  3682. starts with a _prefix_ that contains the _category_ (*note
  3683. Categories::) of the item and other important information. You can
  3684. customize the prefix using the option `org-agenda-prefix-format'. The
  3685. prefix is followed by a cleaned-up version of the outline headline
  3686. associated with the item.
  3687. * Menu:
  3688. * Categories:: Not all tasks are equal
  3689. * Time-of-day specifications:: How the agenda knows the time
  3690. * Sorting of agenda items:: The order of things
  3691. 
  3692. File: org, Node: Categories, Next: Time-of-day specifications, Prev: Presentation and sorting, Up: Presentation and sorting
  3693. 10.4.1 Categories
  3694. -----------------
  3695. The category is a broad label assigned to each agenda item. By default,
  3696. the category is simply derived from the file name, but you can also
  3697. specify it with a special line in the buffer, like this(1):
  3698. #+CATEGORY: Thesis
  3699. If you would like to have a special CATEGORY for a single entry or a
  3700. (sub)tree, give the entry a `:CATEGORY:' property with the location as
  3701. the value (*note Properties and columns::).
  3702. The display in the agenda buffer looks best if the category is not
  3703. longer than 10 characters.
  3704. ---------- Footnotes ----------
  3705. (1) For backward compatibility, the following also works: If there
  3706. are several such lines in a file, each specifies the category for the
  3707. text below it. The first category also applies to any text before the
  3708. first CATEGORY line. However, using this method is _strongly_
  3709. deprecated as it is incompatible with the outline structure of the
  3710. document. The correct method for setting multiple categories in a
  3711. buffer is using a property.
  3712. 
  3713. File: org, Node: Time-of-day specifications, Next: Sorting of agenda items, Prev: Categories, Up: Presentation and sorting
  3714. 10.4.2 Time-of-Day Specifications
  3715. ---------------------------------
  3716. Org-mode checks each agenda item for a time-of-day specification. The
  3717. time can be part of the time stamp that triggered inclusion into the
  3718. agenda, for example as in `<2005-05-10 Tue 19:00>'. Time ranges can be
  3719. specified with two time stamps, like
  3720. `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
  3721. In the headline of the entry itself, a time(range) may also appear as
  3722. plain text (like `12:45' or a `8:30-1pm'. If the agenda integrates the
  3723. Emacs diary (*note Weekly/Daily agenda::), time specifications in diary
  3724. entries are recognized as well.
  3725. For agenda display, Org-mode extracts the time and displays it in a
  3726. standard 24 hour format as part of the prefix. The example times in
  3727. the previous paragraphs would end up in the agenda like this:
  3728. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  3729. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  3730. 19:00...... The Vogon reads his poem
  3731. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  3732. If the agenda is in single-day mode, or for the display of today, the
  3733. timed entries are embedded in a time grid, like
  3734. 8:00...... ------------------
  3735. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  3736. 10:00...... ------------------
  3737. 12:00...... ------------------
  3738. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  3739. 14:00...... ------------------
  3740. 16:00...... ------------------
  3741. 18:00...... ------------------
  3742. 19:00...... The Vogon reads his poem
  3743. 20:00...... ------------------
  3744. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  3745. The time grid can be turned on and off with the variable
  3746. `org-agenda-use-time-grid', and can be configured with
  3747. `org-agenda-time-grid'.
  3748. 
  3749. File: org, Node: Sorting of agenda items, Prev: Time-of-day specifications, Up: Presentation and sorting
  3750. 10.4.3 Sorting of agenda items
  3751. ------------------------------
  3752. Before being inserted into a view, the items are sorted. How this is
  3753. done depends on the type of view.
  3754. * For the daily/weekly agenda, the items for each day are sorted.
  3755. The default order is to first collect all items containing an
  3756. explicit time-of-day specification. These entries will be shown
  3757. at the beginning of the list, as a _schedule_ for the day. After
  3758. that, items remain grouped in categories, in the sequence given by
  3759. `org-agenda-files'. Within each category, items are sorted by
  3760. priority (*note Priorities::), which is composed of the base
  3761. priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
  3762. plus additional increments for overdue scheduled or deadline items.
  3763. * For the TODO list, items remain in the order of categories, but
  3764. within each category, sorting takes place according to priority
  3765. (*note Priorities::).
  3766. * For tags matches, items are not sorted at all, but just appear in
  3767. the sequence in which they are found in the agenda files.
  3768. Sorting can be customized using the variable
  3769. `org-agenda-sorting-strategy'.
  3770. 
  3771. File: org, Node: Agenda commands, Next: Custom agenda views, Prev: Presentation and sorting, Up: Agenda views
  3772. 10.5 Commands in the agenda buffer
  3773. ==================================
  3774. Entries in the agenda buffer are linked back to the org file or diary
  3775. file where they originate. You are not allowed to edit the agenda
  3776. buffer itself, but commands are provided to show and jump to the
  3777. original entry location, and to edit the org-files "remotely" from the
  3778. agenda buffer. In this way, all information is stored only once,
  3779. removing the risk that your agenda and note files may diverge.
  3780. Some commands can be executed with mouse clicks on agenda lines. For
  3781. the other commands, the cursor needs to be in the desired line.
  3782. Motion
  3783. ......
  3784. `n'
  3785. Next line (same as <up> and `C-p').
  3786. `p'
  3787. Previous line (same as <down> and `C-n').
  3788. View/GoTo org file
  3789. ..................
  3790. `mouse-3'
  3791. `<SPC>'
  3792. Display the original location of the item in another window.
  3793. `L'
  3794. Display original location and recenter that window.
  3795. `mouse-2'
  3796. `mouse-1'
  3797. `<TAB>'
  3798. Go to the original location of the item in another window. Under
  3799. Emacs 22, `mouse-1' will also works for this.
  3800. `<RET>'
  3801. Go to the original location of the item and delete other windows.
  3802. `f'
  3803. Toggle Follow mode. In Follow mode, as you move the cursor through
  3804. the agenda buffer, the other window always shows the corresponding
  3805. location in the org file. The initial setting for this mode in new
  3806. agenda buffers can be set with the variable
  3807. `org-agenda-start-with-follow-mode'.
  3808. `b'
  3809. Display the entire subtree of the current item in an indirect
  3810. buffer. With numerical prefix ARG, go up to this level and then
  3811. take that tree. If ARG is negative, go up that many levels. With
  3812. `C-u' prefix, do not remove the previously used indirect buffer.
  3813. `l'
  3814. Toggle Logbook mode. In Logbook mode, entries that where marked
  3815. DONE while logging was on (variable `org-log-done') are shown in
  3816. the agenda, as are entries that have been clocked on that day.
  3817. Change display
  3818. ..............
  3819. `o'
  3820. Delete other windows.
  3821. `d w m y'
  3822. Switch to day/week/month/year view. When switching to day or week
  3823. view, this setting becomes the default for subseqent agenda
  3824. commands. Since month and year views are slow to create, the do
  3825. not become the default.
  3826. `D'
  3827. Toggle the inclusion of diary entries. See *Note Weekly/Daily
  3828. agenda::.
  3829. `G'
  3830. Toggle the time grid on and off. See also the variables
  3831. `org-agenda-use-time-grid' and `org-agenda-time-grid'.
  3832. `r'
  3833. Recreate the agenda buffer, for example to reflect the changes
  3834. after modification of the time stamps of items with S-<left> and
  3835. S-<right>. When the buffer is the global todo list, a prefix
  3836. argument is interpreted to create a selective list for a specific
  3837. TODO keyword.
  3838. `g'
  3839. Same as `r'.
  3840. `s'
  3841. `C-x C-s'
  3842. Save all Org-mode buffers in the current Emacs session.
  3843. `<right>'
  3844. Display the following `org-agenda-ndays' days. For example, if
  3845. the display covers a week, switch to the following week. With
  3846. prefix arg, go forward that many times `org-agenda-ndays' days.
  3847. `<left>'
  3848. Display the previous dates.
  3849. `.'
  3850. Goto today.
  3851. Remote editing
  3852. ..............
  3853. `0-9'
  3854. Digit argument.
  3855. `C-_'
  3856. Undo a change due to a remote editing command. The change is
  3857. undone both in the agenda buffer and in the remote buffer.
  3858. `t'
  3859. Change the TODO state of the item, both in the agenda and in the
  3860. original org file.
  3861. `C-k'
  3862. Delete the current agenda item along with the entire subtree
  3863. belonging to it in the original Org-mode file. If the text to be
  3864. deleted remotely is longer than one line, the kill needs to be
  3865. confirmed by the user. See variable `org-agenda-confirm-kill'.
  3866. `$'
  3867. Archive the subtree corresponding to the current headline.
  3868. `T'
  3869. Show all tags associated with the current item. Because of
  3870. inheritance, this may be more than the tags listed in the line
  3871. itself.
  3872. `:'
  3873. Set tags for the current headline. If there is an active region
  3874. in the agenda, change a tag for all headings in the region.
  3875. `a'
  3876. Toggle the ARCHIVE tag for the current headline.
  3877. `,'
  3878. Set the priority for the current item. Org-mode prompts for the
  3879. priority character. If you reply with <SPC>, the priority cookie
  3880. is removed from the entry.
  3881. `P'
  3882. Display weighted priority of current item.
  3883. `+'
  3884. `S-<up>'
  3885. Increase the priority of the current item. The priority is
  3886. changed in the original buffer, but the agenda is not resorted.
  3887. Use the `r' key for this.
  3888. `-'
  3889. `S-<down>'
  3890. Decrease the priority of the current item.
  3891. `C-c C-s'
  3892. Schedule this item
  3893. `C-c C-d'
  3894. Set a deadline for this item.
  3895. `S-<right>'
  3896. Change the time stamp associated with the current line by one day
  3897. into the future. With prefix argument, change it by that many
  3898. days. For example, `3 6 5 S-<right>' will change it by a year.
  3899. The stamp is changed in the original org file, but the change is
  3900. not directly reflected in the agenda buffer. Use the `r' key to
  3901. update the buffer.
  3902. `S-<left>'
  3903. Change the time stamp associated with the current line by one day
  3904. into the past.
  3905. `>'
  3906. Change the time stamp associated with the current line to today.
  3907. The key `>' has been chosen, because it is the same as `S-.' on my
  3908. keyboard.
  3909. `I'
  3910. Start the clock on the current item. If a clock is running
  3911. already, it is stopped first.
  3912. `O'
  3913. Stop the previously started clock.
  3914. `X'
  3915. Cancel the currently running clock.
  3916. `J'
  3917. Jump to the running clock in another window.
  3918. Calendar commands
  3919. .................
  3920. `c'
  3921. Open the Emacs calendar and move to the date at the agenda cursor.
  3922. `c'
  3923. When in the calendar, compute and show the Org-mode agenda for the
  3924. date at the cursor.
  3925. `i'
  3926. Insert a new entry into the diary. Prompts for the type of entry
  3927. (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
  3928. new entry in the diary, just as `i d' etc. would do in the
  3929. calendar. The date is taken from the cursor position.
  3930. `M'
  3931. Show the phases of the moon for the three months around current
  3932. date.
  3933. `S'
  3934. Show sunrise and sunset times. The geographical location must be
  3935. set with calendar variables, see documentation of the Emacs
  3936. calendar.
  3937. `C'
  3938. Convert the date at cursor into many other cultural and historic
  3939. calendars.
  3940. `H'
  3941. Show holidays for three month around the cursor date.
  3942. `C-c C-x C-c'
  3943. Export a single iCalendar file containing entries from all agenda
  3944. files.
  3945. Exporting to a file
  3946. ...................
  3947. `C-x C-w'
  3948. Write the agenda view to a file. Depending on the extension of the
  3949. selected file name, the view will be exported as HTML (extension
  3950. `.html' or `.htm'), Postscript (extension `.ps'), or plain text
  3951. (any other extension). Use the variable
  3952. `org-agenda-exporter-settings' to set options for `ps-print' and
  3953. for `htmlize' to be used during export.
  3954. Quit and Exit
  3955. .............
  3956. `q'
  3957. Quit agenda, remove the agenda buffer.
  3958. `x'
  3959. Exit agenda, remove the agenda buffer and all buffers loaded by
  3960. Emacs for the compilation of the agenda. Buffers created by the
  3961. user to visit org files will not be removed.
  3962. 
  3963. File: org, Node: Custom agenda views, Prev: Agenda commands, Up: Agenda views
  3964. 10.6 Custom agenda views
  3965. ========================
  3966. Custom agenda commands serve two purposes: to store and quickly access
  3967. frequently used TODO and tags searches, and to create special composite
  3968. agenda buffers. Custom agenda commands will be accessible through the
  3969. dispatcher (*note Agenda dispatcher::), just like the default commands.
  3970. * Menu:
  3971. * Storing searches:: Type once, use often
  3972. * Block agenda:: All the stuff you need in a single buffer
  3973. * Setting Options:: Changing the rules
  3974. * Exporting Agenda Views:: Writing agendas to files.
  3975. * Extracting Agenda Information for other programs::
  3976. 
  3977. File: org, Node: Storing searches, Next: Block agenda, Prev: Custom agenda views, Up: Custom agenda views
  3978. 10.6.1 Storing searches
  3979. -----------------------
  3980. The first application of custom searches is the definition of keyboard
  3981. shortcuts for frequently used searches, either creating an agenda
  3982. buffer, or a sparse tree (the latter covering of course only the current
  3983. buffer). Custom commands are configured in the variable
  3984. `org-agenda-custom-commands'. You can customize this variable, for
  3985. example by pressing `C-c a C'. You can also directly set it with Emacs
  3986. Lisp in `.emacs'. The following example contains all valid search
  3987. types:
  3988. (setq org-agenda-custom-commands
  3989. '(("w" todo "WAITING")
  3990. ("W" todo-tree "WAITING")
  3991. ("u" tags "+boss-urgent")
  3992. ("v" tags-todo "+boss-urgent")
  3993. ("U" tags-tree "+boss-urgent")
  3994. ("f" occur-tree "\\<FIXME\\>")
  3995. ("h" . "HOME+Name tags searches") ; description for "h" prefix
  3996. ("hl" tags "+home+Lisa")
  3997. ("hp" tags "+home+Peter")
  3998. ("hk" tags "+home+Kim")))
  3999. The initial string in each entry defines the keys you have to press
  4000. after the dispatcher command `C-c a' in order to access the command.
  4001. Usually this will be just a single character, but if you have many
  4002. similar commands, you can also define two-letter combinations where the
  4003. first character is the same in several combinations and serves as a
  4004. prefix key(1). The second parameter is the search type, followed by
  4005. the string or regular expression to be used for the matching. The
  4006. example above will therefore define:
  4007. `C-c a w'
  4008. as a global search for TODO entries with `WAITING' as the TODO
  4009. keyword
  4010. `C-c a W'
  4011. as the same search, but only in the current buffer and displaying
  4012. the results as a sparse tree
  4013. `C-c a u'
  4014. as a global tags search for headlines marked `:boss:' but not
  4015. `:urgent:'
  4016. `C-c a v'
  4017. as the same search as `C-c a u', but limiting the search to
  4018. headlines that are also TODO items
  4019. `C-c a U'
  4020. as the same search as `C-c a u', but only in the current buffer and
  4021. displaying the result as a sparse tree
  4022. `C-c a f'
  4023. to create a sparse tree (again: current buffer only) with all
  4024. entries containing the word `FIXME'
  4025. `C-c a h'
  4026. as a prefix command for a HOME tags search where you have to press
  4027. an additional key (`l', `p' or `k') to select a name (Lisa, Peter,
  4028. or Kim) as additional tag to match.
  4029. ---------- Footnotes ----------
  4030. (1) You can provide a description for a prefix key by inserting a
  4031. cons cell with the prefix and the description.
  4032. 
  4033. File: org, Node: Block agenda, Next: Setting Options, Prev: Storing searches, Up: Custom agenda views
  4034. 10.6.2 Block agenda
  4035. -------------------
  4036. Another possibility is the construction of agenda views that comprise
  4037. the results of _several_ commands, each of which creates a block in the
  4038. agenda buffer. The available commands include `agenda' for the daily
  4039. or weekly agenda (as created with `C-c a a'), `alltodo' for the global
  4040. todo list (as constructed with `C-c a t'), and the matching commands
  4041. discussed above: `todo', `tags', and `tags-todo'. Here are two
  4042. examples:
  4043. (setq org-agenda-custom-commands
  4044. '(("h" "Agenda and Home-related tasks"
  4045. ((agenda)
  4046. (tags-todo "home")
  4047. (tags "garden")))
  4048. ("o" "Agenda and Office-related tasks"
  4049. ((agenda)
  4050. (tags-todo "work")
  4051. (tags "office")))))
  4052. This will define `C-c a h' to create a multi-block view for stuff you
  4053. need to attend to at home. The resulting agenda buffer will contain
  4054. your agenda for the current week, all TODO items that carry the tag
  4055. `home', and also all lines tagged with `garden'. Finally the command
  4056. `C-c a o' provides a similar view for office tasks.
  4057. 
  4058. File: org, Node: Setting Options, Next: Exporting Agenda Views, Prev: Block agenda, Up: Custom agenda views
  4059. 10.6.3 Setting Options for custom commands
  4060. ------------------------------------------
  4061. Org-mode contains a number of variables regulating agenda construction
  4062. and display. The global variables define the behavior for all agenda
  4063. commands, including the custom commands. However, if you want to change
  4064. some settings just for a single custom view, you can do so. Setting
  4065. options requires inserting a list of variable names and values at the
  4066. right spot in `org-agenda-custom-commands'. For example:
  4067. (setq org-agenda-custom-commands
  4068. '(("w" todo "WAITING"
  4069. ((org-agenda-sorting-strategy '(priority-down))
  4070. (org-agenda-prefix-format " Mixed: ")))
  4071. ("U" tags-tree "+boss-urgent"
  4072. ((org-show-following-heading nil)
  4073. (org-show-hierarchy-above nil)))))
  4074. Now the `C-c a w' command will sort the collected entries only by
  4075. priority, and the prefix format is modified to just say ` Mixed: '
  4076. instead of giving the category of the entry. The sparse tags tree of
  4077. `C-c a U' will now turn out ultra-compact, because neither the headline
  4078. hierarchy above the match, nor the headline following the match will be
  4079. shown.
  4080. For command sets creating a block agenda,
  4081. `org-agenda-custom-commands' has two separate spots for setting
  4082. options. You can add options that should be valid for just a single
  4083. command in the set, and options that should be valid for all commands in
  4084. the set. The former are just added to the command entry, the latter
  4085. must come after the list of command entries. Going back to the block
  4086. agenda example (*note Block agenda::), let's change the sorting strategy
  4087. for the `C-c a h' commands to `priority-down', but let's sort the
  4088. results for GARDEN tags query in the opposite order, `priority-up'.
  4089. This would look like this:
  4090. (setq org-agenda-custom-commands
  4091. '(("h" "Agenda and Home-related tasks"
  4092. ((agenda)
  4093. (tags-todo "home")
  4094. (tags "garden"
  4095. ((org-agenda-sorting-strategy '(priority-up)))))
  4096. ((org-agenda-sorting-strategy '(priority-down))))
  4097. ("o" "Agenda and Office-related tasks"
  4098. ((agenda)
  4099. (tags-todo "work")
  4100. (tags "office")))))
  4101. As you see, the values and parenthesis setting is a little complex.
  4102. When in doubt, use the customize interface to set this variable - it
  4103. fully supports its structure. Just one caveat: When setting options in
  4104. this interface, the _values_ are just lisp expressions. So if the
  4105. value is a string, you need to add the double quotes around the value
  4106. yourself.
  4107. 
  4108. File: org, Node: Exporting Agenda Views, Next: Extracting Agenda Information for other programs, Prev: Setting Options, Up: Custom agenda views
  4109. 10.6.4 Exporting Agenda Views
  4110. -----------------------------
  4111. If you are away from your computer, it can be very useful to have a
  4112. printed version of some agenda views to carry around. Org-mode can
  4113. export custom agenda views as plain text, HTML(1) and postscript. If
  4114. you want to do this only occasionally, use the command
  4115. `C-x C-w'
  4116. Write the agenda view to a file. Depending on the extension of the
  4117. selected file name, the view will be exported as HTML (extension
  4118. `.html' or `.htm'), Postscript (extension `.ps'), or plain text
  4119. (any other extension). Use the variable
  4120. `org-agenda-exporter-settings' to set options for `ps-print' and
  4121. for `htmlize' to be used during export, for example
  4122. (setq org-agenda-exporter-settings
  4123. '((ps-number-of-columns 2)
  4124. (ps-landscape-mode t)
  4125. (htmlize-output-type 'css)))
  4126. If you need to export certain agenda views frequently, you can
  4127. associate any custom agenda command with a list of output file names
  4128. (2). Here is an example that first does define custom commands for the
  4129. agenda and the global todo list, together with a number of files to
  4130. which to export them. Then we define two block agenda commands and
  4131. specify filenames for them as well. File names can be relative to the
  4132. current working directory, or absolute.
  4133. (setq org-agenda-custom-commands
  4134. '(("X" agenda "" nil ("agenda.html" "agenda.ps"))
  4135. ("Y" alltodo "" nil ("todo.html" "todo.txt" "todo.ps"))
  4136. ("h" "Agenda and Home-related tasks"
  4137. ((agenda)
  4138. (tags-todo "home")
  4139. (tags "garden"))
  4140. nil
  4141. ("~/views/home.html"))
  4142. ("o" "Agenda and Office-related tasks"
  4143. ((agenda)
  4144. (tags-todo "work")
  4145. (tags "office"))
  4146. nil
  4147. ("~/views/office.ps"))))
  4148. The extension of the file name determines the type of export. If it
  4149. is `.html', Org-mode will use the `htmlize.el' package to convert the
  4150. buffer to HTML and save it to this file name. If the extension is
  4151. `.ps', `ps-print-buffer-with-faces' is used to produce postscript
  4152. output. Any other extension produces a plain ASCII file.
  4153. The export files are _not_ created when you use one of those
  4154. commands interactively. Instead, there is a special command to produce
  4155. _all_ specified files in one step:
  4156. `C-c a e'
  4157. Export all agenda views that have export filenames associated with
  4158. them.
  4159. You can use the options section of the custom agenda commands to also
  4160. set options for the export commands. For example:
  4161. (setq org-agenda-custom-commands
  4162. '(("X" agenda ""
  4163. ((ps-number-of-columns 2)
  4164. (ps-landscape-mode t)
  4165. (org-agenda-prefix-format " [ ] ")
  4166. (org-agenda-with-colors nil)
  4167. (org-agenda-remove-tags t))
  4168. ("theagenda.ps"))))
  4169. This command sets two options for the postscript exporter, to make it
  4170. print in two columns in landscape format - the resulting page can be cut
  4171. in two and then used in a paper agenda. The remaining settings modify
  4172. the agenda prefix to omit category and scheduling information, and
  4173. instead include a checkbox to check off items. We also remove the tags
  4174. to make the lines compact, and we don't want to use colors for the
  4175. black-and-white printer. Settings specified in
  4176. `org-agenda-exporter-settings' will also apply, but the settings in
  4177. `org-agenda-custom-commands' take precedence.
  4178. From the command line you may also use
  4179. emacs -f org-batch-store-agenda-views -kill
  4180. or, if you need to modify some parameters
  4181. emacs -eval '(org-batch-store-agenda-views \
  4182. org-agenda-ndays 30 \
  4183. org-agenda-start-day "2007-11-01" \
  4184. org-agenda-include-diary nil \
  4185. org-agenda-files (quote ("~/org/project.org")))' \
  4186. -kill
  4187. which will create the agenda views restricted to the file
  4188. `~/org/project.org', without diary entries and with 30 days extent.
  4189. ---------- Footnotes ----------
  4190. (1) You need to install Hrvoje Niksic' `htmlize.el'.
  4191. (2) If you want to store standard views like the weekly agenda or
  4192. the global TODO list as well, you need to define custom commands for
  4193. them in order to be able to specify filenames.
  4194. 
  4195. File: org, Node: Extracting Agenda Information for other programs, Prev: Exporting Agenda Views, Up: Custom agenda views
  4196. 10.6.5 Extracting Agenda Information for other programs
  4197. -------------------------------------------------------
  4198. Org-mode provides commands to access agenda information for the command
  4199. line in emacs batch mode. This extracted information can be sent
  4200. directly to a printer, or it can be read by a program that does further
  4201. processing of the data. The first of these commands is the function
  4202. `org-batch-agenda', that produces an agenda view and sends it as ASCII
  4203. text to STDOUT. The command takes a single string as parameter. If
  4204. the string has length 1, it is used as a key to one of the commands you
  4205. have configured in `org-agenda-custom-commands', basically any key you
  4206. can use after `C-c a'. For example, to directly print the current TODO
  4207. list, you could use
  4208. emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
  4209. If the parameter is a string with 2 or more characters, it is used
  4210. as a tags/todo match string. For example, to print your local shopping
  4211. list (all items with the tag `shop', but excluding the tag `NewYork'),
  4212. you could use
  4213. emacs -batch -l ~/.emacs \
  4214. -eval '(org-batch-agenda "+shop-NewYork")' | lpr
  4215. You may also modify parameters on the fly like this:
  4216. emacs -batch -l ~/.emacs \
  4217. -eval '(org-batch-agenda "a" \
  4218. org-agenda-ndays 30 \
  4219. org-agenda-include-diary nil \
  4220. org-agenda-files (quote ("~/org/project.org")))' \
  4221. | lpr
  4222. which will produce a 30 day agenda, fully restricted to the Org file
  4223. `~/org/projects.org', not even including the diary.
  4224. If you want to process the agenda data in more sophisticated ways,
  4225. you can use the command `org-batch-agenda-csv' to get a comma-separated
  4226. list of values for each agenda item. Each line in the output will
  4227. contain a number of fields separated by commas. The fields in a line
  4228. are:
  4229. category The category of the item
  4230. head The headline, without TODO kwd, TAGS and PRIORITY
  4231. type The type of the agenda entry, can be
  4232. todo selected in TODO match
  4233. tagsmatch selected in tags match
  4234. diary imported from diary
  4235. deadline a deadline
  4236. scheduled scheduled
  4237. timestamp appointment, selected by timestamp
  4238. closed entry was closed on date
  4239. upcoming-deadline warning about nearing deadline
  4240. past-scheduled forwarded scheduled item
  4241. block entry has date block including date
  4242. todo The todo keyword, if any
  4243. tags All tags including inherited ones, separated by colons
  4244. date The relevant date, like 2007-2-14
  4245. time The time, like 15:00-16:50
  4246. extra String with extra planning info
  4247. priority-l The priority letter if any was given
  4248. priority-n The computed numerical priority
  4249. Time and date will only be given if a timestamp (or deadline/scheduled)
  4250. lead to the selection of the item.
  4251. A CSV list like this is very easy to use in a post processing script.
  4252. For example, here is a Perl program that gets the TODO list from
  4253. Emacs/org-mode and prints all the items, preceded by a checkbox:
  4254. #!/usr/bin/perl
  4255. # define the Emacs command to run
  4256. $cmd = "emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv \"t\")'";
  4257. # run it and capture the output
  4258. $agenda = qx{$cmd 2>/dev/null};
  4259. # loop over all lines
  4260. foreach $line (split(/\n/,$agenda)) {
  4261. # get the individual values
  4262. ($category,$head,$type,$todo,$tags,$date,$time,$extra,
  4263. $priority_l,$priority_n) = split(/,/,$line);
  4264. # proccess and print
  4265. print "[ ] $head\n";
  4266. }
  4267. 
  4268. File: org, Node: Embedded LaTeX, Next: Exporting, Prev: Agenda views, Up: Top
  4269. 11 Embedded LaTeX
  4270. *****************
  4271. Plain ASCII is normally sufficient for almost all note taking. One
  4272. exception, however, are scientific notes which need to be able to
  4273. contain mathematical symbols and the occasional formula. LaTeX(1) is
  4274. widely used to typeset scientific documents. Org-mode supports
  4275. embedding LaTeX code into its files, because many academics are used to
  4276. read LaTeX source code, and because it can be readily processed into
  4277. images for HTML production.
  4278. It is not necessary to mark LaTeX macros and code in any special way.
  4279. If you observe a few conventions, Org-mode knows how to find it and what
  4280. to do with it.
  4281. * Menu:
  4282. * Math symbols:: TeX macros for symbols and Greek letters
  4283. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  4284. * LaTeX fragments:: Complex formulas made easy
  4285. * Processing LaTeX fragments:: Previewing LaTeX processing
  4286. * CDLaTeX mode:: Speed up entering of formulas
  4287. ---------- Footnotes ----------
  4288. (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
  4289. Many of the features described here as "LaTeX" are really from TeX, but
  4290. for simplicity I am blurring this distinction.
  4291. 
  4292. File: org, Node: Math symbols, Next: Subscripts and Superscripts, Prev: Embedded LaTeX, Up: Embedded LaTeX
  4293. 11.1 Math symbols
  4294. =================
  4295. You can use LaTeX macros to insert special symbols like `\alpha' to
  4296. indicate the Greek letter, or `\to' to indicate an arrow. Completion
  4297. for these macros is available, just type `\' and maybe a few letters,
  4298. and press `M-<TAB>' to see possible completions. Unlike LaTeX code,
  4299. Org-mode allows these macros to be present without surrounding math
  4300. delimiters, for example:
  4301. Angles are written as Greek letters \alpha, \beta and \gamma.
  4302. During HTML export (*note HTML export::), these symbols are
  4303. translated into the proper syntax for HTML, for the above examples this
  4304. is `&alpha;' and `&rarr;', respectively.
  4305. 
  4306. File: org, Node: Subscripts and Superscripts, Next: LaTeX fragments, Prev: Math symbols, Up: Embedded LaTeX
  4307. 11.2 Subscripts and Superscripts
  4308. ================================
  4309. Just like in LaTeX, `^' and `_' are used to indicate super- and
  4310. subscripts. Again, these can be used without embedding them in
  4311. math-mode delimiters. To increase the readability of ASCII text, it is
  4312. not necessary (but OK) to surround multi-character sub- and superscripts
  4313. with curly braces. For example
  4314. The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of
  4315. the sun is R_{sun} = 6.96 x 10^8 m.
  4316. To avoid interpretation as raised or lowered text, you can quote `^'
  4317. and `_' with a backslash: `\_' and `\^'.
  4318. During HTML export (*note HTML export::), subscript and superscripts
  4319. are surrounded with `<sub>' and `<sup>' tags, respectively.
  4320. 
  4321. File: org, Node: LaTeX fragments, Next: Processing LaTeX fragments, Prev: Subscripts and Superscripts, Up: Embedded LaTeX
  4322. 11.3 LaTeX fragments
  4323. ====================
  4324. With symbols, sub- and superscripts, HTML is pretty much at its end when
  4325. it comes to representing mathematical formulas(1). More complex
  4326. expressions need a dedicated formula processor. To this end, Org-mode
  4327. can contain arbitrary LaTeX fragments. It provides commands to preview
  4328. the typeset result of these fragments, and upon export to HTML, all
  4329. fragments will be converted to images and inlined into the HTML
  4330. document(2). For this to work you need to be on a system with a working
  4331. LaTeX installation. You also need the `dvipng' program, available at
  4332. `http://sourceforge.net/projects/dvipng/'. The LaTeX header that will
  4333. be used when processing a fragment can be configured with the variable
  4334. `org-format-latex-header'.
  4335. LaTeX fragments don't need any special marking at all. The following
  4336. snippets will be identified as LaTeX source code:
  4337. * Environments of any kind. The only requirement is that the
  4338. `\begin' statement appears on a new line, preceded by only
  4339. whitespace.
  4340. * Text within the usual LaTeX math delimiters. To avoid conflicts
  4341. with currency specifications, single `$' characters are only
  4342. recognized as math delimiters if the enclosed text contains at
  4343. most two line breaks, is directly attached to the `$' characters
  4344. with no whitespace in between, and if the closing `$' is followed
  4345. by whitespace or punctuation. For the other delimiters, there is
  4346. no such restriction, so when in doubt, use `\(...\)' as inline
  4347. math delimiters.
  4348. For example:
  4349. \begin{equation} % arbitrary environments,
  4350. x=\sqrt{b} % even tables, figures
  4351. \end{equation} % etc
  4352. If $a^2=b$ and \( b=2 \), then the solution must be
  4353. either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
  4354. If you need any of the delimiter ASCII sequences for other purposes, you
  4355. can configure the option `org-format-latex-options' to deselect the
  4356. ones you do not wish to have interpreted by the LaTeX converter.
  4357. ---------- Footnotes ----------
  4358. (1) Yes, there is MathML, but that is not yet fully supported by
  4359. many browsers, and there is no decent converter for turning LaTeX or
  4360. ASCII representations of formulas into MathML. So for the time being,
  4361. converting formulas into images seems the way to go.
  4362. (2) The LaTeX export will not use images for displaying LaTeX
  4363. fragments but include these fragments directly into the LaTeX code.
  4364. 
  4365. File: org, Node: Processing LaTeX fragments, Next: CDLaTeX mode, Prev: LaTeX fragments, Up: Embedded LaTeX
  4366. 11.4 Processing LaTeX fragments
  4367. ===============================
  4368. LaTeX fragments can be processed to produce a preview images of the
  4369. typeset expressions:
  4370. `C-c C-x C-l'
  4371. Produce a preview image of the LaTeX fragment at point and overlay
  4372. it over the source code. If there is no fragment at point,
  4373. process all fragments in the current entry (between two
  4374. headlines). When called with a prefix argument, process the
  4375. entire subtree. When called with two prefix arguments, or when
  4376. the cursor is before the first headline, process the entire buffer.
  4377. `C-c C-c'
  4378. Remove the overlay preview images.
  4379. During HTML export (*note HTML export::), all LaTeX fragments are
  4380. converted into images and inlined into the document if the following
  4381. setting is active:
  4382. (setq org-export-with-LaTeX-fragments t)
  4383. 
  4384. File: org, Node: CDLaTeX mode, Prev: Processing LaTeX fragments, Up: Embedded LaTeX
  4385. 11.5 Using CDLaTeX to enter math
  4386. ================================
  4387. CDLaTeX-mode is a minor mode that is normally used in combination with a
  4388. major LaTeX mode like AUCTeX in order to speed-up insertion of
  4389. environments and math templates. Inside Org-mode, you can make use of
  4390. some of the features of cdlatex-mode. You need to install `cdlatex.el'
  4391. and `texmathp.el' (the latter comes also with AUCTeX) from
  4392. `http://www.astro.uva.nl/~dominik/Tools/cdlatex'. Don't turn
  4393. cdlatex-mode itself under Org-mode, but use the light version
  4394. `org-cdlatex-mode' that comes as part of Org-mode. Turn it on for the
  4395. current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
  4396. with
  4397. (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
  4398. When this mode is enabled, the following features are present (for
  4399. more details see the documentation of cdlatex-mode):
  4400. * Environment templates can be inserted with `C-c {'.
  4401. * The <TAB> key will do template expansion if the cursor is inside a
  4402. LaTeX fragment(1). For example, <TAB> will expand `fr' to
  4403. `\frac{}{}' and position the cursor correctly inside the first
  4404. brace. Another <TAB> will get you into the second brace. Even
  4405. outside fragments, <TAB> will expand environment abbreviations at
  4406. the beginning of a line. For example, if you write `equ' at the
  4407. beginning of a line and press <TAB>, this abbreviation will be
  4408. expanded to an `equation' environment. To get a list of all
  4409. abbreviations, type `M-x cdlatex-command-help'.
  4410. * Pressing `_' and `^' inside a LaTeX fragment will insert these
  4411. characters together with a pair of braces. If you use <TAB> to
  4412. move out of the braces, and if the braces surround only a single
  4413. character or macro, they are removed again (depending on the
  4414. variable `cdlatex-simplify-sub-super-scripts').
  4415. * Pressing the backquote ``' followed by a character inserts math
  4416. macros, also outside LaTeX fragments. If you wait more than 1.5
  4417. seconds after the backquote, a help window will pop up.
  4418. * Pressing the normal quote `'' followed by another character
  4419. modifies the symbol before point with an accent or a font. If you
  4420. wait more than 1.5 seconds after the backquote, a help window will
  4421. pop up. Character modification will work only inside LaTeX
  4422. fragments, outside the quote is normal.
  4423. ---------- Footnotes ----------
  4424. (1) Org-mode has a method to test if the cursor is inside such a
  4425. fragment, see the documentation of the function
  4426. `org-inside-LaTeX-fragment-p'.
  4427. 
  4428. File: org, Node: Exporting, Next: Publishing, Prev: Embedded LaTeX, Up: Top
  4429. 12 Exporting
  4430. ************
  4431. Org-mode documents can be exported into a variety of other formats. For
  4432. printing and sharing of notes, ASCII export produces a readable and
  4433. simple version of an Org-mode file. HTML export allows you to publish a
  4434. notes file on the web, while the XOXO format provides a solid base for
  4435. exchange with a broad range of other applications. LaTeX export lets
  4436. you use Org-mode and its structured editing functions to easily create
  4437. LaTeX files. To incorporate entries with associated times like
  4438. deadlines or appointments into a desktop calendar program like iCal,
  4439. Org-mode can also produce extracts in the iCalendar format. Currently
  4440. Org-mode only supports export, not import of these different formats.
  4441. When exporting, Org-mode uses special conventions to enrich the
  4442. output produced. *Note Text interpretation::, for more details.
  4443. `C-c C-e'
  4444. Dispatcher for export and publishing commands. Displays a
  4445. help-window listing the additional key(s) needed to launch an
  4446. export or publishing command.
  4447. * Menu:
  4448. * ASCII export:: Exporting to plain ASCII
  4449. * HTML export:: Exporting to HTML
  4450. * LaTeX export:: Exporting to LaTeX
  4451. * XOXO export:: Exporting to XOXO
  4452. * iCalendar export:: Exporting in iCalendar format
  4453. * Text interpretation:: How the exporter looks at the file
  4454. 
  4455. File: org, Node: ASCII export, Next: HTML export, Prev: Exporting, Up: Exporting
  4456. 12.1 ASCII export
  4457. =================
  4458. ASCII export produces a simple and very readable version of an Org-mode
  4459. file.
  4460. `C-c C-e a'
  4461. Export as ASCII file. For an org file `myfile.org', the ASCII file
  4462. will be `myfile.txt'. The file will be overwritten without
  4463. warning. If there is an active region, only the region will be
  4464. exported. If the selected region is a single tree, the tree head
  4465. will become the document title. If the tree head entry has or
  4466. inherits an `:EXPORT_FILE_NAME:' property, that name will be used
  4467. for the export.
  4468. `C-c C-e v a'
  4469. Export only the visible part of the document.
  4470. In the exported version, the first 3 outline levels will become
  4471. headlines, defining a general document structure. Additional levels
  4472. will be exported as itemized lists. If you want that transition to
  4473. occur at a different level, specify it with a prefix argument. For
  4474. example,
  4475. C-1 C-c C-e a
  4476. creates only top level headlines and does the rest as items. When
  4477. headlines are converted to items, the indentation of the text following
  4478. the headline is changed to fit nicely under the item. This is done with
  4479. the assumption that the first bodyline indicates the base indentation of
  4480. the body text. Any indentation larger than this is adjusted to preserve
  4481. the layout relative to the first line. Should there be lines with less
  4482. indentation than the first, these are left alone.
  4483. 
  4484. File: org, Node: HTML export, Next: LaTeX export, Prev: ASCII export, Up: Exporting
  4485. 12.2 HTML export
  4486. ================
  4487. Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
  4488. HTML formatting, in ways similar to John Grubers _markdown_ language,
  4489. but with additional support for tables.
  4490. * Menu:
  4491. * HTML Export commands:: How to invoke LaTeX export
  4492. * Quoting HTML tags:: Using direct HTML in Org-mode
  4493. * Links:: Transformation of links for HTML
  4494. * Images:: How to include images
  4495. * CSS support:: Changing the appearence of the output
  4496. 
  4497. File: org, Node: HTML Export commands, Next: Quoting HTML tags, Prev: HTML export, Up: HTML export
  4498. 12.2.1 HTML export commands
  4499. ---------------------------
  4500. `C-c C-e h'
  4501. Export as HTML file `myfile.html'. For an org file `myfile.org',
  4502. the ASCII file will be `myfile.html'. The file will be
  4503. overwritten without warning. If there is an active region, only
  4504. the region will be exported. If the selected region is a single
  4505. tree, the tree head will become the document title. If the tree
  4506. head entry has or inherits an `:EXPORT_FILE_NAME:' property, that
  4507. name will be used for the export.
  4508. `C-c C-e b'
  4509. Export as HTML file and immediately open it with a browser.
  4510. `C-c C-e H'
  4511. Export to a temporary buffer, do not create a file.
  4512. `C-c C-e R'
  4513. Export the active region to a temporary buffer. With prefix arg,
  4514. do not produce file header and foot, but just the plain HTML
  4515. section for the region. This is good for cut-and-paste operations.
  4516. `C-c C-e v h'
  4517. `C-c C-e v b'
  4518. `C-c C-e v H'
  4519. `C-c C-e v R'
  4520. Export only the visible part of the document.
  4521. `M-x org-export-region-as-html'
  4522. Convert the region to HTML under the assumption that it was
  4523. org-mode syntax before. This is a global command that can be
  4524. invoked in any buffer.
  4525. `M-x org-replace-region-by-HTML'
  4526. Replace the active region (assumed to be in Org-mode syntax) by
  4527. HTML code.
  4528. In the exported version, the first 3 outline levels will become
  4529. headlines, defining a general document structure. Additional levels
  4530. will be exported as itemized lists. If you want that transition to
  4531. occur at a different level, specify it with a prefix argument. For
  4532. example,
  4533. C-2 C-c C-e b
  4534. creates two levels of headings and does the rest as items.
  4535. 
  4536. File: org, Node: Quoting HTML tags, Next: Links, Prev: HTML Export commands, Up: HTML export
  4537. 12.2.2 Quoting HTML tags
  4538. ------------------------
  4539. Plain `<' and `>' are always transformed to `&lt;' and `&gt;' in HTML
  4540. export. If you want to include simple HTML tags which should be
  4541. interpreted as such, mark them with `@' as in `@<b>bold text@</b>'.
  4542. Note that this really works only for simple tags. For more extensive
  4543. HTML that should be copied verbatim to the exported file use either
  4544. #+HTML: Literal HTML code for export
  4545. or
  4546. #+BEGIN_HTML
  4547. All lines between these markers are exported literally
  4548. #+END_HTML
  4549. 
  4550. File: org, Node: Links, Next: Images, Prev: Quoting HTML tags, Up: HTML export
  4551. 12.2.3 Links
  4552. ------------
  4553. Internal links (*note Internal links::) will continue to work in HTML
  4554. files only if they match a dedicated `<<target>>'. Automatic links
  4555. created by radio targets (*note Radio targets::) will also work in the
  4556. HTML file. Links to external files will still work if the HTML file is
  4557. in the same directory as the Org-mode file. Links to other `.org'
  4558. files will be translated into HTML links under the assumption that an
  4559. HTML version also exists of the linked file. For information related to
  4560. linking files while publishing them to a publishing directory see *Note
  4561. Publishing links::.
  4562. 
  4563. File: org, Node: Images, Next: CSS support, Prev: Links, Up: HTML export
  4564. 12.2.4 Images
  4565. -------------
  4566. HTML export can inline images given as links in the Org-mode file, and
  4567. it can make an image the clickable part of a link. By default(1),
  4568. images are inlined if a link does not have a description. So
  4569. `[[file:myimg.jpg]]' will be inlined, while `[[file:myimg.jpg][the
  4570. image]]' will just produce a link `the image' that points to the image.
  4571. If the description part itself is a `file:' link or a `http:' URL
  4572. pointing to an image, this image will be inlined and activated so that
  4573. clicking on the image will activate the link. For example, to include
  4574. a thumbnail that will link to a high resolution version of the image,
  4575. you could use:
  4576. [[file:highres.jpg][file:thumb.jpg]]
  4577. and you could use `http' addresses just as well.
  4578. ---------- Footnotes ----------
  4579. (1) but see the variable `org-export-html-inline-images'
  4580. 
  4581. File: org, Node: CSS support, Prev: Images, Up: HTML export
  4582. 12.2.5 CSS support
  4583. ------------------
  4584. You can also give style information for the exported file. The HTML
  4585. exporter assigns the following CSS classes to appropriate parts of the
  4586. document - your style specifications may change these:
  4587. .todo TODO keywords
  4588. .done the DONE keyword
  4589. .timestamp time stamp
  4590. .timestamp-kwd keyword associated with a time stamp, like SCHEDULED
  4591. .tag tag in a headline
  4592. .target target for links
  4593. The default style specification can be configured through the option
  4594. `org-export-html-style'. If you want to use a file-local style, you
  4595. may use file variables, best wrapped into a COMMENT section at the end
  4596. of the outline tree. For example(1):
  4597. * COMMENT html style specifications
  4598. # Local Variables:
  4599. # org-export-html-style: " <style type=\"text/css\">
  4600. # p {font-weight: normal; color: gray; }
  4601. # h1 {color: black; }
  4602. # </style>"
  4603. # End:
  4604. Remember to execute `M-x normal-mode' after changing this to make
  4605. the new style visible to Emacs. This command restarts org-mode for the
  4606. current buffer and forces Emacs to re-evaluate the local variables
  4607. section in the buffer.
  4608. ---------- Footnotes ----------
  4609. (1) Under Emacs 21, the continuation lines for a variable value
  4610. should have no `#' at the start of the line.
  4611. 
  4612. File: org, Node: LaTeX export, Next: XOXO export, Prev: HTML export, Up: Exporting
  4613. 12.3 LaTeX export
  4614. =================
  4615. Org-mode contains a LaTeX exporter written by Bastien Guerry.
  4616. * Menu:
  4617. * LaTeX export commands:: How to invoke LaTeX export
  4618. * Quoting LaTeX code:: Incorporating literal LaTeX code
  4619. * Sectioning structure::
  4620. 
  4621. File: org, Node: LaTeX export commands, Next: Quoting LaTeX code, Prev: LaTeX export, Up: LaTeX export
  4622. 12.3.1 LaTeX export commands
  4623. ----------------------------
  4624. `C-c C-e l'
  4625. Export as LaTeX file `myfile.tex'.
  4626. `C-c C-e L'
  4627. Export to a temporary buffer, do not create a file.
  4628. `C-c C-e v l'
  4629. `C-c C-e v L'
  4630. Export only the visible part of the document.
  4631. `M-x org-export-region-as-latex'
  4632. Convert the region to LaTeX under the assumption that it was
  4633. org-mode syntax before. This is a global command that can be
  4634. invoked in any buffer.
  4635. `M-x org-replace-region-by-latex'
  4636. Replace the active region (assumed to be in Org-mode syntax) by
  4637. LaTeX code.
  4638. In the exported version, the first 3 outline levels will become
  4639. headlines, defining a general document structure. Additional levels
  4640. will be exported as description lists. The exporter can ignore them or
  4641. convert them to a custom string depending on `org-latex-low-levels'.
  4642. If you want that transition to occur at a different level, specify it
  4643. with a prefix argument. For example,
  4644. C-2 C-c C-e l
  4645. creates two levels of headings and does the rest as items.
  4646. 
  4647. File: org, Node: Quoting LaTeX code, Next: Sectioning structure, Prev: LaTeX export commands, Up: LaTeX export
  4648. 12.3.2 Quoting LaTeX code
  4649. -------------------------
  4650. Embedded LaTeX as described in *Note Embedded LaTeX:: will be correctly
  4651. inserted into the LaTeX file. Forthermore, you can add special code
  4652. that should only be present in LaTeX export with the following
  4653. constructs:
  4654. #+LaTeX: Literal LaTeX code for export
  4655. or
  4656. #+BEGIN_LaTeX
  4657. All lines between these markers are exported literally
  4658. #+END_LaTeX
  4659. 
  4660. File: org, Node: Sectioning structure, Prev: Quoting LaTeX code, Up: LaTeX export
  4661. 12.3.3 Sectioning structure
  4662. ---------------------------
  4663. By default, the LaTeX output uses the class `article'.
  4664. You can change this globally by setting a different value for
  4665. `org-export-latex-default-class' or locally by adding an option like
  4666. `#+LaTeX_CLASS: myclass' in your file. The class should be listed in
  4667. `org-export-latex-classes', where you can also define the sectioning
  4668. structure for each class.
  4669. 
  4670. File: org, Node: XOXO export, Next: iCalendar export, Prev: LaTeX export, Up: Exporting
  4671. 12.4 XOXO export
  4672. ================
  4673. Org-mode contains an exporter that produces XOXO-style output.
  4674. Currently, this exporter only handles the general outline structure and
  4675. does not interpret any additional Org-mode features.
  4676. `C-c C-e x'
  4677. Export as XOXO file `myfile.html'.
  4678. `C-c C-e v x'
  4679. Export only the visible part of the document.
  4680. 
  4681. File: org, Node: iCalendar export, Next: Text interpretation, Prev: XOXO export, Up: Exporting
  4682. 12.5 iCalendar export
  4683. =====================
  4684. Some people like to use Org-mode for keeping track of projects, but
  4685. still prefer a standard calendar application for anniversaries and
  4686. appointments. In this case it can be useful to have deadlines and
  4687. other time-stamped items in Org-mode files show up in the calendar
  4688. application. Org-mode can export calendar information in the standard
  4689. iCalendar format. If you also want to have TODO entries included in the
  4690. export, configure the variable `org-icalendar-include-todo'.
  4691. `C-c C-e i'
  4692. Create iCalendar entries for the current file and store them in
  4693. the same directory, using a file extension `.ics'.
  4694. `C-c C-e I'
  4695. Like `C-c C-e i', but do this for all files in `org-agenda-files'.
  4696. For each of these files, a separate iCalendar file will be
  4697. written.
  4698. `C-c C-e c'
  4699. Create a single large iCalendar file from all files in
  4700. `org-agenda-files' and write it to the file given by
  4701. `org-combined-agenda-icalendar-file'.
  4702. The export will honor SUMMARY, DESCRIPTION and LOCATION properties if
  4703. the selected entries have them. If not, the summary will be derived
  4704. from the headline, and the description from the body (limited to
  4705. `org-icalendar-include-body' characters).
  4706. How this calendar is best read and updated, depends on the
  4707. application you are using. The FAQ covers this issue.
  4708. 
  4709. File: org, Node: Text interpretation, Prev: iCalendar export, Up: Exporting
  4710. 12.6 Text interpretation by the exporter
  4711. ========================================
  4712. The exporter backends interpret additional structure in the Org-mode
  4713. file in order to produce better output.
  4714. * Menu:
  4715. * Comment lines:: Some lines will not be exported
  4716. * Initial text:: Text before the first headline
  4717. * Footnotes:: Numbers like [1]
  4718. * Quoted examples:: Inserting quoted chnuks of text
  4719. * Enhancing text:: Subscripts, symbols and more
  4720. * Export options:: How to influence the export settings
  4721. 
  4722. File: org, Node: Comment lines, Next: Initial text, Prev: Text interpretation, Up: Text interpretation
  4723. 12.6.1 Comment lines
  4724. --------------------
  4725. Lines starting with `#' in column zero are treated as comments and will
  4726. never be exported. Also entire subtrees starting with the word
  4727. `COMMENT' will never be exported.
  4728. `C-c ;'
  4729. Toggle the COMMENT keyword at the beginning of an entry.
  4730. 
  4731. File: org, Node: Initial text, Next: Footnotes, Prev: Comment lines, Up: Text interpretation
  4732. 12.6.2 Text before the first headline
  4733. -------------------------------------
  4734. Org-mode normally ignores any text before the first headline when
  4735. exporting, leaving this region for internal links to speed up navigation
  4736. etc. However, in publishing-oriented files, you might want to have some
  4737. text before the first headline, like a small introduction, special HTML
  4738. code with a navigation bar, etc. You can ask to have this part of the
  4739. file exported as well by setting the variable
  4740. `org-export-skip-text-before-1st-heading' to `nil'. On a per-file
  4741. basis, you can get the same effect with
  4742. #+OPTIONS: skip:nil
  4743. The text before the first headline will be fully processed (*note
  4744. Enhancing text::), and the first non-comment line becomes the title of
  4745. the exported document. If you need to include literal HTML, use the
  4746. special constructs described in *Note Quoting HTML tags::. The table
  4747. of contents is normally inserted directly before the first headline of
  4748. the file. If you would like to get it to a different location, insert
  4749. the string `[TABLE-OF-CONTENTS]' on a line by itself at the desired
  4750. location.
  4751. Finally, if you want to use the space before the first headline for
  4752. internal purposes, but _still_ want to place something before the first
  4753. headline when exporting the file, you can use the `#+TEXT' construct:
  4754. #+OPTIONS: skip:t
  4755. #+TEXT: This text will go before the *first* headline.
  4756. #+TEXT: We place the table of contents here:
  4757. #+TEXT: [TABLE-OF-CONTENTS]
  4758. #+TEXT: This goes between the table of contents and the first headline
  4759. 
  4760. File: org, Node: Footnotes, Next: Quoted examples, Prev: Initial text, Up: Text interpretation
  4761. 12.6.3 Footnotes
  4762. ----------------
  4763. Numbers in square brackets are treated as footnotes, so that you can use
  4764. the Emacs package `footnote.el' to create footnotes. For example:
  4765. The org-mode homepage[1] clearly needs help from
  4766. a good web designer.
  4767. [1] The link is: http://orgmode.org
  4768. Note that the `footnote' package uses `C-c !' to invoke its commands.
  4769. This binding conflicts with the org-mode command for inserting inactive
  4770. time stamps. You could use the variable `footnote-prefix' to switch
  4771. footnotes commands to another key. Or, if you are too used to this
  4772. binding, you could use `org-replace-disputed-keys' and
  4773. `org-disputed-keys' to change the settings in Org-mode.
  4774. 
  4775. File: org, Node: Quoted examples, Next: Enhancing text, Prev: Footnotes, Up: Text interpretation
  4776. 12.6.4 Quoted examples
  4777. ----------------------
  4778. When writing technical documents, you often need to insert examples that
  4779. are not further interpreted by Org-mode. For historical reasons, there
  4780. are several ways to do this:
  4781. * If a headline starts with the word `QUOTE', the text below the
  4782. headline will be typeset as fixed-width, to allow quoting of
  4783. computer codes etc.
  4784. * Lines starting with `:' are also typeset in fixed-width font.
  4785. `C-c :'
  4786. Toggle fixed-width for entry (QUOTE) or region, see below.
  4787. * Finally, text between
  4788. #+BEGIN_EXAMPLE
  4789. quoted text
  4790. #+END_EXAMPLE
  4791. will also be exported in this way.
  4792. 
  4793. File: org, Node: Enhancing text, Next: Export options, Prev: Quoted examples, Up: Text interpretation
  4794. 12.6.5 Enhancing text for export
  4795. --------------------------------
  4796. Some of the export backends of Org-mode allow for sophisticated text
  4797. formatting, this is true in particular for the HTML and LaTeX backends.
  4798. Org-mode has a number of typing conventions that allow to produce a
  4799. richly formatted output.
  4800. * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
  4801. enumerator will be recognized and transformed if the backend
  4802. supports lists. See *Note Plain lists::.
  4803. * You can make words *bold*, /italic/, _underlined_, `=code=' and
  4804. `~verbatim~', and, if you must, `+strikethrough+'. Text in the
  4805. code and verbatim string is not processed for org-mode specific
  4806. syntax, it is exported verbatim.
  4807. * A line consisting of only dashes, and at least 5 of them, will be
  4808. exported as a horizontal line (`<hr/>' in HTML).
  4809. * Many TeX macros and entire LaTeX fragments are converted into HTML
  4810. entities or images (*note Embedded LaTeX::).
  4811. * Tables are transformed into native tables under the exporter, if
  4812. the export backend supports this. Data fields before the first
  4813. horizontal separator line will be formatted as table header fields.
  4814. * If a headline starts with the word `QUOTE', the text below the
  4815. headline will be typeset as fixed-width, to allow quoting of
  4816. computer codes etc. Lines starting with `:' are also typeset in
  4817. fixed-width font.
  4818. `C-c :'
  4819. Toggle fixed-width for entry (QUOTE) or region, see below.
  4820. Finally, text between
  4821. #+BEGIN_EXAMPLE
  4822. quoted text
  4823. #+END_EXAMPLE
  4824. will also be exported in this way.
  4825. * A double backslash _at the end of a line_ enforces a line break at
  4826. this position.
  4827. * Strings like `\alpha' will be exported as `&alpha;', in the HTML
  4828. output. These strings are exported as `$\alpha$' in the LaTeX
  4829. output. Similarly, `\nbsp' will become `&nbsp;' in HTML and in
  4830. LaTeX. This applies for a long list of entities, see the variable
  4831. `org-html-entities' for the complete list.
  4832. If these conversions conflict with your habits of typing ASCII text,
  4833. they can all be turned off with corresponding variables. See the
  4834. customization group `org-export-general', and the following section
  4835. which explains how to set export options with special lines in a buffer.
  4836. 
  4837. File: org, Node: Export options, Prev: Enhancing text, Up: Text interpretation
  4838. 12.6.6 Export options
  4839. ---------------------
  4840. The exporter recognizes special lines in the buffer which provide
  4841. additional information. These lines may be put anywhere in the file.
  4842. The whole set of lines can be inserted into the buffer with `C-c C-e
  4843. t'. For individual lines, a good way to make sure the keyword is
  4844. correct is to type `#+' and then use `M-<TAB>' completion (*note
  4845. Completion::).
  4846. `C-c C-e t'
  4847. Insert template with export options, see example below.
  4848. #+TITLE: the title to be shown (default is the buffer name)
  4849. #+AUTHOR: the author (default taken from `user-full-name')
  4850. #+DATE: A date, fixed, of a format string for `format-time-string'
  4851. #+EMAIL: his/her email address (default from `user-mail-address')
  4852. #+LANGUAGE: language for HTML, e.g. `en' (`org-export-default-language')
  4853. #+TEXT: Some descriptive text to be inserted at the beginning.
  4854. #+TEXT: Several lines may be given.
  4855. #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t f:t TeX:t ...
  4856. The OPTIONS line is a compact form to specify export settings. Here
  4857. you can:
  4858. H: set the number of headline levels for export
  4859. num: turn on/off section-numbers
  4860. toc: turn on/off table of contents, or set level limit (integer)
  4861. \n: turn on/off linebreak-preservation
  4862. @: turn on/off quoted HTML tags
  4863. :: turn on/off fixed-width sections
  4864. |: turn on/off tables
  4865. ^: turn on/off TeX-like syntax for sub- and superscripts. If
  4866. you write "^:{}", `a_{b}' will be interpreted, but
  4867. the simple `a_b' will be left as it is.
  4868. -: turn on/off conversion of special strings.
  4869. f: turn on/off foototes like this[1].
  4870. *: turn on/off emphasized text (bold, italic, underlined)
  4871. TeX: turn on/off simple TeX macros in plain text
  4872. LaTeX: turn on/off LaTeX fragments
  4873. skip: turn on/off skipping the text before the first heading
  4874. author: turn on/off inclusion of author name/email into exported file
  4875. timestamp: turn on/off inclusion creation time into exported file
  4876. d: turn on/off inclusion of drawers
  4877. These options take effect in both the HTML and LaTeX export, except
  4878. for `TeX' and `LaTeX', which are respectively `t' and `nil' for the
  4879. LaTeX export.
  4880. 
  4881. File: org, Node: Publishing, Next: Miscellaneous, Prev: Exporting, Up: Top
  4882. 13 Publishing
  4883. *************
  4884. Org-mode includes(1) a publishing management system that allows you to
  4885. configure automatic HTML conversion of _projects_ composed of
  4886. interlinked org files. This system is called _org-publish_. You can
  4887. also configure org-publish to automatically upload your exported HTML
  4888. pages and related attachments, such as images and source code files, to
  4889. a web server. Org-publish turns org-mode into a web-site authoring tool.
  4890. You can also use Org-publish to convert files into LaTeX, or even
  4891. combine HTML and LaTeX conversion so that files are available in both
  4892. formats on the server(2).
  4893. Org-publish has been contributed to Org-mode by David O'Toole.
  4894. * Menu:
  4895. * Configuration:: Defining projects
  4896. * Sample configuration:: Example projects
  4897. * Triggering publication:: Publication commands
  4898. ---------- Footnotes ----------
  4899. (1) `org-publish.el' is not distributed with Emacs 21, if you are
  4900. still using Emacs 21, you need you need to download this file
  4901. separately.
  4902. (2) Since LaTeX files on a server are not that helpful, you surely
  4903. want to perform further conversion on them - e.g. convert them to `PDF'
  4904. format.
  4905. 
  4906. File: org, Node: Configuration, Next: Sample configuration, Prev: Publishing, Up: Publishing
  4907. 13.1 Configuration
  4908. ==================
  4909. Publishing needs significant configuration to specify files, destination
  4910. and many other properties of a project.
  4911. * Menu:
  4912. * Project alist:: The central configuration variable
  4913. * Sources and destinations:: From here to there
  4914. * Selecting files:: What files are part of the project?
  4915. * Publishing action:: Setting the function doing the publishing
  4916. * Publishing options:: Tweaking HTML export
  4917. * Publishing links:: Which links keep working after publishing?
  4918. * Project page index:: Publishing a list of project files
  4919. 
  4920. File: org, Node: Project alist, Next: Sources and destinations, Prev: Configuration, Up: Configuration
  4921. 13.1.1 The variable `org-publish-project-alist'
  4922. -----------------------------------------------
  4923. Org-publish is configured almost entirely through setting the value of
  4924. one variable, called `org-publish-project-alist'. Each element of the
  4925. list configures one project, and may be in one of the two following
  4926. forms:
  4927. ("project-name" :property value :property value ...)
  4928. or
  4929. ("project-name" :components ("project-name" "project-name" ...))
  4930. In both cases, projects are configured by specifying property values.
  4931. A project defines the set of files that will be published, as well as
  4932. the publishing configuration to use when publishing those files. When
  4933. a project takes the second form listed above, the individual members of
  4934. the "components" property are taken to be components of the project,
  4935. which group together files requiring different publishing options. When
  4936. you publish such a "meta-project" all the components will also publish.
  4937. 
  4938. File: org, Node: Sources and destinations, Next: Selecting files, Prev: Project alist, Up: Configuration
  4939. 13.1.2 Sources and destinations for files
  4940. -----------------------------------------
  4941. Most properties are optional, but some should always be set. In
  4942. particular, org-publish needs to know where to look for source files,
  4943. and where to put published files.
  4944. `:base-directory' Directory containing publishing source files
  4945. `:publishing-directory'Directory (possibly remote) where output files
  4946. will be published.
  4947. `:preparation-function'Function called before starting publishing
  4948. process, for example to run `make' for updating
  4949. files to be published.
  4950. 
  4951. File: org, Node: Selecting files, Next: Publishing action, Prev: Sources and destinations, Up: Configuration
  4952. 13.1.3 Selecting files
  4953. ----------------------
  4954. By default, all files with extension `.org' in the base directory are
  4955. considered part of the project. This can be modified by setting the
  4956. properties
  4957. `:base-extension' Extension (without the dot!) of source files. This
  4958. actually is a regular expression.
  4959. `:exclude' Regular expression to match file names that should
  4960. not be published, even though they have been selected
  4961. on the basis of their extension.
  4962. `:include' List of files to be included regardless of
  4963. `:base-extension' and `:exclude'.
  4964. 
  4965. File: org, Node: Publishing action, Next: Publishing options, Prev: Selecting files, Up: Configuration
  4966. 13.1.4 Publishing Action
  4967. ------------------------
  4968. Publishing means that a file is copied to the destination directory and
  4969. possibly transformed in the process. The default transformation is to
  4970. export Org-mode files as HTML files, and this is done by the function
  4971. `org-publish-org-to-html' which calls the HTML exporter (*note HTML
  4972. export::). But you also can publish your files in LaTeX by using the
  4973. function `org-publish-org-to-latex' instead. Other files like images
  4974. only need to be copied to the publishing destination. For non-Org-mode
  4975. files, you need to specify the publishing function.
  4976. `:publishing-function' Function executing the publication of a file.
  4977. This may also be a list of functions, which will
  4978. all be called in turn.
  4979. The function must accept two arguments: a property list containing at
  4980. least a `:publishing-directory' property, and the name of the file to
  4981. be published. It should take the specified file, make the necessary
  4982. transformation (if any) and place the result into the destination
  4983. folder. You can write your own publishing function, but `org-publish'
  4984. provides one for attachments (files that only need to be copied):
  4985. `org-publish-attachment'.
  4986. 
  4987. File: org, Node: Publishing options, Next: Publishing links, Prev: Publishing action, Up: Configuration
  4988. 13.1.5 Options for the HTML/LaTeX exporters
  4989. -------------------------------------------
  4990. The property list can be used to set many export options for the HTML
  4991. and LaTeX exporters. In most cases, these properties correspond to user
  4992. variables in Org-mode. The table below lists these properties along
  4993. with the variable they belong to. See the documentation string for the
  4994. respective variable for details.
  4995. `:language' `org-export-default-language'
  4996. `:headline-levels' `org-export-headline-levels'
  4997. `:section-numbers' `org-export-with-section-numbers'
  4998. `:table-of-contents' `org-export-with-toc'
  4999. `:archived-trees' `org-export-with-archived-trees'
  5000. `:emphasize' `org-export-with-emphasize'
  5001. `:sub-superscript' `org-export-with-sub-superscripts'
  5002. `:special-strings' `org-export-with-special-strings'
  5003. `:TeX-macros' `org-export-with-TeX-macros'
  5004. `:LaTeX-fragments' `org-export-with-LaTeX-fragments'
  5005. `:fixed-width' `org-export-with-fixed-width'
  5006. `:timestamps' `org-export-with-timestamps'
  5007. .
  5008. `:tags' `org-export-with-tags'
  5009. .
  5010. `:tables' `org-export-with-tables'
  5011. `:table-auto-headline' `org-export-highlight-first-table-line'
  5012. `:style' `org-export-html-style'
  5013. `:convert-org-links' `org-export-html-link-org-files-as-html'
  5014. `:inline-images' `org-export-html-inline-images'
  5015. `:expand-quoted-html' `org-export-html-expand'
  5016. `:timestamp' `org-export-html-with-timestamp'
  5017. `:publishing-directory'`org-export-publishing-directory'
  5018. `:preamble' `org-export-html-preamble'
  5019. `:postamble' `org-export-html-postamble'
  5020. `:auto-preamble' `org-export-html-auto-preamble'
  5021. `:auto-postamble' `org-export-html-auto-postamble'
  5022. `:author' `user-full-name'
  5023. `:email' `user-mail-address'
  5024. If you use several email addresses, separate them by a semi-column.
  5025. Most of the `org-export-with-*' variables have the same effect in
  5026. both HTML and LaTeX exporters, except for `:TeX-macros' and
  5027. `:LaTeX-fragments', respectively `nil' and `t' in the LaTeX export.
  5028. When a property is given a value in `org-publish-project-alist', its
  5029. setting overrides the value of the corresponding user variable (if any)
  5030. during publishing. Options set within a file (*note Export options::),
  5031. however, override everything.
  5032. 
  5033. File: org, Node: Publishing links, Next: Project page index, Prev: Publishing options, Up: Configuration
  5034. 13.1.6 Links between published files
  5035. ------------------------------------
  5036. To create a link from one Org-mode file to another, you would use
  5037. something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
  5038. (*note Hyperlinks::). Upon publishing this link becomes a link to
  5039. `foo.html'. In this way, you can interlink the pages of your "org web"
  5040. project and the links will work as expected when you publish them to
  5041. HTML.
  5042. You may also link to related files, such as images. Provided you are
  5043. careful with relative pathnames, and provided you have also configured
  5044. `org-publish' to upload the related files, these links will work too.
  5045. *Note Complex example:: for an example of this usage.
  5046. Sometime an Org-mode file to be published may contain links that are
  5047. only valid in your production environment, but not in the publishing
  5048. location. In this case, use the property
  5049. `:link-validation-function' Function to validate links
  5050. to define a function for checking link validity. This function must
  5051. accept two arguments, the file name and a directory relative to which
  5052. the file name is interpreted in the production environment. If this
  5053. function returns `nil', then the HTML generator will only insert a
  5054. description into the HTML file, but no link. One option for this
  5055. function is `org-publish-validate-link' which checks if the given file
  5056. is part of any project in `org-publish-project-alist'.
  5057. 
  5058. File: org, Node: Project page index, Prev: Publishing links, Up: Configuration
  5059. 13.1.7 Project page index
  5060. -------------------------
  5061. The following properties may be used to control publishing of an index
  5062. of files or summary page for a given project.
  5063. `:auto-index' When non-nil, publish an index during
  5064. org-publish-current-project or org-publish-all.
  5065. `:index-filename' Filename for output of index. Defaults to `index.org'
  5066. (which becomes `index.html').
  5067. `:index-title' Title of index page. Defaults to name of file.
  5068. `:index-function' Plugin function to use for generation of index.
  5069. Defaults to `org-publish-org-index', which generates
  5070. a plain list of links to all files in the project.
  5071. 
  5072. File: org, Node: Sample configuration, Next: Triggering publication, Prev: Configuration, Up: Publishing
  5073. 13.2 Sample configuration
  5074. =========================
  5075. Below we provide two example configurations. The first one is a simple
  5076. project publishing only a set of Org-mode files. The second example is
  5077. more complex, with a multi-component project.
  5078. * Menu:
  5079. * Simple example:: One-component publishing
  5080. * Complex example:: A multi-component publishing example
  5081. 
  5082. File: org, Node: Simple example, Next: Complex example, Prev: Sample configuration, Up: Sample configuration
  5083. 13.2.1 Example: simple publishing configuration
  5084. -----------------------------------------------
  5085. This example publishes a set of Org-mode files to the `public_html'
  5086. directory on the local machine.
  5087. (setq org-publish-project-alist
  5088. '(("org"
  5089. :base-directory "~/org/"
  5090. :publishing-directory "~/public_html"
  5091. :section-numbers nil
  5092. :table-of-contents nil
  5093. :style "<link rel=stylesheet
  5094. href=\"../other/mystyle.css\"
  5095. type=\"text/css\">")))
  5096. 
  5097. File: org, Node: Complex example, Prev: Simple example, Up: Sample configuration
  5098. 13.2.2 Example: complex publishing configuration
  5099. ------------------------------------------------
  5100. This more complicated example publishes an entire website, including
  5101. org files converted to HTML, image files, emacs lisp source code, and
  5102. stylesheets. The publishing-directory is remote and private files are
  5103. excluded.
  5104. To ensure that links are preserved, care should be taken to replicate
  5105. your directory structure on the web server, and to use relative file
  5106. paths. For example, if your org files are kept in `~/org' and your
  5107. publishable images in `~/images', you'd link to an image with
  5108. file:../images/myimage.png
  5109. On the web server, the relative path to the image should be the
  5110. same. You can accomplish this by setting up an "images" folder in the
  5111. right place on the webserver, and publishing images to it.
  5112. (setq org-publish-project-alist
  5113. '(("orgfiles"
  5114. :base-directory "~/org/"
  5115. :base-extension "org"
  5116. :publishing-directory "/ssh:user@host:~/html/notebook/"
  5117. :publishing-function org-publish-org-to-html
  5118. :exclude "PrivatePage.org" ;; regexp
  5119. :headline-levels 3
  5120. :section-numbers nil
  5121. :table-of-contents nil
  5122. :style "<link rel=stylesheet
  5123. href=\"../other/mystyle.css\" type=\"text/css\">"
  5124. :auto-preamble t
  5125. :auto-postamble nil)
  5126. ("images"
  5127. :base-directory "~/images/"
  5128. :base-extension "jpg\\|gif\\|png"
  5129. :publishing-directory "/ssh:user@host:~/html/images/"
  5130. :publishing-function org-publish-attachment)
  5131. ("other"
  5132. :base-directory "~/other/"
  5133. :base-extension "css\\|el"
  5134. :publishing-directory "/ssh:user@host:~/html/other/"
  5135. :publishing-function org-publish-attachment)
  5136. ("website" :components ("orgfiles" "images" "other"))))
  5137. 
  5138. File: org, Node: Triggering publication, Prev: Sample configuration, Up: Publishing
  5139. 13.3 Triggering publication
  5140. ===========================
  5141. Once org-publish is properly configured, you can publish with the
  5142. following functions:
  5143. `C-c C-e C'
  5144. Prompt for a specific project and publish all files that belong to
  5145. it.
  5146. `C-c C-e P'
  5147. Publish the project containing the current file.
  5148. `C-c C-e F'
  5149. Publish only the current file.
  5150. `C-c C-e A'
  5151. Publish all projects.
  5152. Org uses timestamps to track when a file has changed. The above
  5153. functions normally only publish changed files. You can override this and
  5154. force publishing of all files by giving a prefix argument.
  5155. 
  5156. File: org, Node: Miscellaneous, Next: Extensions and Hacking, Prev: Publishing, Up: Top
  5157. 14 Miscellaneous
  5158. ****************
  5159. * Menu:
  5160. * Completion:: M-TAB knows what you need
  5161. * Customization:: Adapting Org-mode to your taste
  5162. * In-buffer settings:: Overview of the #+KEYWORDS
  5163. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  5164. * Clean view:: Getting rid of leading stars in the outline
  5165. * TTY keys:: Using Org-mode on a tty
  5166. * Interaction:: Other Emacs packages
  5167. * Bugs:: Things which do not work perfectly
  5168. 
  5169. File: org, Node: Completion, Next: Customization, Prev: Miscellaneous, Up: Miscellaneous
  5170. 14.1 Completion
  5171. ===============
  5172. Org-mode supports in-buffer completion. This type of completion does
  5173. not make use of the minibuffer. You simply type a few letters into the
  5174. buffer and use the key to complete text right there.
  5175. `M-<TAB>'
  5176. Complete word at point
  5177. * At the beginning of a headline, complete TODO keywords.
  5178. * After `\', complete TeX symbols supported by the exporter.
  5179. * After `*', complete headlines in the current buffer so that
  5180. they can be used in search links like `[[*find this
  5181. headline]]'.
  5182. * After `:' in a headline, complete tags. The list of tags is
  5183. taken from the variable `org-tag-alist' (possibly set through
  5184. the `#+TAGS' in-buffer option, *note Setting tags::), or it
  5185. is created dynamically from all tags used in the current
  5186. buffer.
  5187. * After `:' and not in a headline, complete property keys. The
  5188. list of keys is constructed dynamically from all keys used in
  5189. the current buffer.
  5190. * After `[', complete link abbreviations (*note Link
  5191. abbreviations::).
  5192. * After `#+', complete the special keywords like `TYP_TODO' or
  5193. `OPTIONS' which set file-specific options for Org-mode. When
  5194. the option keyword is already complete, pressing `M-<TAB>'
  5195. again will insert example settings for this keyword.
  5196. * In the line after `#+STARTUP: ', complete startup keywords,
  5197. i.e. valid keys for this line.
  5198. * Elsewhere, complete dictionary words using ispell.
  5199. 
  5200. File: org, Node: Customization, Next: In-buffer settings, Prev: Completion, Up: Miscellaneous
  5201. 14.2 Customization
  5202. ==================
  5203. There are more than 180 variables that can be used to customize
  5204. Org-mode. For the sake of compactness of the manual, I am not
  5205. describing the variables here. A structured overview of customization
  5206. variables is available with `M-x org-customize'. Or select `Browse Org
  5207. Group' from the `Org->Customization' menu. Many settings can also be
  5208. activated on a per-file basis, by putting special lines into the buffer
  5209. (*note In-buffer settings::).
  5210. 
  5211. File: org, Node: In-buffer settings, Next: The very busy C-c C-c key, Prev: Customization, Up: Miscellaneous
  5212. 14.3 Summary of in-buffer settings
  5213. ==================================
  5214. Org-mode uses special lines in the buffer to define settings on a
  5215. per-file basis. These lines start with a `#+' followed by a keyword, a
  5216. colon, and then individual words defining a setting. Several setting
  5217. words can be in the same line, but you can also have multiple lines for
  5218. the keyword. While these settings are described throughout the manual,
  5219. here is a summary. After changing any of those lines in the buffer,
  5220. press `C-c C-c' with the cursor still in the line to activate the
  5221. changes immediately. Otherwise they become effective only when the
  5222. file is visited again in a new Emacs session.
  5223. `#+ARCHIVE: %s_done::'
  5224. This line sets the archive location for the agenda file. It
  5225. applies for all subsequent lines until the next `#+ARCHIVE' line,
  5226. or the end of the file. The first such line also applies to any
  5227. entries before it. The corresponding variable is
  5228. `org-archive-location'.
  5229. `#+CATEGORY:'
  5230. This line sets the category for the agenda file. The category
  5231. applies for all subsequent lines until the next `#+CATEGORY' line,
  5232. or the end of the file. The first such line also applies to any
  5233. entries before it.
  5234. `#+COLUMNS: %25ITEM .....'
  5235. Set the default format for columns view. This format applies when
  5236. columns view is invoked in location where no `COLUMNS' property
  5237. applies.
  5238. `#+CONSTANTS: name1=value1 ...'
  5239. Set file-local values for constants to be used in table formulas.
  5240. This line set the local variable
  5241. `org-table-formula-constants-local'. The global version of this
  5242. variable is `org-table-formula-constants'.
  5243. `#+DRAWERS: NAME1 .....'
  5244. Set the file-local set of drawers. The corresponding global
  5245. variable is `org-drawers'.
  5246. `#+LINK: linkword replace'
  5247. These lines (several are allowed) specify link abbreviations.
  5248. *Note Link abbreviations::. The corresponding variable is
  5249. `org-link-abbrev-alist'.
  5250. `#+PRIORITIES: highest lowest default'
  5251. This line sets the limits and the default for the priorities. All
  5252. three must be either letters A-Z or numbers 0-9. The highest
  5253. priority must have a lower ASCII number that the lowest priority.
  5254. `#+PROPERTY: Property_Name Value'
  5255. This line sets a default inheritance value for entries in the
  5256. current buffer, most useful for specifying the allowed values of a
  5257. property.
  5258. `#+STARTUP:'
  5259. This line sets options to be used at startup of Org-mode, when an
  5260. Org-mode file is being visited. The first set of options deals
  5261. with the initial visibility of the outline tree. The
  5262. corresponding variable for global default settings is
  5263. `org-startup-folded', with a default value `t', which means
  5264. `overview'.
  5265. overview top-level headlines only
  5266. content all headlines
  5267. showall no folding at all, show everything
  5268. Then there are options for aligning tables upon visiting a file.
  5269. This is useful in files containing narrowed table columns. The
  5270. corresponding variable is `org-startup-align-all-tables', with a
  5271. default value `nil'.
  5272. align align all tables
  5273. noalign don't align tables on startup
  5274. Logging TODO state changes and clock intervals (variables
  5275. `org-log-done' and `org-log-repeat') can be configured using these
  5276. options.
  5277. logging record a timestamp when an item is marked DONE
  5278. nologging don't record when items are marked DONE
  5279. lognotedone record timestamp and a note when DONE
  5280. lognotestate record timestamp and a note when TODO state changes
  5281. logrepeat record a note when re-instating a repeating item
  5282. nologrepeat do not record when re-instating repeating item
  5283. lognoteclock-out record timestamp and a note when clocking out
  5284. Here are the options for hiding leading stars in outline headings.
  5285. The corresponding variables are `org-hide-leading-stars' and
  5286. `org-odd-levels-only', both with a default setting `nil' (meaning
  5287. `showstars' and `oddeven').
  5288. hidestars make all but one of the stars starting a headline invisible.
  5289. showstars show all stars starting a headline
  5290. odd allow only odd outline levels (1,3,...)
  5291. oddeven allow all outline levels
  5292. To turn on custom format overlays over time stamps (variables
  5293. `org-put-time-stamp-overlays' and
  5294. `org-time-stamp-overlay-formats'), use
  5295. customtime overlay custom time format
  5296. The following options influence the table spreadsheet (variable
  5297. `constants-unit-system').
  5298. constcgs `constants.el' should use the c-g-s unit system
  5299. constSI `constants.el' should use the SI unit system
  5300. `#+TAGS: TAG1(c1) TAG2(c2)'
  5301. These lines (several such lines are allowed) specify the legal
  5302. tags in this file, and (potentially) the corresponding _fast tag
  5303. selection_ keys. The corresponding variable is `org-tag-alist'.
  5304. `#+TBLFM:'
  5305. This line contains the formulas for the table directly above the
  5306. line.
  5307. `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS, #+DATE:'
  5308. These lines provide settings for exporting files. For more
  5309. details see *Note Export options::.
  5310. `#+SEQ_TODO: #+TYP_TODO:'
  5311. These lines set the TODO keywords and their interpretation in the
  5312. current file. The corresponding variables are `org-todo-keywords'
  5313. and `org-todo-interpretation'.
  5314. 
  5315. File: org, Node: The very busy C-c C-c key, Next: Clean view, Prev: In-buffer settings, Up: Miscellaneous
  5316. 14.4 The very busy C-c C-c key
  5317. ==============================
  5318. The key `C-c C-c' has many purposes in org-mode, which are all
  5319. mentioned scattered throughout this manual. One specific function of
  5320. this key is to add _tags_ to a headline (*note Tags::). In many other
  5321. circumstances it means something like _Hey Org-mode, look here and
  5322. update according to what you see here_. Here is a summary of what this
  5323. means in different contexts.
  5324. - If there are highlights in the buffer from the creation of a sparse
  5325. tree, or from clock display, remove these highlights.
  5326. - If the cursor is in one of the special `#+KEYWORD' lines, this
  5327. triggers scanning the buffer for these lines and updating the
  5328. information.
  5329. - If the cursor is inside a table, realign the table. This command
  5330. works even if the automatic table editor has been turned off.
  5331. - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
  5332. entire table.
  5333. - If the cursor is inside a table created by the `table.el' package,
  5334. activate that table.
  5335. - If the current buffer is a remember buffer, close the note and
  5336. file it. With a prefix argument, file it, without further
  5337. interaction, to the default location.
  5338. - If the cursor is on a `<<<target>>>', update radio targets and
  5339. corresponding links in this buffer.
  5340. - If the cursor is in a property line or at the start or end of a
  5341. property drawer, offer property commands.
  5342. - If the cursor is in a plain list item with a checkbox, toggle the
  5343. status of the checkbox.
  5344. - If the cursor is on a numbered item in a plain list, renumber the
  5345. ordered list.
  5346. - If the cursor is on the `#+BEGIN' line of a dynamical block, the
  5347. block is updated.
  5348. 
  5349. File: org, Node: Clean view, Next: TTY keys, Prev: The very busy C-c C-c key, Up: Miscellaneous
  5350. 14.5 A cleaner outline view
  5351. ===========================
  5352. Some people find it noisy and distracting that the Org-mode headlines
  5353. are starting with a potentially large number of stars. For example the
  5354. tree from *Note Headlines:::
  5355. * Top level headline
  5356. ** Second level
  5357. *** 3rd level
  5358. some text
  5359. *** 3rd level
  5360. more text
  5361. * Another top level headline
  5362. Unfortunately this is deeply ingrained into the code of Org-mode and
  5363. cannot be easily changed. You can, however, modify the display in such
  5364. a way that all leading stars become invisible and the outline more easy
  5365. to read. To do this, customize the variable `org-hide-leading-stars'
  5366. like this:
  5367. (setq org-hide-leading-stars t)
  5368. or change this on a per-file basis with one of the lines (anywhere in
  5369. the buffer)
  5370. #+STARTUP: showstars
  5371. #+STARTUP: hidestars
  5372. Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
  5373. modifications.
  5374. With stars hidden, the tree becomes:
  5375. * Top level headline
  5376. * Second level
  5377. * 3rd level
  5378. some text
  5379. * 3rd level
  5380. more text
  5381. * Another top level headline
  5382. Note that the leading stars are not truly replaced by whitespace, they
  5383. are only fontified with the face `org-hide' that uses the background
  5384. color as font color. If you are not using either white or black
  5385. background, you may have to customize this face to get the wanted
  5386. effect. Another possibility is to set this font such that the extra
  5387. stars are almost invisible, for example using the color `grey90' on a
  5388. white background.
  5389. Things become cleaner still if you skip all the even levels and use
  5390. only odd levels 1, 3, 5..., effectively adding two stars to go from one
  5391. outline level to the next:
  5392. * Top level headline
  5393. * Second level
  5394. * 3rd level
  5395. some text
  5396. * 3rd level
  5397. more text
  5398. * Another top level headline
  5399. In order to make the structure editing and export commands handle this
  5400. convention correctly, use
  5401. (setq org-odd-levels-only t)
  5402. or set this on a per-file basis with one of the following lines (don't
  5403. forget to press `C-c C-c' with the cursor in the startup line to
  5404. activate changes immediately).
  5405. #+STARTUP: odd
  5406. #+STARTUP: oddeven
  5407. You can convert an Org-mode file from single-star-per-level to the
  5408. double-star-per-level convention with `M-x org-convert-to-odd-levels
  5409. RET' in that file. The reverse operation is `M-x
  5410. org-convert-to-oddeven-levels'.
  5411. 
  5412. File: org, Node: TTY keys, Next: Interaction, Prev: Clean view, Up: Miscellaneous
  5413. 14.6 Using org-mode on a tty
  5414. ============================
  5415. Because Org-mode contains a large number of commands, by default much of
  5416. Org-mode's core commands are bound to keys that are generally not
  5417. accessible on a tty, such as the cursor keys (<left>, <right>, <up>,
  5418. <down>), <TAB> and <RET>, in particular when used together with
  5419. modifiers like <Meta> and/or <Shift>. To access these commands on a
  5420. tty when special keys are unavailable, the following alternative
  5421. bindings can be used. The tty bindings below will likely be more
  5422. cumbersome; you may find for some of the bindings below that a
  5423. customized work-around suits you better. For example, changing a time
  5424. stamp is really only fun with `S-<cursor>' keys, whereas on a tty you
  5425. would rather use `C-c .' to re-insert the timestamp.
  5426. Default Alternative 1 Alternative 2
  5427. `S-<TAB>' `C-u <TAB>'
  5428. `M-<left>' `C-c C-x l' `<Esc> <left>'
  5429. `M-S-<left>'`C-c C-x L'
  5430. `M-<right>' `C-c C-x r' `<Esc>
  5431. <right>'
  5432. `M-S-<right>'`C-c C-x R'
  5433. `M-<up>' `C-c C-x u' `<Esc> <up>'
  5434. `M-S-<up>' `C-c C-x U'
  5435. `M-<down>' `C-c C-x d' `<Esc> <down>'
  5436. `M-S-<down>'`C-c C-x D'
  5437. `S-<RET>' `C-c C-x c'
  5438. `M-<RET>' `C-c C-x m' `<Esc> <RET>'
  5439. `M-S-<RET>' `C-c C-x M'
  5440. `S-<left>' `C-c <left>'
  5441. `S-<right>' `C-c <right>'
  5442. `S-<up>' `C-c <up>'
  5443. `S-<down>' `C-c <down>'
  5444. `C-S-<left>'`C-c C-x
  5445. <left>'
  5446. `C-S-<right>'`C-c C-x
  5447. <right>'
  5448. 
  5449. File: org, Node: Interaction, Next: Bugs, Prev: TTY keys, Up: Miscellaneous
  5450. 14.7 Interaction with other packages
  5451. ====================================
  5452. Org-mode lives in the world of GNU Emacs and interacts in various ways
  5453. with other code out there.
  5454. * Menu:
  5455. * Cooperation:: Packages Org-mode cooperates with
  5456. * Conflicts:: Packages that lead to conflicts
  5457. 
  5458. File: org, Node: Cooperation, Next: Conflicts, Prev: Interaction, Up: Interaction
  5459. 14.7.1 Packages that Org-mode cooperates with
  5460. ---------------------------------------------
  5461. `calc.el' by Dave Gillespie
  5462. Org-mode uses the calc package for implementing spreadsheet
  5463. functionality in its tables (*note The spreadsheet::). Org-mode
  5464. checks for the availability of calc by looking for the function
  5465. `calc-eval' which should be autoloaded in your setup if calc has
  5466. been installed properly. As of Emacs 22, calc is part of the Emacs
  5467. distribution. Another possibility for interaction between the two
  5468. packages is using calc for embedded calculations. *Note Embedded
  5469. Mode: (calc)Embedded Mode.
  5470. `constants.el' by Carsten Dominik
  5471. In a table formula (*note The spreadsheet::), it is possible to use
  5472. names for natural constants or units. Instead of defining your own
  5473. constants in the variable `org-table-formula-constants', install
  5474. the `constants' package which defines a large number of constants
  5475. and units, and lets you use unit prefixes like `M' for `Mega' etc.
  5476. You will need version 2.0 of this package, available at
  5477. `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for the
  5478. function `constants-get', which has to be autoloaded in your
  5479. setup. See the installation instructions in the file
  5480. `constants.el'.
  5481. `cdlatex.el' by Carsten Dominik
  5482. Org-mode can make use of the cdlatex package to efficiently enter
  5483. LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
  5484. `imenu.el' by Ake Stenhoff and Lars Lindberg
  5485. Imenu allows menu access to an index of items in a file. Org-mode
  5486. supports imenu - all you need to do to get the index is the
  5487. following:
  5488. (add-hook 'org-mode-hook
  5489. (lambda () 'imenu-add-to-menubar "Imenu"))
  5490. By default the index is two levels deep - you can modify the depth
  5491. using the option `org-imenu-depth'.
  5492. `remember.el' by John Wiegley
  5493. Org mode cooperates with remember, see *Note Remember::.
  5494. `Remember.el' is not part of Emacs, find it on the web.
  5495. `speedbar.el' by Eric M. Ludlam
  5496. Speedbar is a package that creates a special frame displaying
  5497. files and index items in files. Org-mode supports speedbar and
  5498. allows you to drill into Org-mode files directly from the
  5499. speedbar. It also allows to restrict the scope of agenda commands
  5500. to a file or a subtree by using the command `<' in the speedbar
  5501. frame.
  5502. `table.el' by Takaaki Ota
  5503. Complex ASCII tables with automatic line wrapping, column- and
  5504. row-spanning, and alignment can be created using the Emacs table
  5505. package by Takaaki Ota (`http://sourceforge.net/projects/table',
  5506. and also part of Emacs 22). When <TAB> or `C-c C-c' is pressed in
  5507. such a table, Org-mode will call `table-recognize-table' and move
  5508. the cursor into the table. Inside a table, the keymap of Org-mode
  5509. is inactive. In order to execute Org-mode-related commands, leave
  5510. the table.
  5511. `C-c C-c'
  5512. Recognize `table.el' table. Works when the cursor is in a
  5513. table.el table.
  5514. `C-c ~'
  5515. Insert a table.el table. If there is already a table at
  5516. point, this command converts it between the table.el format
  5517. and the Org-mode format. See the documentation string of the
  5518. command `org-convert-table' for the restrictions under which
  5519. this is possible.
  5520. `table.el' is part of Emacs 22.
  5521. `footnote.el' by Steven L. Baur
  5522. Org-mode recognizes numerical footnotes as provided by this package
  5523. (*note Footnotes::).
  5524. 
  5525. File: org, Node: Conflicts, Prev: Cooperation, Up: Interaction
  5526. 14.7.2 Packages that lead to conflicts with Org-mode
  5527. ----------------------------------------------------
  5528. `allout.el' by Ken Manheimer
  5529. Startup of Org-mode may fail with the error message
  5530. `(wrong-type-argument keymapp nil)' when there is an outdated
  5531. version `allout.el' on the load path, for example the version
  5532. distributed with Emacs 21.x. Upgrade to Emacs 22 and this problem
  5533. will disappear. If for some reason you cannot do this, make sure
  5534. that org.el is loaded _before_ `allout.el', for example by putting
  5535. `(require 'org)' early enough into your `.emacs' file.
  5536. `CUA.el' by Kim. F. Storm
  5537. Keybindings in Org-mode conflict with the `S-<cursor>' keys used by
  5538. CUA-mode (as well as pc-select-mode and s-region-mode) to select
  5539. and extend the region. If you want to use one of these packages
  5540. along with Org-mode, configure the variable
  5541. `org-replace-disputed-keys'. When set, Org-mode will move the
  5542. following keybindings in Org-mode files, and in the agenda buffer
  5543. (but not during date selection).
  5544. S-UP -> M-p S-DOWN -> M-n
  5545. S-LEFT -> M-- S-RIGHT -> M-+
  5546. Yes, these are unfortunately more difficult to remember. If you
  5547. want to have other replacement keys, look at the variable
  5548. `org-disputed-keys'.
  5549. `windmove.el' by Hovav Shacham
  5550. Also this package uses the `S-<cursor>' keys, so everything written
  5551. in the paragraph above about CUA mode also applies here.
  5552. `footnote.el' by Steven L. Baur
  5553. Org-mode supports the syntax of the footnote package, but only the
  5554. numerical footnote markers. Also, the default key for footnote
  5555. commands, `C-c !' is already used by Org-mode. You could use the
  5556. variable `footnote-prefix' to switch footnotes commands to another
  5557. key. Or, you could use `org-replace-disputed-keys' and
  5558. `org-disputed-keys' to change the settings in Org-mode.
  5559. 
  5560. File: org, Node: Bugs, Prev: Interaction, Up: Miscellaneous
  5561. 14.8 Bugs
  5562. =========
  5563. Here is a list of things that should work differently, but which I have
  5564. found too hard to fix.
  5565. * If a table field starts with a link, and if the corresponding table
  5566. column is narrowed (*note Narrow columns::) to a width too small to
  5567. display the link, the field would look entirely empty even though
  5568. it is not. To prevent this, Org-mode throws an error. The
  5569. work-around is to make the column wide enough to fit the link, or
  5570. to add some text (at least 2 characters) before the link in the
  5571. same field.
  5572. * Narrowing table columns does not work on XEmacs, because the
  5573. `format' function does not transport text properties.
  5574. * Text in an entry protected with the `QUOTE' keyword should not
  5575. autowrap.
  5576. * When the application called by `C-c C-o' to open a file link fails
  5577. (for example because the application does not exist or refuses to
  5578. open the file), it does so silently. No error message is
  5579. displayed.
  5580. * Recalculating a table line applies the formulas from left to right.
  5581. If a formula uses _calculated_ fields further down the row,
  5582. multiple recalculation may be needed to get all fields consistent.
  5583. You may use the command `org-table-iterate' (`C-u C-c *') to
  5584. recalculate until convergence.
  5585. * A single letter cannot be made bold, for example `*a*'.
  5586. * The exporters work well, but could be made more efficient.
  5587. 
  5588. File: org, Node: Extensions and Hacking, Next: History and Acknowledgments, Prev: Miscellaneous, Up: Top
  5589. Appendix A Extensions, Hooks and Hacking
  5590. ****************************************
  5591. This appendix lists extensions for Org-mode written by other authors.
  5592. It also covers some aspects where users can extend the functionality of
  5593. Org-mode.
  5594. * Menu:
  5595. * Extensions:: Existing 3rd-part extensions
  5596. * Adding hyperlink types:: New custom link types
  5597. * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
  5598. * Dynamic blocks:: Automatically filled blocks
  5599. * Special agenda views:: Customized views
  5600. * Using the property API:: Writing programs that use entry properties
  5601. 
  5602. File: org, Node: Extensions, Next: Adding hyperlink types, Prev: Extensions and Hacking, Up: Extensions and Hacking
  5603. A.1 Third-party extensions for Org-mode
  5604. =======================================
  5605. The following extensions for Org-mode have been written by other people:
  5606. `org-publish.el' by David O'Toole
  5607. This package provides facilities for publishing related sets of
  5608. Org-mode files together with linked files like images as webpages.
  5609. It is highly configurable and can be used for other publishing
  5610. purposes as well. As of Org-mode version 4.30, `org-publish.el'
  5611. is part of the Org-mode distribution. It is not yet part of
  5612. Emacs, however, a delay caused by the preparations for the 22.1
  5613. release. In the mean time, `org-publish.el' can be downloaded
  5614. from David's site: `http://dto.freeshell.org/e/org-publish.el'.
  5615. `org-mouse.el' by Piotr Zielinski
  5616. This package implements extended mouse functionality for Org-mode.
  5617. It allows you to cycle visibility and to edit the document
  5618. structure with the mouse. Best of all, it provides a
  5619. context-sensitive menu on <mouse-3> that changes depending on the
  5620. context of a mouse-click. As of Org-mode version 4.53,
  5621. `org-mouse.el' is part of the Org-mode distribution. It is not
  5622. yet part of Emacs, however, a delay caused by the preparations for
  5623. the 22.1 release. In the mean time, `org-mouse.el' can be
  5624. downloaded from Piotr's site:
  5625. `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.
  5626. `org-blog.el' by David O'Toole
  5627. A blogging plug-in for `org-publish.el'.
  5628. `http://dto.freeshell.org/notebook/OrgMode.html'.
  5629. `blorg.el' by Bastien Guerry
  5630. Publish Org-mode files as blogs.
  5631. `http://www.cognition.ens.fr/~guerry/blorg.html'.
  5632. `org2rem.el' by Bastien Guerry
  5633. Translates Org-mode files into something readable by Remind.
  5634. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  5635. `org-toc.el' by Bastien Guerry
  5636. Produces a simple table of contents of an Org-mode file, for easy
  5637. navigation.
  5638. `http://www.cognition.ens.fr/~guerry/u/org-registry.el'.
  5639. `org-registry.el' by Bastien Guerry
  5640. Find which Org-file link to a certain document.
  5641. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  5642. 
  5643. File: org, Node: Adding hyperlink types, Next: Tables in arbitrary syntax, Prev: Extensions, Up: Extensions and Hacking
  5644. A.2 Adding hyperlink types
  5645. ==========================
  5646. Org-mode has a large number of hyperlink types built-in (*note
  5647. Hyperlinks::). If you would like to add new link types, it provides an
  5648. interface for doing so. Lets look at an example file `org-man.el' that
  5649. will add support for creating links like `[[man:printf][The printf
  5650. manpage]]' to show unix manual pages inside emacs:
  5651. ;;; org-man.el - Support for links to manpages in Org-mode
  5652. (require 'org)
  5653. (org-add-link-type "man" 'org-man-open)
  5654. (add-hook 'org-store-link-functions 'org-man-store-link)
  5655. (defcustom org-man-command 'man
  5656. "The Emacs command to be used to display a man page."
  5657. :group 'org-link
  5658. :type '(choice (const man) (const woman)))
  5659. (defun org-man-open (path)
  5660. "Visit the manpage on PATH.
  5661. PATH should be a topic that can be thrown at the man command."
  5662. (funcall org-man-command path))
  5663. (defun org-man-store-link ()
  5664. "Store a link to a manpage."
  5665. (when (memq major-mode '(Man-mode woman-mode))
  5666. ;; This is a man page, we do make this link
  5667. (let* ((page (org-man-get-page-name))
  5668. (link (concat "man:" page))
  5669. (description (format "Manpage for %s" page)))
  5670. (org-store-link-props
  5671. :type "man"
  5672. :link link
  5673. :description description))))
  5674. (defun org-man-get-page-name ()
  5675. "Extract the page name from the buffer name."
  5676. ;; This works for both `Man-mode' and `woman-mode'.
  5677. (if (string-match " \\(\\S-+\\)\\*" (buffer-name))
  5678. (match-string 1 (buffer-name))
  5679. (error "Cannot create link to this man page")))
  5680. (provide 'org-man)
  5681. ;;; org-man.el ends here
  5682. You would activate this new link type in `.emacs' with
  5683. (require 'org-man)
  5684. Lets go through the file and see what it does.
  5685. 1. It does `(require 'org)' to make sure that `org.el' has been
  5686. loaded.
  5687. 2. The next line calls `org-add-link-type' to define a new link type
  5688. with prefix `man'. The call also contains the name of a function
  5689. that will be called to follow such a link.
  5690. 3. The next line adds a function to `org-store-link-functions', in
  5691. order to allow the command `C-c l' to record a useful link in a
  5692. buffer displaying a man page.
  5693. The rest of the file defines the necessary variables and functions.
  5694. First there is a customization variable that determines which emacs
  5695. command should be used to display manpages. There are two options,
  5696. `man' and `woman'. Then the function to follow a link is defined. It
  5697. gets the link path as an argument - in this case the link path is just
  5698. a topic for the manual command. The function calls the value of
  5699. `org-man-command' to display the man page.
  5700. Finally the function `org-man-store-link' is defined. When you try
  5701. to store a link with `C-c l', also this function will be called to try
  5702. to make a link. The function must first decide if it is supposed to
  5703. create the link for this buffer type, we do this by checking the value
  5704. of the variable `major-mode'. If not, the function must exit and
  5705. retunr the value `nil'. If yes, the link is created by getting the
  5706. manual tpoic from the buffer name and prefixing it with the string
  5707. `man:'. Then it must call the command `org-store-link-props' and set
  5708. the `:type' and `:link' properties. Optionally you can also set the
  5709. `:description' property to provide a default for the link description
  5710. when the link is later inserted into tan Org-mode buffer with `C-c C-l'.
  5711. 
  5712. File: org, Node: Tables in arbitrary syntax, Next: Dynamic blocks, Prev: Adding hyperlink types, Up: Extensions and Hacking
  5713. A.3 Tables and Lists in arbitrary syntax
  5714. ========================================
  5715. Since Orgtbl-mode can be used as a minor mode in arbitrary buffers, a
  5716. frequent feature request has been to make it work with native tables in
  5717. specific languages, for example LaTeX. However, this is extremely hard
  5718. to do in a general way, would lead to a customization nightmare, and
  5719. would take away much of the simplicity of the Orgtbl-mode table editor.
  5720. This appendix describes a different approach. We keep the
  5721. Orgtbl-mode table in its native format (the source table), and use a
  5722. custom function to translate the table to the correct syntax, and to
  5723. install it in the right location (the target table). This puts the
  5724. burden of writing conversion functions on the user, but it allows for a
  5725. very flexible system.
  5726. Bastien added the ability to do the same with lists. You can use
  5727. Org's facilities to edit and structure lists by turning `orgstruct-mode'
  5728. on, then locally exporting such lists in another format (HTML, LaTeX or
  5729. TeXInfo.)
  5730. * Menu:
  5731. * Radio tables:: Sending and receiving
  5732. * A LaTeX example:: Step by step, almost a tutorial
  5733. * Translator functions:: Copy and modify
  5734. * Radio lists:: Doing the same for lists.
  5735. 
  5736. File: org, Node: Radio tables, Next: A LaTeX example, Prev: Tables in arbitrary syntax, Up: Tables in arbitrary syntax
  5737. A.3.1 Radio tables
  5738. ------------------
  5739. To define the location of the target table, you first need to create two
  5740. lines that are comments in the current mode, but contain magic words for
  5741. Orgtbl-mode to find. Orgtbl-mode will insert the translated table
  5742. between these lines, replacing whatever was there before. For example:
  5743. /* BEGIN RECEIVE ORGTBL table_name */
  5744. /* END RECEIVE ORGTBL table_name */
  5745. Just above the source table, we put a special line that tells
  5746. Orgtbl-mode how to translate this table and where to install it. For
  5747. example:
  5748. #+ORGTBL: SEND table_name translation_function arguments....
  5749. `table_name' is the reference name for the table that is also used in
  5750. the receiver lines. `translation_function' is the Lisp function that
  5751. does the translation. Furthermore, the line can contain a list of
  5752. arguments (alternating key and value) at the end. The arguments will be
  5753. passed as a property list to the translation function for
  5754. interpretation. A few standard parameters are already recognized and
  5755. acted upon before the translation function is called:
  5756. `:skip N'
  5757. Skip the first N lines of the table. Hlines do count!
  5758. `:skipcols (n1 n2 ...)'
  5759. List of columns that should be skipped. If the table has a column
  5760. with calculation marks, that column is automatically discarded as
  5761. well. Please note that the translator function sees the table
  5762. _after_ the removal of these columns, the function never knows
  5763. that there have been additional columns.
  5764. The one problem remaining is how to keep the source table in the buffer
  5765. without disturbing the normal workings of the file, for example during
  5766. compilation of a C file or processing of a LaTeX file. There are a
  5767. number of different solutions:
  5768. * The table could be placed in a block comment if that is supported
  5769. by the language. For example, in C-mode you could wrap the table
  5770. between `/*' and `*/' lines.
  5771. * Sometimes it is possible to put the table after some kind of END
  5772. statement, for example `\bye' in TeX and `\end{document}' in LaTeX.
  5773. * You can just comment the table line by line whenever you want to
  5774. process the file, and uncomment it whenever you need to edit the
  5775. table. This only sounds tedious - the command `M-x
  5776. orgtbl-toggle-comment' does make this comment-toggling very easy,
  5777. in particular if you bind it to a key.
  5778. 
  5779. File: org, Node: A LaTeX example, Next: Translator functions, Prev: Radio tables, Up: Tables in arbitrary syntax
  5780. A.3.2 A LaTeX example of radio tables
  5781. -------------------------------------
  5782. The best way to wrap the source table in LaTeX is to use the `comment'
  5783. environment provided by `comment.sty'. It has to be activated by
  5784. placing `\usepackage{comment}' into the document header. Orgtbl-mode
  5785. can insert a radio table skeleton(1) with the command `M-x
  5786. orgtbl-insert-radio-table'. You will be prompted for a table name,
  5787. lets say we use `salesfigures'. You will then get the following
  5788. template:
  5789. % BEGIN RECEIVE ORGTBL salesfigures
  5790. % END RECEIVE ORGTBL salesfigures
  5791. \begin{comment}
  5792. #+ORGTBL: SEND salesfigures orgtbl-to-latex
  5793. | | |
  5794. \end{comment}
  5795. The `#+ORGTBL: SEND' line tells orgtbl-mode to use the function
  5796. `orgtbl-to-latex' to convert the table into LaTeX and to put it into
  5797. the receiver location with name `salesfigures'. You may now fill in
  5798. the table, feel free to use the spreadsheet features(2):
  5799. % BEGIN RECEIVE ORGTBL salesfigures
  5800. % END RECEIVE ORGTBL salesfigures
  5801. \begin{comment}
  5802. #+ORGTBL: SEND salesfigures orgtbl-to-latex
  5803. | Month | Days | Nr sold | per day |
  5804. |-------+------+---------+---------|
  5805. | Jan | 23 | 55 | 2.4 |
  5806. | Feb | 21 | 16 | 0.8 |
  5807. | March | 22 | 278 | 12.6 |
  5808. #+TBLFM: $4=$3/$2;%.1f
  5809. % $ (optional extra dollar to keep font-lock happy, see footnote)
  5810. \end{comment}
  5811. When you are done, press `C-c C-c' in the table to get the converted
  5812. table inserted between the two marker lines.
  5813. Now lets assume you want to make the table header by hand, because
  5814. you want to control how columns are aligned etc. In this case we make
  5815. sure that the table translator does skip the first 2 lines of the source
  5816. table, and tell the command to work as a splice, i.e. to not produce
  5817. header and footer commands of the target table:
  5818. \begin{tabular}{lrrr}
  5819. Month & \multicolumn{1}{c}{Days} & Nr.\ sold & per day\\
  5820. % BEGIN RECEIVE ORGTBL salesfigures
  5821. % END RECEIVE ORGTBL salesfigures
  5822. \end{tabular}
  5823. %
  5824. \begin{comment}
  5825. #+ORGTBL: SEND salesfigures orgtbl-to-latex :splice t :skip 2
  5826. | Month | Days | Nr sold | per day |
  5827. |-------+------+---------+---------|
  5828. | Jan | 23 | 55 | 2.4 |
  5829. | Feb | 21 | 16 | 0.8 |
  5830. | March | 22 | 278 | 12.6 |
  5831. #+TBLFM: $4=$3/$2;%.1f
  5832. \end{comment}
  5833. The LaTeX translator function `orgtbl-to-latex' is already part of
  5834. Orgtbl-mode. It uses a `tabular' environment to typeset the table and
  5835. marks horizontal lines with `\hline'. Furthermore, it interprets the
  5836. following parameters:
  5837. `:splice nil/t'
  5838. When set to t, return only table body lines, don't wrap them into a
  5839. tabular environment. Default is nil.
  5840. `:fmt fmt'
  5841. A format to be used to wrap each field, should contain `%s' for the
  5842. original field value. For example, to wrap each field value in
  5843. dollars, you could use `:fmt "$%s$"'. This may also be a property
  5844. list with column numbers and formats. for example `:fmt (2 "$%s$"
  5845. 4 "%s\\%%")'.
  5846. `:efmt efmt'
  5847. Use this format to print numbers with exponentials. The format
  5848. should have `%s' twice for inserting mantissa and exponent, for
  5849. example `"%s\\times10^{%s}"'. The default is `"%s\\,(%s)"'. This
  5850. may also be a property list with column numbers and formats, for
  5851. example `:efmt (2 "$%s\\times10^{%s}$" 4 "$%s\\cdot10^{%s}$")'.
  5852. After `efmt' has been applied to a value, `fmt' will also be
  5853. applied.
  5854. ---------- Footnotes ----------
  5855. (1) By default this works only for LaTeX, HTML, and TeXInfo.
  5856. Configure the variable `orgtbl-radio-tables' to install templates for
  5857. other modes.
  5858. (2) If the `#+TBLFM' line contains an odd number of dollar
  5859. characters, this may cause problems with font-lock in latex-mode. As
  5860. shown in the example you can fix this by adding an extra line inside the
  5861. `comment' environment that is used to balance the dollar expressions.
  5862. If you are using AUCTeX with the font-latex library, a much better
  5863. solution is to add the `comment' environment to the variable
  5864. `LaTeX-verbatim-environments'.
  5865. 
  5866. File: org, Node: Translator functions, Next: Radio lists, Prev: A LaTeX example, Up: Tables in arbitrary syntax
  5867. A.3.3 Translator functions
  5868. --------------------------
  5869. Orgtbl-mode has several translator functions built-in:
  5870. `orgtbl-to-latex', `orgtbl-to-html', and `orgtbl-to-texinfo'. Except
  5871. for `orgtbl-to-html'(1), these all use a generic translator,
  5872. `orgtbl-to-generic'. For example, `orgtbl-to-latex' itself is a very
  5873. short function that computes the column definitions for the `tabular'
  5874. environment, defines a few field and line separators and then hands
  5875. over to the generic translator. Here is the entire code:
  5876. (defun orgtbl-to-latex (table params)
  5877. "Convert the orgtbl-mode TABLE to LaTeX."
  5878. (let* ((alignment (mapconcat (lambda (x) (if x "r" "l"))
  5879. org-table-last-alignment ""))
  5880. (params2
  5881. (list
  5882. :tstart (concat "\\begin{tabular}{" alignment "}")
  5883. :tend "\\end{tabular}"
  5884. :lstart "" :lend " \\\\" :sep " & "
  5885. :efmt "%s\\,(%s)" :hline "\\hline")))
  5886. (orgtbl-to-generic table (org-combine-plists params2 params))))
  5887. As you can see, the properties passed into the function (variable
  5888. PARAMS) are combined with the ones newly defined in the function
  5889. (variable PARAMS2). The ones passed into the function (i.e. the ones
  5890. set by the `ORGTBL SEND' line) take precedence. So if you would like
  5891. to use the LaTeX translator, but wanted the line endings to be
  5892. `\\[2mm]' instead of the default `\\', you could just overrule the
  5893. default with
  5894. #+ORGTBL: SEND test orgtbl-to-latex :lend " \\\\[2mm]"
  5895. For a new language, you can either write your own converter function
  5896. in analogy with the LaTeX translator, or you can use the generic
  5897. function directly. For example, if you have a language where a table
  5898. is started with `!BTBL!', ended with `!ETBL!', and where table lines are
  5899. started with `!BL!', ended with `!EL!' and where the field separator is
  5900. a TAB, you could call the generic translator like this (on a single
  5901. line!):
  5902. #+ORGTBL: SEND test orgtbl-to-generic :tstart "!BTBL!" :tend "!ETBL!"
  5903. :lstart "!BL! " :lend " !EL!" :sep "\t"
  5904. Please check the documentation string of the function
  5905. `orgtbl-to-generic' for a full list of parameters understood by that
  5906. function and remember that you can pass each of them into
  5907. `orgtbl-to-latex', `orgtbl-to-texinfo', and any other function using
  5908. the generic function.
  5909. Of course you can also write a completely new function doing
  5910. complicated things the generic translator cannot do. A translator
  5911. function takes two arguments. The first argument is the table, a list
  5912. of lines, each line either the symbol `hline' or a list of fields. The
  5913. second argument is the property list containing all parameters
  5914. specified in the `#+ORGTBL: SEND' line. The function must return a
  5915. single string containing the formatted table. If you write a generally
  5916. useful translator, please post it on `emacs-orgmode@gnu.org' so that
  5917. others can benefit from your work.
  5918. ---------- Footnotes ----------
  5919. (1) The HTML translator uses the same code that produces tables
  5920. during HTML export.
  5921. 
  5922. File: org, Node: Radio lists, Prev: Translator functions, Up: Tables in arbitrary syntax
  5923. A.3.4 Radio lists
  5924. -----------------
  5925. Sending and receiving radio lists works exactly the same way than
  5926. sending and receiving radio tables (*note Radio tables::) (1). As for
  5927. radio tables, you can insert radio lists templates in HTML, LaTeX and
  5928. TeXInfo modes by calling `org-list-insert-radio-list'.
  5929. Here are the differences with radio tables:
  5930. - Use `ORGLST' instead of `ORGTBL'.
  5931. - The available translation functions for radio lists don't take
  5932. parameters.
  5933. - `C-c C-c' will work when pressed on the first item of the list.
  5934. Here is a LaTeX example. Let's say that you have this in your LaTeX
  5935. file:
  5936. % BEGIN RECEIVE ORGLST to-buy
  5937. % END RECEIVE ORGLST to-buy
  5938. \begin{comment}
  5939. #+ORGLIST: SEND to-buy orgtbl-to-latex
  5940. - a new house
  5941. - a new computer
  5942. + a new keyboard
  5943. + a new mouse
  5944. - a new life
  5945. \end{comment}
  5946. Pressing `C-c C-c' on `a new house' and will insert the converted
  5947. LaTeX list between the two marker lines.
  5948. ---------- Footnotes ----------
  5949. (1) You need to load the `org-export-latex.el' package to use radio
  5950. lists since the relevant code is there for now.
  5951. 
  5952. File: org, Node: Dynamic blocks, Next: Special agenda views, Prev: Tables in arbitrary syntax, Up: Extensions and Hacking
  5953. A.4 Dynamic blocks
  5954. ==================
  5955. Org-mode documents can contain _dynamic blocks_. These are specially
  5956. marked regions that are updated by some user-written function. A good
  5957. example for such a block is the clock table inserted by the command
  5958. `C-c C-x C-r' (*note Clocking work time::).
  5959. Dynamic block are enclosed by a BEGIN-END structure that assigns a
  5960. name to the block and can also specify parameters for the function
  5961. producing the content of the block.
  5962. #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
  5963. #+END:
  5964. Dynamic blocks are updated with the following commands
  5965. `C-c C-x C-u'
  5966. Update dynamic block at point.
  5967. `C-u C-c C-x C-u'
  5968. Update all dynamic blocks in the current file.
  5969. Updating a dynamic block means to remove all the text between BEGIN
  5970. and END, parse the BEGIN line for parameters and then call the specific
  5971. writer function for this block to insert the new content. For a block
  5972. with name `myblock', the writer function is `org-dblock-write:myblock'
  5973. with as only parameter a property list with the parameters given in the
  5974. begin line. Here is a trivial example of a block that keeps track of
  5975. when the block update function was last run:
  5976. #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
  5977. #+END:
  5978. The corresponding block writer function could look like this:
  5979. (defun org-dblock-write:block-update-time (params)
  5980. (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
  5981. (insert "Last block update at: "
  5982. (format-time-string fmt (current-time)))))
  5983. If you want to make sure that all dynamic blocks are always
  5984. up-to-date, you could add the function `org-update-all-dblocks' to a
  5985. hook, for example `before-save-hook'. `org-update-all-dblocks' is
  5986. written in a way that is does nothing in buffers that are not in
  5987. Org-mode.
  5988. 
  5989. File: org, Node: Special agenda views, Next: Using the property API, Prev: Dynamic blocks, Up: Extensions and Hacking
  5990. A.5 Special Agenda Views
  5991. ========================
  5992. Org-mode provides a special hook that can be used to narrow down the
  5993. selection made by any of the agenda views. You may specify a function
  5994. that is used at each match to verify if the match should indeed be part
  5995. of the agenda view, and if not, how much should be skipped.
  5996. Let's say you want to produce a list of projects that contain a
  5997. WAITING tag anywhere in the project tree. Let's further assume that
  5998. you have marked all tree headings that define a project with the todo
  5999. keyword PROJECT. In this case you would run a todo search for the
  6000. keyword PROJECT, but skip the match unless there is a WAITING tag
  6001. anywhere in the subtree belonging to the project line.
  6002. To achieve this, you must write a function that searches the subtree
  6003. for the tag. If the tag is found, the function must return `nil' to
  6004. indicate that this match should not be skipped. If there is no such
  6005. tag, return the location of the end of the subtree, to indicate that
  6006. search should continue from there.
  6007. (defun my-skip-unless-waiting ()
  6008. "Skip trees that are not waiting"
  6009. (let ((subtree-end (save-excursion (org-end-of-subtree t))))
  6010. (if (re-search-forward ":waiting:" subtree-end t)
  6011. nil ; tag found, do not skip
  6012. subtree-end))) ; tag not found, continue after end of subtree
  6013. Now you may use this function in an agenda custom command, for
  6014. example like this:
  6015. (org-add-agenda-custom-command
  6016. '("b" todo "PROJECT"
  6017. ((org-agenda-skip-function 'my-org-waiting-projects)
  6018. (org-agenda-overriding-header "Projects waiting for something: "))))
  6019. Note that this also binds `org-agenda-overriding-header' to get a
  6020. meaningful header in the agenda view.
  6021. You may also put a Lisp form into `org-agenda-skip-function'. In
  6022. particular, you may use the functions `org-agenda-skip-entry-if' and
  6023. `org-agenda-skip-subtree-if' in this form, for example:
  6024. `'(org-agenda-skip-entry-if 'scheduled)'
  6025. Skip current entry if it has been scheduled.
  6026. `'(org-agenda-skip-entry-if 'notscheduled)'
  6027. Skip current entry if it has not been scheduled.
  6028. `'(org-agenda-skip-entry-if 'deadline)'
  6029. Skip current entry if it has a deadline.
  6030. `'(org-agenda-skip-entry-if 'scheduled 'deadline)'
  6031. Skip current entry if it has a deadline, or if it is scheduled.
  6032. `'(org-agenda-skip-entry 'regexp "regular expression")'
  6033. Skip current entry if the regular expression matches in the entry.
  6034. `'(org-agenda-skip-entry 'notregexp "regular expression")'
  6035. Skip current entry unless the regular expression matches.
  6036. `'(org-agenda-skip-subtree-if 'regexp "regular expression")'
  6037. Same as above, but check and skip the entire subtree.
  6038. Therefore we could also have written the search for WAITING projects
  6039. like this, even without defining a special function:
  6040. (org-add-agenda-custom-command
  6041. '("b" todo "PROJECT"
  6042. ((org-agenda-skip-function '(org-agenda-skip-subtree-if
  6043. 'regexp ":waiting:"))
  6044. (org-agenda-overriding-header "Projects waiting for something: "))))
  6045. 
  6046. File: org, Node: Using the property API, Prev: Special agenda views, Up: Extensions and Hacking
  6047. A.6 Using the property API
  6048. ==========================
  6049. Here is a description of the functions that can be used to work with
  6050. properties.
  6051. -- Function: org-entry-properties &optional pom which
  6052. Get all properties of the entry at point-or-marker POM. This
  6053. includes the TODO keyword, the tags, time strings for deadline,
  6054. scheduled, and clocking, and any additional properties defined in
  6055. the entry. The return value is an alist, keys may occur multiple
  6056. times if the property key was used several times. POM may also be
  6057. nil, in which case the current entry is used. If WHICH is nil or
  6058. `all', get all properties. If WHICH is `special' or `standard',
  6059. only get that subclass.
  6060. -- Function: org-entry-get pom property &optional inherit
  6061. Get value of PROPERTY for entry at point-or-marker POM. If
  6062. INHERIT is non-nil and the entry does not have the property, then
  6063. also check higher levels of the hierarchy. This function ignores
  6064. the value of `org-use-property-inheritance' and requires the
  6065. explicit INHERIT flag.
  6066. -- Function: org-entry-delete pom property
  6067. Delete the property PROPERTY from entry at point-or-marker POM.
  6068. -- Function: org-entry-put pom property value
  6069. Set PROPERTY to VALUE for entry at point-or-marker POM.
  6070. -- Function: org-buffer-property-keys &optional include-specials
  6071. Get all property keys in the current buffer.
  6072. -- Function: org-insert-property-drawer
  6073. Insert a property drawer at point.
  6074. 
  6075. File: org, Node: History and Acknowledgments, Next: Main Index, Prev: Extensions and Hacking, Up: Top
  6076. Appendix B History and Acknowledgments
  6077. **************************************
  6078. Org-mode was borne in 2003, out of frustration over the user interface
  6079. of the Emacs outline-mode. I was trying to organize my notes and
  6080. projects, and using Emacs seemed to be the natural way to go. However,
  6081. having to remember eleven different commands with two or three keys per
  6082. command, only to hide and unhide parts of the outline tree, that seemed
  6083. entirely unacceptable to me. Also, when using outlines to take notes, I
  6084. constantly want to restructure the tree, organizing it parallel to my
  6085. thoughts and plans. _Visibility cycling_ and _structure editing_ were
  6086. originally implemented in the package `outline-magic.el', but quickly
  6087. moved to the more general `org.el'. As this environment became
  6088. comfortable for project planning, the next step was adding _TODO
  6089. entries_, basic _time stamps_, and _table support_. These areas
  6090. highlight the two main goals that Org-mode still has today: To create a
  6091. new, outline-based, plain text mode with innovative and intuitive
  6092. editing features, and to incorporate project planning functionality
  6093. directly into a notes file.
  6094. Since the first release, literally thousands of emails to me or on
  6095. `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
  6096. feedback, new ideas, and sometimes patches and add-on code. Many
  6097. thanks to everyone who has helped to improve this package. I am trying
  6098. to keep here a list of the people who had significant influence in
  6099. shaping one or more aspects of Org-mode. The list may not be complete,
  6100. if I have forgotten someone, please accept my apologies and let me know.
  6101. * Russel Adams came up with the idea for drawers.
  6102. * Thomas Baumann contributed the code for links to the MH-E email
  6103. system.
  6104. * Alex Bochannek provided a patch for rounding time stamps.
  6105. * Charles Cave's suggestion sparked the implementation of templates
  6106. for Remember.
  6107. * Pavel Chalmoviansky influenced the agenda treatment of items with
  6108. specified time.
  6109. * Gregory Chernov patched support for lisp forms into table
  6110. calculations and improved XEmacs compatibility, in particular by
  6111. porting `nouline.el' to XEmacs.
  6112. * Sacha Chua suggested to copy some linking code from Planner.
  6113. * Eddward DeVilla proposed and tested checkbox statistics. He also
  6114. came up with the idea of properties, and that there should be an
  6115. API for them.
  6116. * Kees Dullemond used to edit projects lists directly in HTML and so
  6117. inspired some of the early development, including HTML export. He
  6118. also asked for a way to narrow wide table columns.
  6119. * Christian Egli converted the documentation into TeXInfo format,
  6120. patched CSS formatting into the HTML exporter, and inspired the
  6121. agenda.
  6122. * David Emery provided a patch for custom CSS support in exported
  6123. HTML agendas.
  6124. * Nic Ferrier contributed mailcap and XOXO support.
  6125. * Miguel A. Figueroa-Villanueva implemented hierarchical checkboxes.
  6126. * John Foerch figured out how to make incremental search show context
  6127. around a match in a hidden outline tree.
  6128. * Niels Giesen had the idea to automatically archive DONE trees.
  6129. * Bastien Guerry wrote the LaTeX exporter and has been prolific with
  6130. patches, ideas, and bug reports.
  6131. * Kai Grossjohann pointed out key-binding conflicts with other
  6132. packages.
  6133. * Scott Jaderholm proposed footnotes, control over whitespace between
  6134. folded entries, and column view for properties.
  6135. * Shidai Liu ("Leo") asked for embedded LaTeX and tested it. He also
  6136. provided frequent feedback and some patches.
  6137. * Jason F. McBrayer suggested agenda export to CSV format.
  6138. * Max Mikhanosha came up with the idea of refiling.
  6139. * Dmitri Minaev sent a patch to set priority limits on a per-file
  6140. basis.
  6141. * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
  6142. happy.
  6143. * Rick Moynihan proposed to allow multiple TODO sequences in a file
  6144. and to be able to quickly restrict the agenda to a subtree.
  6145. * Todd Neal provided patches for links to Info files and elisp forms.
  6146. * Tim O'Callaghan suggested in-file links, search options for general
  6147. file links, and TAGS.
  6148. * Takeshi Okano translated the manual and David O'Toole's tutorial
  6149. into Japanese.
  6150. * Oliver Oppitz suggested multi-state TODO items.
  6151. * Scott Otterson sparked the introduction of descriptive text for
  6152. links, among other things.
  6153. * Pete Phillips helped during the development of the TAGS feature,
  6154. and provided frequent feedback.
  6155. * T.V. Raman reported bugs and suggested improvements.
  6156. * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
  6157. control.
  6158. * Kevin Rogers contributed code to access VM files on remote hosts.
  6159. * Frank Ruell solved the mystery of the `keymapp nil' bug, a
  6160. conflict with `allout.el'.
  6161. * Jason Riedy sent a patch to fix a bug with export of TODO keywords.
  6162. * Philip Rooke created the Org-mode reference card and provided lots
  6163. of feedback.
  6164. * Christian Schlauer proposed angular brackets around links, among
  6165. other things.
  6166. * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
  6167. `organizer-mode.el'.
  6168. * Daniel Sinder came up with the idea of internal archiving by
  6169. locking subtrees.
  6170. * Dale Smith proposed link abbreviations.
  6171. * Adam Spiers asked for global linking commands and inspired the link
  6172. extension system. support mairix.
  6173. * David O'Toole wrote `org-publish.el' and drafted the manual
  6174. chapter about publishing.
  6175. * Ju"rgen Vollmer contributed code generating the table of contents
  6176. in HTML output.
  6177. * Chris Wallace provided a patch implementing the `QUOTE' keyword.
  6178. * David Wainberg suggested archiving, and improvements to the linking
  6179. system.
  6180. * John Wiegley wrote `emacs-wiki.el' and `planner.el'. The
  6181. development of Org-mode was fully independent, and both systems are
  6182. really different beasts in their basic ideas and implementation
  6183. details. I later looked at John's code, however, and learned from
  6184. his implementation of (i) links where the link itself is hidden
  6185. and only a description is shown, and (ii) popping up a calendar to
  6186. select a date. John has also contributed a number of great ideas
  6187. directly to Org-mode.
  6188. * Carsten Wimmer suggested some changes and helped fix a bug in
  6189. linking to GNUS.
  6190. * Roland Winkler requested additional keybindings to make Org-mode
  6191. work on a tty.
  6192. * Piotr Zielinski wrote `org-mouse.el', proposed agenda blocks and
  6193. contributed various ideas and code snippets.
  6194. 
  6195. File: org, Node: Main Index, Next: Key Index, Prev: History and Acknowledgments, Up: Top
  6196. The Main Index
  6197. **************
  6198. �[index�]
  6199. * Menu:
  6200. * abbreviation, links: Link abbreviations. (line 6)
  6201. * acknowledgments: History and Acknowledgments.
  6202. (line 6)
  6203. * action, for publishing: Publishing action. (line 6)
  6204. * activation: Activation. (line 6)
  6205. * active region <1>: Built-in table editor.
  6206. (line 143)
  6207. * active region <2>: HTML Export commands.
  6208. (line 6)
  6209. * active region <3>: Structure editing. (line 74)
  6210. * active region: ASCII export. (line 9)
  6211. * agenda: Weekly/Daily agenda. (line 6)
  6212. * agenda dispatcher: Agenda dispatcher. (line 6)
  6213. * agenda files: Agenda files. (line 6)
  6214. * agenda files, removing buffers: Agenda commands. (line 247)
  6215. * agenda views: Agenda views. (line 6)
  6216. * agenda views, custom: Custom agenda views. (line 6)
  6217. * agenda views, exporting <1>: Exporting Agenda Views.
  6218. (line 6)
  6219. * agenda views, exporting <2>: Agenda commands. (line 236)
  6220. * agenda views, exporting: Exporting Agenda Views.
  6221. (line 12)
  6222. * agenda views, user-defined: Special agenda views.
  6223. (line 6)
  6224. * agenda, pipe: Extracting Agenda Information for other programs.
  6225. (line 6)
  6226. * agenda, with block views: Block agenda. (line 6)
  6227. * align, STARTUP keyword: In-buffer settings. (line 72)
  6228. * allout.el: Conflicts. (line 6)
  6229. * angular brackets, around links: External links. (line 43)
  6230. * API, for properties <1>: Using the property API.
  6231. (line 6)
  6232. * API, for properties: Property API. (line 6)
  6233. * appointment reminders: Weekly/Daily agenda. (line 65)
  6234. * appt.el: Weekly/Daily agenda. (line 65)
  6235. * archive locations: Moving subtrees. (line 23)
  6236. * archiving: Archiving. (line 6)
  6237. * ASCII export: ASCII export. (line 6)
  6238. * author: Feedback. (line 6)
  6239. * author info, in export: Export options. (line 26)
  6240. * autoload: Activation. (line 6)
  6241. * backtrace of an error: Feedback. (line 27)
  6242. * BBDB links: External links. (line 6)
  6243. * block agenda: Block agenda. (line 6)
  6244. * blorg.el: Extensions. (line 32)
  6245. * bold text: Enhancing text. (line 15)
  6246. * Boolean logic, for tag searches: Tag searches. (line 24)
  6247. * bug reports: Feedback. (line 6)
  6248. * bugs: Bugs. (line 6)
  6249. * C-c C-c, overview: The very busy C-c C-c key.
  6250. (line 6)
  6251. * calc package: The spreadsheet. (line 6)
  6252. * calc.el: Cooperation. (line 6)
  6253. * calculations, in tables <1>: The spreadsheet. (line 6)
  6254. * calculations, in tables: Built-in table editor.
  6255. (line 143)
  6256. * calendar commands, from agenda: Agenda commands. (line 199)
  6257. * calendar integration: Weekly/Daily agenda. (line 23)
  6258. * calendar, for selecting date: The date/time prompt.
  6259. (line 53)
  6260. * category: Categories. (line 6)
  6261. * category, require for tags/property match: Tag searches. (line 69)
  6262. * CDLaTeX: CDLaTeX mode. (line 6)
  6263. * cdlatex.el: Cooperation. (line 29)
  6264. * checkbox statistics: Checkboxes. (line 30)
  6265. * checkboxes: Checkboxes. (line 6)
  6266. * children, subtree visibility state: Visibility cycling. (line 10)
  6267. * clean outline view: Clean view. (line 6)
  6268. * column formula: Column formulas. (line 6)
  6269. * column view, for properties: Defining columns. (line 6)
  6270. * commands, in agenda buffer: Agenda commands. (line 6)
  6271. * comment lines: Comment lines. (line 6)
  6272. * completion, of dictionary words: Completion. (line 6)
  6273. * completion, of file names: Handling links. (line 44)
  6274. * completion, of link abbreviations: Completion. (line 6)
  6275. * completion, of links: Handling links. (line 25)
  6276. * completion, of option keywords <1>: Completion. (line 6)
  6277. * completion, of option keywords <2>: Per-file keywords. (line 23)
  6278. * completion, of option keywords: Export options. (line 6)
  6279. * completion, of property keys: Completion. (line 6)
  6280. * completion, of tags <1>: Completion. (line 6)
  6281. * completion, of tags: Setting tags. (line 11)
  6282. * completion, of TeX symbols: Completion. (line 6)
  6283. * completion, of TODO keywords <1>: Workflow states. (line 15)
  6284. * completion, of TODO keywords: Completion. (line 6)
  6285. * constants, in calculations: References. (line 82)
  6286. * constants.el: Cooperation. (line 14)
  6287. * constcgs, STARTUP keyword: In-buffer settings. (line 98)
  6288. * constSI, STARTUP keyword: In-buffer settings. (line 98)
  6289. * content, STARTUP keyword: In-buffer settings. (line 65)
  6290. * contents, global visibility state: Visibility cycling. (line 22)
  6291. * copying, of subtrees: Structure editing. (line 6)
  6292. * creating timestamps: Creating timestamps. (line 6)
  6293. * CUA.el: Conflicts. (line 15)
  6294. * custom agenda views: Custom agenda views. (line 6)
  6295. * custom date/time format: Custom time format. (line 6)
  6296. * custom search strings: Custom searches. (line 6)
  6297. * customization: Customization. (line 6)
  6298. * customtime, STARTUP keyword: In-buffer settings. (line 95)
  6299. * cutting, of subtrees: Structure editing. (line 6)
  6300. * cycling, of TODO states: TODO basics. (line 13)
  6301. * cycling, visibility: Visibility cycling. (line 6)
  6302. * daily agenda: Weekly/Daily agenda. (line 6)
  6303. * date format, custom: Custom time format. (line 6)
  6304. * date range: Time stamps. (line 40)
  6305. * date stamps <1>: Time stamps. (line 6)
  6306. * date stamps: Dates and times. (line 6)
  6307. * date, reading in minibuffer: The date/time prompt.
  6308. (line 6)
  6309. * dates: Dates and times. (line 6)
  6310. * DEADLINE keyword: Deadlines and scheduling.
  6311. (line 9)
  6312. * deadlines: Time stamps. (line 6)
  6313. * debugging, of table formulas: Editing and debugging formulas.
  6314. (line 97)
  6315. * demotion, of subtrees: Structure editing. (line 6)
  6316. * diary entries, creating from agenda: Agenda commands. (line 204)
  6317. * diary integration: Weekly/Daily agenda. (line 23)
  6318. * dictionary word completion: Completion. (line 6)
  6319. * directories, for publishing: Sources and destinations.
  6320. (line 6)
  6321. * dispatching agenda commands: Agenda dispatcher. (line 6)
  6322. * display changing, in agenda: Agenda commands. (line 65)
  6323. * document structure: Document structure. (line 6)
  6324. * DONE, final TODO keyword: Per-file keywords. (line 26)
  6325. * drawer, for properties: Property syntax. (line 6)
  6326. * drawers: Drawers. (line 6)
  6327. * dynamic blocks: Dynamic blocks. (line 6)
  6328. * editing tables: Tables. (line 6)
  6329. * editing, of table formulas: Editing and debugging formulas.
  6330. (line 6)
  6331. * elisp links: External links. (line 6)
  6332. * emphasized text: Export options. (line 26)
  6333. * enhancing text: Enhancing text. (line 6)
  6334. * evaluate time range: Creating timestamps. (line 48)
  6335. * even, STARTUP keyword: In-buffer settings. (line 88)
  6336. * examples, quoted: Quoted examples. (line 6)
  6337. * exporting: Exporting. (line 6)
  6338. * exporting agenda views <1>: Agenda commands. (line 236)
  6339. * exporting agenda views: Exporting Agenda Views.
  6340. (line 12)
  6341. * exporting, not: Comment lines. (line 6)
  6342. * extended TODO keywords: TODO extensions. (line 6)
  6343. * extension, third-party: Extensions. (line 6)
  6344. * external archiving: Moving subtrees. (line 6)
  6345. * external links: External links. (line 6)
  6346. * external links, in HTML export: Links. (line 6)
  6347. * faces, for TODO keywords: Faces for TODO keywords.
  6348. (line 6)
  6349. * FAQ: Summary. (line 56)
  6350. * feedback: Feedback. (line 6)
  6351. * field formula: Field formulas. (line 6)
  6352. * field references: References. (line 15)
  6353. * file links: External links. (line 6)
  6354. * file links, searching: Search options. (line 6)
  6355. * file name completion: Handling links. (line 44)
  6356. * files for agenda: Agenda files. (line 6)
  6357. * files, adding to agenda list: Agenda files. (line 15)
  6358. * files, selecting for publishing: Selecting files. (line 6)
  6359. * fixed width: Enhancing text. (line 30)
  6360. * fixed width text: Quoted examples. (line 6)
  6361. * fixed-width sections: Export options. (line 26)
  6362. * folded, subtree visibility state: Visibility cycling. (line 10)
  6363. * folding, sparse trees: Sparse trees. (line 6)
  6364. * following links: Handling links. (line 59)
  6365. * footnote.el <1>: Footnotes. (line 6)
  6366. * footnote.el <2>: Cooperation. (line 73)
  6367. * footnote.el: Conflicts. (line 35)
  6368. * footnotes <1>: Footnotes. (line 6)
  6369. * footnotes: Export options. (line 26)
  6370. * format specifier: Formula syntax for Calc.
  6371. (line 14)
  6372. * format, of links: Link format. (line 6)
  6373. * formula debugging: Editing and debugging formulas.
  6374. (line 97)
  6375. * formula editing: Editing and debugging formulas.
  6376. (line 6)
  6377. * formula syntax, Calc: Formula syntax for Calc.
  6378. (line 6)
  6379. * formula, for individual table field: Field formulas. (line 6)
  6380. * formula, for table column: Column formulas. (line 6)
  6381. * formula, in tables: Built-in table editor.
  6382. (line 143)
  6383. * global cycling: Visibility cycling. (line 22)
  6384. * global keybindings: Activation. (line 6)
  6385. * global TODO list: Global TODO list. (line 6)
  6386. * global visibility states: Visibility cycling. (line 22)
  6387. * GNUS links: External links. (line 6)
  6388. * grouping columns in tables: Column groups. (line 6)
  6389. * hand-formatted lists: Enhancing text. (line 11)
  6390. * headline levels: Export options. (line 26)
  6391. * headline levels, for exporting <1>: LaTeX export commands.
  6392. (line 26)
  6393. * headline levels, for exporting <2>: HTML Export commands.
  6394. (line 44)
  6395. * headline levels, for exporting: ASCII export. (line 21)
  6396. * headline navigation: Motion. (line 6)
  6397. * headline tagging: Tags. (line 6)
  6398. * headline, promotion and demotion: Structure editing. (line 6)
  6399. * headlines: Headlines. (line 6)
  6400. * hide text: Visibility cycling. (line 6)
  6401. * hidestars, STARTUP keyword: In-buffer settings. (line 88)
  6402. * hiding leading stars: Clean view. (line 6)
  6403. * history: History and Acknowledgments.
  6404. (line 6)
  6405. * horizontal rules, in exported files: Enhancing text. (line 20)
  6406. * HTML entities, LaTeX entities: Enhancing text. (line 45)
  6407. * HTML export: HTML export. (line 6)
  6408. * HTML, and orgtbl-mode: Translator functions.
  6409. (line 6)
  6410. * hyperlinks: Hyperlinks. (line 6)
  6411. * hyperlinks, adding new types: Adding hyperlink types.
  6412. (line 6)
  6413. * iCalendar export: iCalendar export. (line 6)
  6414. * images, inline in HTML: Images. (line 6)
  6415. * imenu.el: Cooperation. (line 33)
  6416. * in-buffer settings: In-buffer settings. (line 6)
  6417. * inactive timestamp: Time stamps. (line 49)
  6418. * index, of published pages: Project page index. (line 6)
  6419. * Info links: External links. (line 6)
  6420. * inheritance, of properties: Property searches. (line 6)
  6421. * inheritance, of tags: Tag inheritance. (line 6)
  6422. * inlining images in HTML: Images. (line 6)
  6423. * inserting links: Handling links. (line 25)
  6424. * installation: Installation. (line 6)
  6425. * internal archiving: ARCHIVE tag. (line 6)
  6426. * internal links: Internal links. (line 6)
  6427. * internal links, in HTML export: Links. (line 6)
  6428. * introduction: Introduction. (line 6)
  6429. * italic text: Enhancing text. (line 15)
  6430. * jumping, to headlines: Motion. (line 6)
  6431. * keybindings, global: Activation. (line 6)
  6432. * keyword options: Per-file keywords. (line 6)
  6433. * LaTeX class: Sectioning structure.
  6434. (line 6)
  6435. * LaTeX export: LaTeX export. (line 6)
  6436. * LaTeX fragments <1>: Export options. (line 26)
  6437. * LaTeX fragments: LaTeX fragments. (line 6)
  6438. * LaTeX fragments, export: Enhancing text. (line 23)
  6439. * LaTeX fragments, preview: Processing LaTeX fragments.
  6440. (line 6)
  6441. * LaTeX interpretation: Embedded LaTeX. (line 6)
  6442. * LaTeX sectioning structure: Sectioning structure.
  6443. (line 6)
  6444. * LaTeX, and orgtbl-mode: A LaTeX example. (line 6)
  6445. * level, require for tags/property match: Tag searches. (line 69)
  6446. * linebreak preservation: Export options. (line 26)
  6447. * linebreak, forced: Enhancing text. (line 42)
  6448. * link abbreviations: Link abbreviations. (line 6)
  6449. * link abbreviations, completion of: Completion. (line 6)
  6450. * link completion: Handling links. (line 25)
  6451. * link format: Link format. (line 6)
  6452. * links, external: External links. (line 6)
  6453. * links, finding next/previous: Handling links. (line 92)
  6454. * links, handling: Handling links. (line 6)
  6455. * links, in HTML export: Links. (line 6)
  6456. * links, internal: Internal links. (line 6)
  6457. * links, publishing: Publishing links. (line 6)
  6458. * links, radio targets: Radio targets. (line 6)
  6459. * links, returning to: Handling links. (line 86)
  6460. * Lisp forms, as table formulas: Formula syntax for Lisp.
  6461. (line 6)
  6462. * lists, hand-formatted: Enhancing text. (line 11)
  6463. * lists, in other modes: Tables in arbitrary syntax.
  6464. (line 6)
  6465. * lists, ordered: Plain lists. (line 6)
  6466. * lists, plain: Plain lists. (line 6)
  6467. * logdone, STARTUP keyword: In-buffer settings. (line 77)
  6468. * logging, of progress: Progress logging. (line 6)
  6469. * lognoteclock-out, STARTUP keyword: In-buffer settings. (line 77)
  6470. * lognotedone, STARTUP keyword: In-buffer settings. (line 77)
  6471. * lognotestate, STARTUP keyword: In-buffer settings. (line 77)
  6472. * logrepeat, STARTUP keyword: In-buffer settings. (line 77)
  6473. * maintainer: Feedback. (line 6)
  6474. * mark ring: Handling links. (line 82)
  6475. * marking characters, tables: Advanced features. (line 40)
  6476. * matching, of properties: Matching tags and properties.
  6477. (line 6)
  6478. * matching, of tags: Matching tags and properties.
  6479. (line 6)
  6480. * matching, tags: Tags. (line 6)
  6481. * math symbols: Math symbols. (line 6)
  6482. * MH-E links: External links. (line 6)
  6483. * minor mode for structure editing: orgstruct-mode. (line 6)
  6484. * minor mode for tables: orgtbl-mode. (line 6)
  6485. * mode, for calc: Formula syntax for Calc.
  6486. (line 14)
  6487. * motion commands in agenda: Agenda commands. (line 19)
  6488. * motion, between headlines: Motion. (line 6)
  6489. * name, of column or field: References. (line 82)
  6490. * named references: References. (line 82)
  6491. * names as TODO keywords: TODO types. (line 6)
  6492. * narrow columns in tables: Narrow columns. (line 6)
  6493. * noalign, STARTUP keyword: In-buffer settings. (line 72)
  6494. * nologging, STARTUP keyword: In-buffer settings. (line 77)
  6495. * nologrepeat, STARTUP keyword: In-buffer settings. (line 77)
  6496. * occur, command: Sparse trees. (line 6)
  6497. * odd, STARTUP keyword: In-buffer settings. (line 88)
  6498. * option keyword completion: Completion. (line 6)
  6499. * options, for custom agenda views: Setting Options. (line 6)
  6500. * options, for customization: Customization. (line 6)
  6501. * options, for export: Export options. (line 6)
  6502. * options, for publishing: Publishing options. (line 6)
  6503. * ordered lists: Plain lists. (line 6)
  6504. * org-agenda, command: Weekly/Daily agenda. (line 9)
  6505. * org-blog.el: Extensions. (line 28)
  6506. * org-list-insert-radio-list: Radio lists. (line 6)
  6507. * org-mode, turning on: Activation. (line 22)
  6508. * org-mouse.el: Extensions. (line 16)
  6509. * org-publish-project-alist: Project alist. (line 6)
  6510. * org-publish.el: Extensions. (line 8)
  6511. * org2rem.el: Extensions. (line 36)
  6512. * orgstruct-mode: orgstruct-mode. (line 6)
  6513. * orgtbl-mode <1>: orgtbl-mode. (line 6)
  6514. * orgtbl-mode: Tables in arbitrary syntax.
  6515. (line 6)
  6516. * outline tree: Headlines. (line 6)
  6517. * outline-mode: Outlines. (line 6)
  6518. * outlines: Outlines. (line 6)
  6519. * overview, global visibility state: Visibility cycling. (line 22)
  6520. * overview, STARTUP keyword: In-buffer settings. (line 65)
  6521. * packages, interaction with other: Interaction. (line 6)
  6522. * pasting, of subtrees: Structure editing. (line 6)
  6523. * per-file keywords: Per-file keywords. (line 6)
  6524. * plain lists: Plain lists. (line 6)
  6525. * plain text external links: External links. (line 43)
  6526. * presentation, of agenda items: Presentation and sorting.
  6527. (line 6)
  6528. * printing sparse trees: Sparse trees. (line 47)
  6529. * priorities: Priorities. (line 6)
  6530. * priorities, of agenda items: Sorting of agenda items.
  6531. (line 6)
  6532. * progress logging: Progress logging. (line 6)
  6533. * projects, for publishing: Project alist. (line 6)
  6534. * promotion, of subtrees: Structure editing. (line 6)
  6535. * properties: Properties and columns.
  6536. (line 6)
  6537. * properties, API <1>: Using the property API.
  6538. (line 6)
  6539. * properties, API: Property API. (line 6)
  6540. * properties, column view: Defining columns. (line 6)
  6541. * properties, inheritance: Property searches. (line 6)
  6542. * properties, searching: Property searches. (line 6)
  6543. * properties, special: Special properties. (line 6)
  6544. * property syntax: Property syntax. (line 6)
  6545. * publishing: Publishing. (line 6)
  6546. * quoted examples: Quoted examples. (line 6)
  6547. * quoted HTML tags: Export options. (line 26)
  6548. * radio lists: Radio lists. (line 6)
  6549. * radio tables: Radio tables. (line 6)
  6550. * radio targets: Radio targets. (line 6)
  6551. * range references: References. (line 60)
  6552. * ranges, time: Time stamps. (line 6)
  6553. * recomputing table fields: Updating the table. (line 6)
  6554. * references: References. (line 6)
  6555. * references, named: References. (line 82)
  6556. * references, to fields: References. (line 15)
  6557. * references, to ranges: References. (line 60)
  6558. * refiling notes: Refiling notes. (line 6)
  6559. * region, active <1>: HTML Export commands.
  6560. (line 6)
  6561. * region, active <2>: Built-in table editor.
  6562. (line 143)
  6563. * region, active <3>: ASCII export. (line 9)
  6564. * region, active: Structure editing. (line 74)
  6565. * regular expressions, with tags search: Tag searches. (line 64)
  6566. * remember.el <1>: Remember. (line 6)
  6567. * remember.el: Cooperation. (line 42)
  6568. * remote editing, from agenda: Agenda commands. (line 110)
  6569. * remote editing, undo: Agenda commands. (line 111)
  6570. * richer text: Enhancing text. (line 6)
  6571. * RMAIL links: External links. (line 6)
  6572. * SCHEDULED keyword: Deadlines and scheduling.
  6573. (line 27)
  6574. * scheduling: Time stamps. (line 6)
  6575. * Scripts, for agenda processing: Extracting Agenda Information for other programs.
  6576. (line 6)
  6577. * search option in file links: Search options. (line 6)
  6578. * search strings, custom: Custom searches. (line 6)
  6579. * searching for tags: Tag searches. (line 6)
  6580. * searching, of properties: Property searches. (line 6)
  6581. * section-numbers: Export options. (line 26)
  6582. * setting tags: Setting tags. (line 6)
  6583. * SHELL links: External links. (line 6)
  6584. * show all, command: Visibility cycling. (line 33)
  6585. * show all, global visibility state: Visibility cycling. (line 22)
  6586. * show hidden text: Visibility cycling. (line 6)
  6587. * showall, STARTUP keyword: In-buffer settings. (line 65)
  6588. * showstars, STARTUP keyword: In-buffer settings. (line 88)
  6589. * sorting, of agenda items: Sorting of agenda items.
  6590. (line 6)
  6591. * sparse tree, for deadlines: Inserting deadline/schedule.
  6592. (line 13)
  6593. * sparse tree, for TODO: TODO basics. (line 37)
  6594. * sparse tree, tag based: Tags. (line 6)
  6595. * sparse trees: Sparse trees. (line 6)
  6596. * special keywords: In-buffer settings. (line 6)
  6597. * special strings: Export options. (line 26)
  6598. * speedbar.el: Cooperation. (line 46)
  6599. * spreadsheet capabilities: The spreadsheet. (line 6)
  6600. * statistics, for checkboxes: Checkboxes. (line 30)
  6601. * storing links: Handling links. (line 9)
  6602. * structure editing: Structure editing. (line 6)
  6603. * structure of document: Document structure. (line 6)
  6604. * sublevels, inclusion into tags match: Tag inheritance. (line 6)
  6605. * sublevels, inclusion into todo list: Global TODO list. (line 34)
  6606. * subscript: Subscripts and Superscripts.
  6607. (line 6)
  6608. * subtree cycling: Visibility cycling. (line 10)
  6609. * subtree visibility states: Visibility cycling. (line 10)
  6610. * subtree, cut and paste: Structure editing. (line 6)
  6611. * subtree, subtree visibility state: Visibility cycling. (line 10)
  6612. * subtrees, cut and paste: Structure editing. (line 6)
  6613. * summary: Summary. (line 6)
  6614. * superscript: Subscripts and Superscripts.
  6615. (line 6)
  6616. * syntax, of formulas: Formula syntax for Calc.
  6617. (line 6)
  6618. * table editor, built-in: Built-in table editor.
  6619. (line 6)
  6620. * table editor, table.el: Cooperation. (line 54)
  6621. * table of contents: Export options. (line 26)
  6622. * table.el: Cooperation. (line 51)
  6623. * tables <1>: Tables. (line 6)
  6624. * tables: Export options. (line 26)
  6625. * tables, export: Enhancing text. (line 26)
  6626. * tables, in other modes: Tables in arbitrary syntax.
  6627. (line 6)
  6628. * tag completion: Completion. (line 6)
  6629. * tag inheritance: Tag inheritance. (line 6)
  6630. * tag searches: Tag searches. (line 6)
  6631. * tags: Tags. (line 6)
  6632. * tags view: Matching tags and properties.
  6633. (line 6)
  6634. * tags, setting: Setting tags. (line 6)
  6635. * targets, for links: Internal links. (line 6)
  6636. * targets, radio: Radio targets. (line 6)
  6637. * tasks, breaking down: Breaking down tasks. (line 6)
  6638. * templates, for remember: Remember templates. (line 6)
  6639. * TeX interpretation: Embedded LaTeX. (line 6)
  6640. * TeX macros <1>: Math symbols. (line 6)
  6641. * TeX macros: Export options. (line 26)
  6642. * TeX macros, export: Enhancing text. (line 23)
  6643. * TeX symbol completion: Completion. (line 6)
  6644. * TeX-like syntax for sub- and superscripts: Export options. (line 26)
  6645. * text, fixed width: Quoted examples. (line 6)
  6646. * thanks: History and Acknowledgments.
  6647. (line 6)
  6648. * time format, custom: Custom time format. (line 6)
  6649. * time grid: Time-of-day specifications.
  6650. (line 26)
  6651. * time info, in export: Export options. (line 26)
  6652. * time stamps <1>: Dates and times. (line 6)
  6653. * time stamps: Time stamps. (line 6)
  6654. * time, reading in minibuffer: The date/time prompt.
  6655. (line 6)
  6656. * time-of-day specification: Time-of-day specifications.
  6657. (line 6)
  6658. * time-sorted view: Timeline. (line 6)
  6659. * timeline, single file: Timeline. (line 6)
  6660. * timerange: Time stamps. (line 40)
  6661. * times: Dates and times. (line 6)
  6662. * timestamp: Time stamps. (line 14)
  6663. * timestamp, inactive: Time stamps. (line 49)
  6664. * timestamp, with repeater interval: Time stamps. (line 24)
  6665. * timestamps, creating: Creating timestamps. (line 6)
  6666. * TODO items: TODO items. (line 6)
  6667. * TODO keyword matching: Global TODO list. (line 17)
  6668. * TODO keyword matching, with tags search: Tag searches. (line 41)
  6669. * todo keyword sets: Multiple sets in one file.
  6670. (line 6)
  6671. * TODO keywords completion: Completion. (line 6)
  6672. * TODO list, global: Global TODO list. (line 6)
  6673. * TODO types: TODO types. (line 6)
  6674. * TODO workflow: Workflow states. (line 6)
  6675. * transient-mark-mode <1>: Built-in table editor.
  6676. (line 143)
  6677. * transient-mark-mode <2>: HTML Export commands.
  6678. (line 6)
  6679. * transient-mark-mode <3>: Structure editing. (line 74)
  6680. * transient-mark-mode: ASCII export. (line 9)
  6681. * translator function: Translator functions.
  6682. (line 6)
  6683. * trees, sparse: Sparse trees. (line 6)
  6684. * trees, visibility: Visibility cycling. (line 6)
  6685. * tty keybindings: TTY keys. (line 6)
  6686. * types as TODO keywords: TODO types. (line 6)
  6687. * underlined text: Enhancing text. (line 15)
  6688. * undoing remote-editing events: Agenda commands. (line 111)
  6689. * updating, table: Updating the table. (line 6)
  6690. * URL links: External links. (line 6)
  6691. * USENET links: External links. (line 6)
  6692. * variables, for customization: Customization. (line 6)
  6693. * vectors, in table calculations: Formula syntax for Calc.
  6694. (line 11)
  6695. * verbatim text: Enhancing text. (line 15)
  6696. * visibility cycling: Visibility cycling. (line 6)
  6697. * visibility cycling, drawers: Drawers. (line 6)
  6698. * visible text, printing: Sparse trees. (line 47)
  6699. * VM links: External links. (line 6)
  6700. * WANDERLUST links: External links. (line 6)
  6701. * weekly agenda: Weekly/Daily agenda. (line 6)
  6702. * windmove.el: Conflicts. (line 32)
  6703. * workflow states as TODO keywords: Workflow states. (line 6)
  6704. * XEmacs: Installation. (line 6)
  6705. * XOXO export: XOXO export. (line 6)
  6706. 
  6707. File: org, Node: Key Index, Prev: Main Index, Up: Top
  6708. Key Index
  6709. *********
  6710. �[index�]
  6711. * Menu:
  6712. * $: Agenda commands. (line 125)
  6713. * ': CDLaTeX mode. (line 43)
  6714. * +: Agenda commands. (line 148)
  6715. * ,: Agenda commands. (line 140)
  6716. * -: Agenda commands. (line 154)
  6717. * .: Agenda commands. (line 102)
  6718. * :: Agenda commands. (line 133)
  6719. * < <1>: The date/time prompt.
  6720. (line 59)
  6721. * < <2>: Using column view. (line 64)
  6722. * <: Agenda files. (line 55)
  6723. * <left>: Agenda commands. (line 99)
  6724. * <RET> <1>: The date/time prompt.
  6725. (line 59)
  6726. * <RET> <2>: Setting tags. (line 76)
  6727. * <RET> <3>: Built-in table editor.
  6728. (line 64)
  6729. * <RET>: Agenda commands. (line 39)
  6730. * <right>: Agenda commands. (line 94)
  6731. * <SPC> <1>: Agenda commands. (line 28)
  6732. * <SPC>: Setting tags. (line 73)
  6733. * <TAB> <1>: Built-in table editor.
  6734. (line 57)
  6735. * <TAB> <2>: Setting tags. (line 68)
  6736. * <TAB> <3>: Visibility cycling. (line 10)
  6737. * <TAB> <4>: Editing and debugging formulas.
  6738. (line 57)
  6739. * <TAB> <5>: CDLaTeX mode. (line 23)
  6740. * <TAB> <6>: Agenda commands. (line 33)
  6741. * <TAB>: Plain lists. (line 42)
  6742. * > <1>: Agenda commands. (line 176)
  6743. * > <2>: Using column view. (line 64)
  6744. * >: The date/time prompt.
  6745. (line 59)
  6746. * ^: CDLaTeX mode. (line 33)
  6747. * _: CDLaTeX mode. (line 33)
  6748. * `: CDLaTeX mode. (line 39)
  6749. * a <1>: Agenda commands. (line 137)
  6750. * a: Using column view. (line 53)
  6751. * b: Agenda commands. (line 49)
  6752. * c: Agenda commands. (line 199)
  6753. * C: Agenda commands. (line 219)
  6754. * C-#: Advanced features. (line 9)
  6755. * C-': Agenda files. (line 21)
  6756. * C-,: Agenda files. (line 21)
  6757. * C-<RET>: Structure editing. (line 18)
  6758. * C-_: Agenda commands. (line 111)
  6759. * C-c ! <1>: Footnotes. (line 14)
  6760. * C-c !: Creating timestamps. (line 19)
  6761. * C-c #: Checkboxes. (line 65)
  6762. * C-c %: Handling links. (line 82)
  6763. * C-c &: Handling links. (line 86)
  6764. * C-c ': Editing and debugging formulas.
  6765. (line 36)
  6766. * C-c *: Updating the table. (line 13)
  6767. * C-c +: Built-in table editor.
  6768. (line 143)
  6769. * C-c ,: Priorities. (line 21)
  6770. * C-c - <1>: Built-in table editor.
  6771. (line 92)
  6772. * C-c -: Plain lists. (line 89)
  6773. * C-c .: Creating timestamps. (line 10)
  6774. * C-c /: Sparse trees. (line 15)
  6775. * C-c / d: Inserting deadline/schedule.
  6776. (line 13)
  6777. * C-c / p: Property searches. (line 23)
  6778. * C-c / r: Sparse trees. (line 17)
  6779. * C-c / T: Tag searches. (line 9)
  6780. * C-c / t: TODO basics. (line 37)
  6781. * C-c : <1>: Enhancing text. (line 34)
  6782. * C-c :: Quoted examples. (line 15)
  6783. * C-c ;: Comment lines. (line 10)
  6784. * C-c <: Creating timestamps. (line 23)
  6785. * C-c = <1>: Editing and debugging formulas.
  6786. (line 14)
  6787. * C-c =: Column formulas. (line 26)
  6788. * C-c >: Creating timestamps. (line 27)
  6789. * C-c ?: Editing and debugging formulas.
  6790. (line 24)
  6791. * C-c [: Agenda files. (line 15)
  6792. * C-c \: Tag searches. (line 9)
  6793. * C-c ]: Agenda files. (line 18)
  6794. * C-c ^ <1>: Structure editing. (line 61)
  6795. * C-c ^: Built-in table editor.
  6796. (line 96)
  6797. * C-c `: Built-in table editor.
  6798. (line 159)
  6799. * C-c a !: Stuck projects. (line 14)
  6800. * C-c a #: Stuck projects. (line 13)
  6801. * C-c a a: Weekly/Daily agenda. (line 9)
  6802. * C-c a C: Storing searches. (line 9)
  6803. * C-c a e: Exporting Agenda Views.
  6804. (line 57)
  6805. * C-c a L: Timeline. (line 10)
  6806. * C-c a m <1>: Matching tags and properties.
  6807. (line 10)
  6808. * C-c a m: Tag searches. (line 13)
  6809. * C-c a M <1>: Matching tags and properties.
  6810. (line 15)
  6811. * C-c a M: Tag searches. (line 17)
  6812. * C-c a T: Global TODO list. (line 14)
  6813. * C-c a t <1>: Global TODO list. (line 9)
  6814. * C-c a t: TODO basics. (line 48)
  6815. * C-c C-a: Visibility cycling. (line 33)
  6816. * C-c C-b: Motion. (line 15)
  6817. * C-c C-c <1>: Capturing Column View.
  6818. (line 39)
  6819. * C-c C-c <2>: Built-in table editor.
  6820. (line 56)
  6821. * C-c C-c <3>: Plain lists. (line 82)
  6822. * C-c C-c <4>: Property syntax. (line 58)
  6823. * C-c C-c <5>: TODO basics. (line 30)
  6824. * C-c C-c <6>: Checkboxes. (line 45)
  6825. * C-c C-c <7>: Using column view. (line 46)
  6826. * C-c C-c <8>: Cooperation. (line 63)
  6827. * C-c C-c <9>: Processing LaTeX fragments.
  6828. (line 15)
  6829. * C-c C-c <10>: Setting tags. (line 10)
  6830. * C-c C-c <11>: Editing and debugging formulas.
  6831. (line 90)
  6832. * C-c C-c <12>: Cooperation. (line 54)
  6833. * C-c C-c <13>: The very busy C-c C-c key.
  6834. (line 6)
  6835. * C-c C-c <14>: Editing and debugging formulas.
  6836. (line 46)
  6837. * C-c C-c: Clocking work time. (line 90)
  6838. * C-c C-d <1>: Agenda commands. (line 161)
  6839. * C-c C-d: Inserting deadline/schedule.
  6840. (line 9)
  6841. * C-c C-e: Exporting. (line 20)
  6842. * C-c C-e a: ASCII export. (line 9)
  6843. * C-c C-e b: HTML Export commands.
  6844. (line 13)
  6845. * C-c C-e c: iCalendar export. (line 21)
  6846. * C-c C-e H: HTML Export commands.
  6847. (line 16)
  6848. * C-c C-e h: HTML Export commands.
  6849. (line 6)
  6850. * C-c C-e I: iCalendar export. (line 16)
  6851. * C-c C-e i: iCalendar export. (line 14)
  6852. * C-c C-e L: LaTeX export commands.
  6853. (line 7)
  6854. * C-c C-e l: LaTeX export commands.
  6855. (line 6)
  6856. * C-c C-e R: HTML Export commands.
  6857. (line 19)
  6858. * C-c C-e t: Export options. (line 13)
  6859. * C-c C-e v <1>: XOXO export. (line 11)
  6860. * C-c C-e v: Sparse trees. (line 47)
  6861. * C-c C-e v a: ASCII export. (line 16)
  6862. * C-c C-e v b: HTML Export commands.
  6863. (line 24)
  6864. * C-c C-e v h: HTML Export commands.
  6865. (line 24)
  6866. * C-c C-e v H: HTML Export commands.
  6867. (line 24)
  6868. * C-c C-e v l: LaTeX export commands.
  6869. (line 10)
  6870. * C-c C-e v L: LaTeX export commands.
  6871. (line 10)
  6872. * C-c C-e v R: HTML Export commands.
  6873. (line 24)
  6874. * C-c C-e x: XOXO export. (line 10)
  6875. * C-c C-f: Motion. (line 12)
  6876. * C-c C-j: Motion. (line 21)
  6877. * C-c C-l: Handling links. (line 25)
  6878. * C-c C-n: Motion. (line 8)
  6879. * C-c C-o <1>: Handling links. (line 59)
  6880. * C-c C-o: Creating timestamps. (line 31)
  6881. * C-c C-p: Motion. (line 9)
  6882. * C-c C-q <1>: Built-in table editor.
  6883. (line 127)
  6884. * C-c C-q: Editing and debugging formulas.
  6885. (line 50)
  6886. * C-c C-r <1>: Editing and debugging formulas.
  6887. (line 53)
  6888. * C-c C-r: Visibility cycling. (line 34)
  6889. * C-c C-s <1>: Agenda commands. (line 158)
  6890. * C-c C-s: Inserting deadline/schedule.
  6891. (line 20)
  6892. * C-c C-t <1>: TODO basics. (line 13)
  6893. * C-c C-t: Clocking work time. (line 30)
  6894. * C-c C-u: Motion. (line 18)
  6895. * C-c C-v: TODO basics. (line 37)
  6896. * C-c C-w <1>: Refiling notes. (line 13)
  6897. * C-c C-w: Structure editing. (line 58)
  6898. * C-c C-x <: Agenda files. (line 44)
  6899. * C-c C-x b: Visibility cycling. (line 43)
  6900. * C-c C-x C-a: ARCHIVE tag. (line 28)
  6901. * C-c C-x C-b: Checkboxes. (line 47)
  6902. * C-c C-x C-c <1>: Using column view. (line 9)
  6903. * C-c C-x C-c: Agenda commands. (line 226)
  6904. * C-c C-x C-d: Clocking work time. (line 42)
  6905. * C-c C-x C-i: Clocking work time. (line 12)
  6906. * C-c C-x C-j: Clocking work time. (line 38)
  6907. * C-c C-x C-k: Structure editing. (line 43)
  6908. * C-c C-x C-l: Processing LaTeX fragments.
  6909. (line 9)
  6910. * C-c C-x C-n: Handling links. (line 92)
  6911. * C-c C-x C-o: Clocking work time. (line 17)
  6912. * C-c C-x C-p: Handling links. (line 92)
  6913. * C-c C-x C-r: Clocking work time. (line 50)
  6914. * C-c C-x C-s: Moving subtrees. (line 10)
  6915. * C-c C-x C-t: Custom time format. (line 12)
  6916. * C-c C-x C-u <1>: Dynamic blocks. (line 21)
  6917. * C-c C-x C-u <2>: Capturing Column View.
  6918. (line 42)
  6919. * C-c C-x C-u: Clocking work time. (line 92)
  6920. * C-c C-x C-w <1>: Built-in table editor.
  6921. (line 116)
  6922. * C-c C-x C-w: Structure editing. (line 43)
  6923. * C-c C-x C-x: Clocking work time. (line 34)
  6924. * C-c C-x C-y <1>: Built-in table editor.
  6925. (line 120)
  6926. * C-c C-x C-y: Structure editing. (line 52)
  6927. * C-c C-x M-w <1>: Structure editing. (line 48)
  6928. * C-c C-x M-w: Built-in table editor.
  6929. (line 113)
  6930. * C-c C-x p: Property syntax. (line 49)
  6931. * C-c C-x r: Capturing Column View.
  6932. (line 37)
  6933. * C-c C-y <1>: Clocking work time. (line 25)
  6934. * C-c C-y: Creating timestamps. (line 48)
  6935. * C-c l: Handling links. (line 9)
  6936. * C-c { <1>: Editing and debugging formulas.
  6937. (line 33)
  6938. * C-c {: CDLaTeX mode. (line 21)
  6939. * C-c |: Built-in table editor.
  6940. (line 40)
  6941. * C-c }: Editing and debugging formulas.
  6942. (line 28)
  6943. * C-c ~: Cooperation. (line 65)
  6944. * C-k: Agenda commands. (line 119)
  6945. * C-S-<left>: Multiple sets in one file.
  6946. (line 25)
  6947. * C-S-<right>: Multiple sets in one file.
  6948. (line 25)
  6949. * C-TAB: ARCHIVE tag. (line 38)
  6950. * C-u C-c *: Updating the table. (line 16)
  6951. * C-u C-c .: Creating timestamps. (line 14)
  6952. * C-u C-c = <1>: Field formulas. (line 24)
  6953. * C-u C-c =: Editing and debugging formulas.
  6954. (line 14)
  6955. * C-u C-c C-c: Updating the table. (line 19)
  6956. * C-u C-c C-l: Handling links. (line 44)
  6957. * C-u C-c C-t: TODO basics. (line 22)
  6958. * C-u C-c C-w: Refiling notes. (line 22)
  6959. * C-u C-c C-x C-a: ARCHIVE tag. (line 31)
  6960. * C-u C-c C-x C-s: Moving subtrees. (line 14)
  6961. * C-u C-c C-x C-u <1>: Dynamic blocks. (line 22)
  6962. * C-u C-c C-x C-u <2>: Clocking work time. (line 94)
  6963. * C-u C-c C-x C-u: Capturing Column View.
  6964. (line 44)
  6965. * C-u C-u C-c *: Updating the table. (line 22)
  6966. * C-u C-u C-c =: Editing and debugging formulas.
  6967. (line 18)
  6968. * C-u C-u C-c C-c: Updating the table. (line 22)
  6969. * C-u C-u C-c C-w: Refiling notes. (line 25)
  6970. * C-x C-s <1>: Agenda commands. (line 90)
  6971. * C-x C-s: Editing and debugging formulas.
  6972. (line 46)
  6973. * C-x C-w <1>: Agenda commands. (line 235)
  6974. * C-x C-w: Exporting Agenda Views.
  6975. (line 11)
  6976. * D: Agenda commands. (line 72)
  6977. * d: Agenda commands. (line 66)
  6978. * e: Using column view. (line 40)
  6979. * f: Agenda commands. (line 42)
  6980. * G: Agenda commands. (line 76)
  6981. * g <1>: Agenda commands. (line 87)
  6982. * g: Using column view. (line 21)
  6983. * H: Agenda commands. (line 223)
  6984. * i: Agenda commands. (line 204)
  6985. * I: Agenda commands. (line 181)
  6986. * J: Agenda commands. (line 193)
  6987. * L: Agenda commands. (line 30)
  6988. * l: Agenda commands. (line 55)
  6989. * M: Agenda commands. (line 210)
  6990. * m: Agenda commands. (line 66)
  6991. * M-<down> <1>: Built-in table editor.
  6992. (line 82)
  6993. * M-<down>: Editing and debugging formulas.
  6994. (line 76)
  6995. * M-<left> <1>: Structure editing. (line 25)
  6996. * M-<left>: Built-in table editor.
  6997. (line 74)
  6998. * M-<RET> <1>: Plain lists. (line 50)
  6999. * M-<RET>: Structure editing. (line 6)
  7000. * M-<right> <1>: Built-in table editor.
  7001. (line 74)
  7002. * M-<right>: Structure editing. (line 28)
  7003. * M-<TAB> <1>: Completion. (line 10)
  7004. * M-<TAB> <2>: Per-file keywords. (line 23)
  7005. * M-<TAB> <3>: Property syntax. (line 46)
  7006. * M-<TAB> <4>: Setting tags. (line 6)
  7007. * M-<TAB>: Editing and debugging formulas.
  7008. (line 64)
  7009. * M-<up> <1>: Editing and debugging formulas.
  7010. (line 76)
  7011. * M-<up>: Built-in table editor.
  7012. (line 82)
  7013. * M-S-<down> <1>: Plain lists. (line 67)
  7014. * M-S-<down> <2>: Structure editing. (line 40)
  7015. * M-S-<down> <3>: Editing and debugging formulas.
  7016. (line 72)
  7017. * M-S-<down>: Built-in table editor.
  7018. (line 89)
  7019. * M-S-<left> <1>: Built-in table editor.
  7020. (line 76)
  7021. * M-S-<left> <2>: The date/time prompt.
  7022. (line 59)
  7023. * M-S-<left> <3>: Plain lists. (line 73)
  7024. * M-S-<left>: Structure editing. (line 31)
  7025. * M-S-<RET> <1>: Structure editing. (line 22)
  7026. * M-S-<RET> <2>: Plain lists. (line 60)
  7027. * M-S-<RET>: Checkboxes. (line 62)
  7028. * M-S-<right> <1>: Built-in table editor.
  7029. (line 79)
  7030. * M-S-<right> <2>: Plain lists. (line 73)
  7031. * M-S-<right> <3>: Structure editing. (line 34)
  7032. * M-S-<right>: The date/time prompt.
  7033. (line 59)
  7034. * M-S-<up> <1>: Structure editing. (line 37)
  7035. * M-S-<up> <2>: Built-in table editor.
  7036. (line 86)
  7037. * M-S-<up> <3>: Plain lists. (line 67)
  7038. * M-S-<up>: Editing and debugging formulas.
  7039. (line 72)
  7040. * mouse-1 <1>: The date/time prompt.
  7041. (line 59)
  7042. * mouse-1 <2>: Handling links. (line 73)
  7043. * mouse-1: Agenda commands. (line 33)
  7044. * mouse-2 <1>: Handling links. (line 73)
  7045. * mouse-2: Agenda commands. (line 33)
  7046. * mouse-3 <1>: Handling links. (line 78)
  7047. * mouse-3: Agenda commands. (line 28)
  7048. * n <1>: Using column view. (line 37)
  7049. * n: Agenda commands. (line 19)
  7050. * o: Agenda commands. (line 65)
  7051. * O: Agenda commands. (line 185)
  7052. * P: Agenda commands. (line 145)
  7053. * p <1>: Agenda commands. (line 20)
  7054. * p: Using column view. (line 37)
  7055. * q <1>: Using column view. (line 24)
  7056. * q: Agenda commands. (line 246)
  7057. * r <1>: Using column view. (line 17)
  7058. * r <2>: Global TODO list. (line 22)
  7059. * r: Agenda commands. (line 80)
  7060. * S: Agenda commands. (line 214)
  7061. * s: Agenda commands. (line 90)
  7062. * S-<down> <1>: Editing and debugging formulas.
  7063. (line 67)
  7064. * S-<down> <2>: Creating timestamps. (line 40)
  7065. * S-<down> <3>: Agenda commands. (line 154)
  7066. * S-<down> <4>: Priorities. (line 26)
  7067. * S-<down> <5>: Plain lists. (line 63)
  7068. * S-<down>: The date/time prompt.
  7069. (line 59)
  7070. * S-<left> <1>: The date/time prompt.
  7071. (line 59)
  7072. * S-<left> <2>: Multiple sets in one file.
  7073. (line 29)
  7074. * S-<left> <3>: TODO basics. (line 26)
  7075. * S-<left> <4>: Property syntax. (line 66)
  7076. * S-<left> <5>: Using column view. (line 33)
  7077. * S-<left> <6>: Editing and debugging formulas.
  7078. (line 67)
  7079. * S-<left> <7>: Creating timestamps. (line 35)
  7080. * S-<left>: Agenda commands. (line 172)
  7081. * S-<RET>: Built-in table editor.
  7082. (line 146)
  7083. * S-<right> <1>: Property syntax. (line 66)
  7084. * S-<right> <2>: Agenda commands. (line 164)
  7085. * S-<right> <3>: Multiple sets in one file.
  7086. (line 29)
  7087. * S-<right> <4>: The date/time prompt.
  7088. (line 59)
  7089. * S-<right> <5>: Creating timestamps. (line 35)
  7090. * S-<right> <6>: TODO basics. (line 26)
  7091. * S-<right> <7>: Editing and debugging formulas.
  7092. (line 67)
  7093. * S-<right>: Using column view. (line 33)
  7094. * S-<TAB> <1>: Built-in table editor.
  7095. (line 61)
  7096. * S-<TAB>: Visibility cycling. (line 22)
  7097. * S-<up> <1>: Creating timestamps. (line 40)
  7098. * S-<up> <2>: Plain lists. (line 63)
  7099. * S-<up> <3>: The date/time prompt.
  7100. (line 59)
  7101. * S-<up> <4>: Editing and debugging formulas.
  7102. (line 67)
  7103. * S-<up> <5>: Priorities. (line 26)
  7104. * S-<up>: Agenda commands. (line 148)
  7105. * S-M-<left>: Using column view. (line 68)
  7106. * S-M-<RET>: TODO basics. (line 55)
  7107. * S-M-<right>: Using column view. (line 65)
  7108. * T: Agenda commands. (line 128)
  7109. * t: Agenda commands. (line 115)
  7110. * v: Using column view. (line 49)
  7111. * w: Agenda commands. (line 66)
  7112. * X: Agenda commands. (line 188)
  7113. * x: Agenda commands. (line 247)
  7114. * y: Agenda commands. (line 66)
  7115. 
  7116. Tag Table:
  7117. Node: Top976
  7118. Node: Introduction13471
  7119. Node: Summary13957
  7120. Node: Installation17094
  7121. Node: Activation18472
  7122. Node: Feedback19709
  7123. Node: Conventions21798
  7124. Node: Document structure22482
  7125. Node: Outlines23374
  7126. Node: Headlines24039
  7127. Ref: Headlines-Footnote-125043
  7128. Node: Visibility cycling25154
  7129. Ref: Visibility cycling-Footnote-127384
  7130. Ref: Visibility cycling-Footnote-227442
  7131. Ref: Visibility cycling-Footnote-327492
  7132. Node: Motion27762
  7133. Node: Structure editing28716
  7134. Node: Archiving31964
  7135. Node: ARCHIVE tag32522
  7136. Node: Moving subtrees34315
  7137. Ref: Moving subtrees-Footnote-135862
  7138. Node: Sparse trees36306
  7139. Ref: Sparse trees-Footnote-138558
  7140. Ref: Sparse trees-Footnote-238740
  7141. Node: Plain lists38855
  7142. Ref: Plain lists-Footnote-143114
  7143. Ref: Plain lists-Footnote-243472
  7144. Node: Drawers43653
  7145. Ref: Drawers-Footnote-144534
  7146. Node: orgstruct-mode44639
  7147. Node: Tables45539
  7148. Node: Built-in table editor46139
  7149. Node: Narrow columns53457
  7150. Ref: Narrow columns-Footnote-155392
  7151. Node: Column groups55438
  7152. Node: orgtbl-mode56971
  7153. Node: The spreadsheet57774
  7154. Node: References58861
  7155. Ref: References-Footnote-163328
  7156. Ref: References-Footnote-263469
  7157. Node: Formula syntax for Calc63758
  7158. Node: Formula syntax for Lisp66215
  7159. Node: Field formulas67933
  7160. Node: Column formulas69241
  7161. Node: Editing and debugging formulas70840
  7162. Node: Updating the table74993
  7163. Node: Advanced features76046
  7164. Node: Hyperlinks80571
  7165. Node: Link format81340
  7166. Node: Internal links82633
  7167. Ref: Internal links-Footnote-184558
  7168. Node: Radio targets84693
  7169. Node: External links85393
  7170. Node: Handling links87797
  7171. Ref: Handling links-Footnote-193113
  7172. Ref: Handling links-Footnote-293350
  7173. Node: Using links outside Org-mode93424
  7174. Node: Link abbreviations93934
  7175. Node: Search options95627
  7176. Ref: Search options-Footnote-197407
  7177. Node: Custom searches97488
  7178. Node: TODO items98519
  7179. Node: TODO basics99589
  7180. Node: TODO extensions101782
  7181. Node: Workflow states102741
  7182. Ref: Workflow states-Footnote-1103916
  7183. Node: TODO types104009
  7184. Ref: TODO types-Footnote-1105592
  7185. Node: Multiple sets in one file105674
  7186. Node: Fast access to TODO states107294
  7187. Node: Per-file keywords108437
  7188. Ref: Per-file keywords-Footnote-1109739
  7189. Node: Faces for TODO keywords109940
  7190. Node: Progress logging110646
  7191. Node: Closing items111077
  7192. Ref: Closing items-Footnote-1112011
  7193. Ref: Closing items-Footnote-2112218
  7194. Node: Tracking TODO state changes112291
  7195. Ref: Tracking TODO state changes-Footnote-1113476
  7196. Node: Priorities113551
  7197. Ref: Priorities-Footnote-1115346
  7198. Node: Breaking down tasks115416
  7199. Ref: Breaking down tasks-Footnote-1115936
  7200. Node: Checkboxes116032
  7201. Node: Tags119195
  7202. Node: Tag inheritance119950
  7203. Node: Setting tags120996
  7204. Ref: Setting tags-Footnote-1125514
  7205. Ref: Setting tags-Footnote-2125626
  7206. Node: Tag searches125709
  7207. Node: Properties and columns128492
  7208. Node: Property syntax130419
  7209. Node: Special properties133114
  7210. Node: Property searches134322
  7211. Node: Property inheritance135583
  7212. Node: Column view137041
  7213. Node: Defining columns138275
  7214. Node: Scope of column definitions138673
  7215. Node: Column attributes139603
  7216. Ref: Column attributes-Footnote-1142167
  7217. Node: Using column view142301
  7218. Node: Capturing Column View144498
  7219. Node: Property API146225
  7220. Node: Dates and times146579
  7221. Node: Time stamps147300
  7222. Ref: Time stamps-Footnote-1149664
  7223. Node: Creating timestamps149778
  7224. Node: The date/time prompt151857
  7225. Ref: The date/time prompt-Footnote-1155213
  7226. Ref: The date/time prompt-Footnote-2155269
  7227. Ref: The date/time prompt-Footnote-3155375
  7228. Node: Custom time format155468
  7229. Node: Deadlines and scheduling157160
  7230. Ref: Deadlines and scheduling-Footnote-1159861
  7231. Node: Inserting deadline/schedule160016
  7232. Node: Repeated tasks161134
  7233. Ref: Repeated tasks-Footnote-1163018
  7234. Node: Clocking work time163139
  7235. Ref: Clocking work time-Footnote-1168062
  7236. Ref: Clocking work time-Footnote-2168140
  7237. Node: Remember168266
  7238. Node: Setting up remember169212
  7239. Ref: Setting up remember-Footnote-1170227
  7240. Node: Remember templates170293
  7241. Ref: Remember templates-Footnote-1174281
  7242. Ref: Remember templates-Footnote-2174464
  7243. Node: Storing notes174562
  7244. Ref: Storing notes-Footnote-1177073
  7245. Node: Refiling notes177175
  7246. Node: Agenda views178348
  7247. Node: Agenda files180295
  7248. Ref: Agenda files-Footnote-1182736
  7249. Ref: Agenda files-Footnote-2182885
  7250. Node: Agenda dispatcher183078
  7251. Ref: Agenda dispatcher-Footnote-1185132
  7252. Ref: Agenda dispatcher-Footnote-2185226
  7253. Node: Built-in agenda views185320
  7254. Node: Weekly/Daily agenda185902
  7255. Ref: Weekly/Daily agenda-Footnote-1189200
  7256. Node: Global TODO list189404
  7257. Node: Matching tags and properties191684
  7258. Node: Timeline192775
  7259. Node: Stuck projects193449
  7260. Node: Presentation and sorting195302
  7261. Node: Categories196095
  7262. Ref: Categories-Footnote-1196806
  7263. Node: Time-of-day specifications197243
  7264. Node: Sorting of agenda items199216
  7265. Node: Agenda commands200500
  7266. Node: Custom agenda views207988
  7267. Node: Storing searches208709
  7268. Ref: Storing searches-Footnote-1211243
  7269. Node: Block agenda211360
  7270. Node: Setting Options212592
  7271. Node: Exporting Agenda Views215334
  7272. Ref: Exporting Agenda Views-Footnote-1219691
  7273. Ref: Exporting Agenda Views-Footnote-2219748
  7274. Node: Extracting Agenda Information for other programs219934
  7275. Node: Embedded LaTeX224062
  7276. Ref: Embedded LaTeX-Footnote-1225156
  7277. Node: Math symbols225346
  7278. Node: Subscripts and Superscripts226113
  7279. Node: LaTeX fragments226959
  7280. Ref: LaTeX fragments-Footnote-1229192
  7281. Ref: LaTeX fragments-Footnote-2229453
  7282. Node: Processing LaTeX fragments229587
  7283. Node: CDLaTeX mode230535
  7284. Ref: CDLaTeX mode-Footnote-1233021
  7285. Node: Exporting233169
  7286. Node: ASCII export234636
  7287. Node: HTML export236141
  7288. Node: HTML Export commands236767
  7289. Node: Quoting HTML tags238558
  7290. Node: Links239193
  7291. Node: Images239890
  7292. Ref: Images-Footnote-1240761
  7293. Node: CSS support240822
  7294. Ref: CSS support-Footnote-1242141
  7295. Node: LaTeX export242254
  7296. Node: LaTeX export commands242603
  7297. Node: Quoting LaTeX code243765
  7298. Node: Sectioning structure244299
  7299. Node: XOXO export244800
  7300. Node: iCalendar export245240
  7301. Node: Text interpretation246709
  7302. Node: Comment lines247364
  7303. Node: Initial text247759
  7304. Node: Footnotes249428
  7305. Node: Quoted examples250220
  7306. Node: Enhancing text250995
  7307. Node: Export options253444
  7308. Node: Publishing255905
  7309. Ref: Publishing-Footnote-1256866
  7310. Ref: Publishing-Footnote-2257010
  7311. Node: Configuration257161
  7312. Node: Project alist257879
  7313. Node: Sources and destinations258943
  7314. Node: Selecting files259673
  7315. Node: Publishing action260421
  7316. Node: Publishing options261755
  7317. Node: Publishing links264261
  7318. Node: Project page index265776
  7319. Node: Sample configuration266554
  7320. Node: Simple example267046
  7321. Node: Complex example267719
  7322. Node: Triggering publication269795
  7323. Node: Miscellaneous270480
  7324. Node: Completion271114
  7325. Node: Customization272784
  7326. Node: In-buffer settings273367
  7327. Node: The very busy C-c C-c key279039
  7328. Node: Clean view280894
  7329. Node: TTY keys283471
  7330. Node: Interaction285048
  7331. Node: Cooperation285445
  7332. Node: Conflicts289116
  7333. Node: Bugs291126
  7334. Node: Extensions and Hacking292622
  7335. Node: Extensions293347
  7336. Node: Adding hyperlink types295619
  7337. Node: Tables in arbitrary syntax299281
  7338. Node: Radio tables300673
  7339. Node: A LaTeX example303176
  7340. Ref: A LaTeX example-Footnote-1306854
  7341. Ref: A LaTeX example-Footnote-2307002
  7342. Node: Translator functions307437
  7343. Ref: Translator functions-Footnote-1310566
  7344. Node: Radio lists310654
  7345. Ref: Radio lists-Footnote-1311776
  7346. Node: Dynamic blocks311896
  7347. Node: Special agenda views313868
  7348. Node: Using the property API317113
  7349. Node: History and Acknowledgments318711
  7350. Node: Main Index325470
  7351. Node: Key Index362209
  7352. 
  7353. End Tag Table