org 276 KB

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