12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696 |
- \input texinfo
- setfilename ../../info/orgguide
- include org-version.inc
- c Cf. Texinfo manual 14.2
- set txicodequotebacktick
- set MAINTAINERSITE
- set AUTHOR Carsten Dominik
- set MAINTAINEREMAIL
- set MAINTAINERCONTACT
- c %**end of header
- c Macro definitions
- c
- end iftex
- macro tsubheading{text}
- subsubheading \text\
- ifnotinfo
- b{\text\}
- end macro
- noindent *
- end macro
- copyright{} 2010--2014 Free Software Foundation
- end quotation
- dircategory Emacs
- end direntry
- title The compact Org-mode Guide
- value{VERSION}
- c The following two commands start the copyright page.
- vskip 0pt plus 1filll
- end titlepage
- shortcontents
- node Top, Introduction, (dir), (dir)
- insertcopying
- menu
- * Introduction:: Getting started
- * Document Structure:: A tree works like your brain
- * Tables:: Pure magic for quick formatting
- * Hyperlinks:: Notes in context
- * TODO Items:: Every tree branch can be a TODO item
- * Tags:: Tagging headlines and matching sets of tags
- * Properties:: Properties
- * Dates and Times:: Making items useful for planning
- * Capture - Refile - Archive:: The ins and outs for projects
- * Agenda Views:: Collecting information into views
- * Markup:: Prepare text for rich export
- * Exporting:: Sharing and publishing of notes
- * Publishing:: Create a web site of linked Org files
- * Working With Source Code:: Source code snippets embedded in Org
- * Miscellaneous:: All the rest which did not fit elsewhere
- * GNU Free Documentation License:: This manual license.
- LaTeX{}::
- LaTeX{} and PDF export:: Exporting to
- end detailmenu
- node Introduction, Document Structure, Top, Top
- menu
- * Preface:: Welcome
- * Installation:: How to install a downloaded version of Org
- * Activation:: How to activate Org for certain buffers
- * Feedback:: Bug reports, ideas, patches etc.
- node Preface, Installation, Introduction, Introduction
- i{This document is a much compressed derivative of the
- node Installation, Activation, Preface, Introduction
- b{Important:}
- ref{Activation}.}
- If you have downloaded Org from the Web, either as a distribution
- file{.tar} file, or as a Git archive, it is best to run it directly from
- the distribution directory. You need to add the
- file{.emacs}:
- end smallexample
- smallexample
- make autoloads
- node Activation, Feedback, Installation, Introduction
- file{.emacs} file. The last four lines
- define
- smalllisp
- ;; The following lines are always needed. Choose your own keys.
- (global-set-key "\C-cl" 'org-store-link)
- (global-set-key "\C-ca" 'org-agenda)
- (global-set-key "\C-cc" 'org-capture)
- (global-set-key "\C-cb" 'org-iswitchb)
- samp{.org} will be put into Org mode automatically.
- section Feedback
- If you find problems with Org, or if you have questions, remarks, or ideas
- about it, please mail to the Org mailing list
- node Document Structure, Tables, Introduction, Top
- menu
- * Outlines:: Org is based on Outline mode
- * Headlines:: How to typeset Org tree headlines
- * Visibility cycling:: Show and hide, much simplified
- * Motion:: Jumping to other headlines
- * Structure editing:: Changing sequence and level of headlines
- * Sparse trees:: Matches embedded in context
- * Plain lists:: Additional structure within an entry
- * Footnotes:: How footnotes are defined in Org's syntax
- node Outlines, Headlines, Document Structure, Document Structure
- command{org-cycle}, which is bound to the
- node Headlines, Visibility cycling, Outlines, Document Structure
- footnote{See
- the variable
- kbd{C-a} and
- smallexample
- * Top level headline
- ** Second level
- *** 3rd level
- some text
- *** 3rd level
- more text
- * Another top level headline
- noindent Some people find the many stars too noisy and would prefer an
- outline that has whitespace followed by a single star as headline
- starters.
- node Visibility cycling, Motion, Headlines, Document Structure
- key{TAB} and
- key{TAB}} to change the visibility in the buffer.
- kbd
- key{TAB}
- smallexample
- ,-> FOLDED -> CHILDREN -> SUBTREE --.
- '-----------------------------------'
- kbd{C-u
- item S-r{and} C-u
- emph{Global cycling}: Rotate the entire buffer among the states
- end smallexample
- key{TAB}
- Show all, including drawers.
- : only the top level headlines are visible. This can be
- configured through the variable
- code{overview},
- code{showall}, like this:
- end smallexample
- section Motion
- The following commands jump to other headlines in the buffer.
- kbd
- item C-c C-p
- Previous heading.
- item C-c C-b
- Previous heading same level.
- end table
- section Structure editing
- kbd
- key{RET}
- Insert new heading with same level as current. If the cursor is in a plain
- list item, a new item is created (
- footnote{If you do not want the line to be split,
- customize the variable
- item M-S-
- item r{in new, empty entry}
- In a new entry with no text yet,
- item M-r{/}
- item M-S-r{/}
- item M-S-r{/}
- item C-c C-w
- Refile entry or region to a different location.
- item C-x n s/w
- Narrow buffer to current subtree / widen it again
- node Sparse trees, Plain lists, Structure editing, Document Structure
- emph{sparse
- trees} for selected information in an outline tree, so that the entire
- document is folded as much as possible, but the selected information is made
- visible along with the headline structure above it
- code{org-show-hierarchy-above},
- code{org-show-siblings}, and
- table
- item C-c /
- This prompts for an extra key to select a sparse-tree creating command.
- kbd{C-c C-c}.
- node Plain lists, Footnotes, Sparse trees, Document Structure
- pxref{Checkboxes}). Org supports editing such lists,
- and the HTML exporter (
- itemize
- item
- samp{-},
- samp{*} as bullets.
- emph{Ordered} list items start with samp{1)}.
- emph{Description} list use emph{term} from the
- description.
- smallexample
- b{Elijah Wood} :: He plays Frodo
- -
- end group
- table
- item
- item M-
- pxref{Structure editing}).
- key{RET}
- Insert a new item with a checkbox (
- item M-S-r{/}
- item M-r{/}M-
- item M-S-r{/}
- item C-c C-c
- If there is a checkbox (
- item C-c -
- Cycle the entire list level through the different itemize/enumerate bullets
- (samp{+}, samp{1.},
- end table
- section Footnotes
- A footnote is defined in a paragraph that is started by a footnote marker in
- square brackets in column 0, no indentation allowed. The footnote reference
- is simply the marker in square brackets, inside text. For example:
- end smallexample
- table
- item C-c C-x f
- The footnote action command. When the cursor is on a footnote reference,
- jump to the definition. When it is at a definition, jump to the (first)
- reference. Otherwise, create a new footnote. When this command is called
- with a prefix argument, a menu of additional options including renumbering is
- offered.
- end table
- uref{http://orgmode.org/manual/Document-Structure.html#Document-Structure,
- Chapter 2 of the manual}
- uref{http://sachachua.com/wp/2008/01/outlining-your-notes-with-org/,
- Sacha Chua's tutorial}}
- chapter Tables
- Org comes with a fast and intuitive table editor. Spreadsheet-like
- calculations are supported in connection with the Emacs
- ifinfo
- (
- end ifinfo
- end ifnotinfo
- Org makes it easy to format tables in plain ASCII. Any line with
- samp{|} is also the column separator. A table might look like
- this:
- end smallexample
- A table is re-aligned automatically each time you press
- key{RET} or key{TAB} also moves to
- the next field (
- samp{|-} is considered as a horizontal separator line and will be
- expanded on the next re-align to span the whole table width. So, to
- create the above table, you would only type
- end smallexample
- key{TAB} to align the table and start filling in
- fields. Even faster would be to type
- kbd{C-c
- key{DEL},
- emph{immediately after the cursor was moved into a new field
- with key{TAB}}, key{TAB}} or key{RET}}}, the
- field is automatically made blank.
- kbd
- item C-c |
- Convert the active region to table. If every line contains at least one TAB
- character, the function assumes that the material is tab separated. If every
- line contains a comma, comma-separated values (CSV) are assumed. If not,
- lines are split at whitespace into fields.
- kbd{|Name|Phone|Age C-c
- tsubheading{Re-aligning and field motion}
- c
- key{TAB}
- Re-align the table, move to the next field. Creates a new row if
- necessary.
- item S-
- c
- key{RET}
- Re-align the table and move down to next row. Creates a new row if
- necessary.
- item M-
- itemx M-
- c
- key{left}
- Kill the current column.
- item M-S-
- c
- key{up}
- key{down}
- Move the current row up/down.
- item M-S-
- c
- key{down}
- Insert a new row above the current row. With a prefix argument, the line is
- created below the current one.
- item C-c -
- Insert a horizontal line below current row. With a prefix argument, the line
- is created above the current line.
- item C-c
- c
- end table
- uref{http://orgmode.org/manual/Tables.html#Tables, Chapter 3 of the
- manual}
- uref{http://orgmode.org/worg/org-tutorials/tables.php, Bastien's
- table tutorial}
- uref{http://orgmode.org/worg/org-tutorials/org-spreadsheet-intro.php,
- Bastien's spreadsheet tutorial}
- uref{http://orgmode.org/worg/org-tutorials/org-plot.php, Eric's plotting tutorial}}
- chapter Hyperlinks
- Like HTML, Org provides links inside a file, external links to
- other files, Usenet articles, emails, and much more.
- end menu
- section Link format
- Org will recognize plain URL-like links and activate them as
- clickable links. The general link format, however, looks like this:
- r{or alternatively} [[link]]
- noindent
- Once a link in the buffer is complete (all brackets present), Org will change
- the display so that
- samp{[[link][description]]} and
- samp{[[link]]}. To edit the invisible kbd{C-c
- C-l} with the cursor on the link.
- section Internal links
- If the link does not look like a URL, it is considered to be internal in the
- current file. The most important case is a link like
- code{CUSTOM_ID} property
- samp{[[My Target]]} or
- samp{<<My Target>>}.
- Internal links will be used to reference their destination, through links or
- numbers, when possible.
- section External links
- Org supports links to files, websites, Usenet and email messages,
- BBDB database entries and links to both IRC conversations and their
- logs. External links are URL-like locators. They start with a short
- identifying string followed by a colon. There can be no space after
- the colon. Here are some examples:
- r{on the web}
- file:/home/dominik/images/jupiter.jpg
- r{same as above}
- file:papers/last.pdf
- r{another Org file}
- docview:papers/last.pdf::NNN
- r{Link to heading by ID}
- news:comp.emacs
- r{Mail link}
- vm:folder
- r{VM message link}
- wl:folder#id
- r{MH-E message link}
- rmail:folder#id
- r{Gnus article link}
- bbdb:R.*Stallman
- r{IRC link}
- info:org:External%20links
- end smallexample
- A link should be enclosed in double brackets and may contain a
- descriptive text to be displayed instead of the URL (
- smallexample
- [[http://www.gnu.org/software/emacs/][GNU Emacs]]
- noindent
- If the description is a file name or URL that points to an image, HTML export
- (
- node Handling links, Targeted links, External links, Hyperlinks
- table
- item C-c l
- Store a link to the current location. This is a
- c
- key{up} and
- kbd{C-u} prefix argument, file name completion is used to
- link to a file.
- item C-c C-l
- kbd{C-c C-l} allows you to edit the
- link and description parts of the link.
- item C-c C-o r{or} mouse-2
- Open link at point.
- kbd{C-c %}. Using this
- command several times in direct succession moves through a ring of
- previously recorded positions.
- end table
- section Targeted links
- File links can contain additional information to make Emacs jump to a
- particular location in the file when following a link. This can be a
- line number or a search option after a double colon.
- Here is the syntax of the different ways to attach a search to a file
- link, together with an explanation:
- r{Find line 255}
- [[file:~/xx.org::My Target]] samp{<<My Target>>}}
- [[file:~/xx.org::#my-custom-id]]
- end smallexample
- uref{http://orgmode.org/manual/Hyperlinks.html#Hyperlinks, Chapter 4 of the
- manual}}
- chapter TODO Items
- Org mode does not require TODO lists to live in separate documents. Instead,
- TODO items are part of a notes file, because TODO items usually
- come up while taking notes! With Org mode, simply mark any entry in a tree
- as being a TODO item. In this way, information is not duplicated, and TODO
- items remain in the context from which they emerged.
- Org mode providing methods to give you an overview of all the things that you
- have to do, collected from many files.
- end menu
- section Using TODO states
- Any headline becomes a TODO item when it starts with the word
- smallexample
- *** TODO Write letter to Sam Fortune
- noindent
- The most important commands to work with TODO entries are:
- kbd
- smallexample
- (unmarked) -> TODO -> DONE -> (unmarked)
- kbd{t} command key (
- item S-r{/}
- item C-c / t
- View TODO items in a pxref{Sparse trees}). Folds the
- buffer, but shows all TODO items and the headings hierarchy above
- them.
- pxref{Agenda Views}) into a single buffer.
- item S-M-
- end table
- code{org-todo-state-tags-triggers} for details.
- section Multi-state workflows
- You can use TODO keywords to indicate
- smalllisp
- (setq org-todo-keywords
- '((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))
- emph{need action})
- from the DONE states (which need
- kbd{C-c C-t} will cycle an entry from TODO to
- FEEDBACK, then to VERIFY, and finally to DONE and DELEGATED. Sometimes you
- may want to use different sets of TODO keywords in parallel. For example,
- you may want to have the basic code{DONE}, but also a workflow
- for bug fixing. Your setup would then look like this:
- end smalllisp
- The keywords should all be different, this helps Org mode to keep track of
- which subsequence should be used for a given entry. The example also shows
- how to define keys for fast access of a particular state, by adding a letter
- in parenthesis after each keyword---you will be prompted for the key after
- smallexample
- #+TODO: TODO(t) | DONE(d)
- #+TODO: REPORT(r) BUG(b) KNOWNCAUSE(k) | FIXED(f)
- #+TODO: | CANCELED(c)
- kbd{C-c C-c} with the cursor still in
- the line to make the changes known to Org mode.
- section Progress logging
- Org mode can automatically record a timestamp and possibly a note when
- you mark a TODO item as DONE, or even each time you change the state of
- a TODO item. This system is highly configurable; settings can be on a
- per-keyword basis and can be localized to a file or even a subtree. For
- information on how to clock working time for a task, see
- menu
- * Closing items:: When was this entry marked DONE?
- * Tracking TODO state changes:: When did the status change?
- node Closing items, Tracking TODO state changes, Progress logging, Progress logging
- emph{when} a certain TODO
- item was finished. This is achieved with
- code{#+STARTUP: logdone}}.
- end smalllisp
- samp{CLOSED: [timestamp]} will be inserted just after
- the headline. If you want to record a note along with the timestamp,
- usecode{#+STARTUP:
- lognotedone}}
- end smalllisp
- samp{Closing Note} heading.
- unnumberedsubsec Tracking TODO state changes
- You might want to keep track of TODO state changes. You can either record
- just a timestamp, or a time-stamped note for a change. These records will be
- inserted after the headline as an itemized list. When taking a lot of notes,
- you might want to get the notes out of the way into a drawer. Customize the
- variable
- samp{!} (for a timestamp) and
- smallexample
- #+TODO: TODO(t) WAIT(w/!) | DONE(d!) CANCELED(c)
- noindent
- will define TODO keywords and fast access keys, and also request that a time
- is recorded when the entry is set to DONE, and that a note is recorded when
- switching to WAIT or CANCELED. The same syntax works also when setting
- node Priorities, Breaking down tasks, Progress logging, TODO Items
- emph{priority cookie} into the headline of a TODO item, like this
- end smallexample
- samp{A}, samp{C}.
- samp{B} the default if none is given. Priorities
- make a difference only in the agenda.
- kbd
- kbd{C-c ,}
- Set the priority of the current headline. Press samp{B} or
- key{SPC} to remove the cookie.
- item S-key{dwn}
- Increase/decrease priority of current headline
- node Breaking down tasks, Checkboxes, Priorities, TODO Items
- samp{[/]} or
- kbd{C-c C-c} on the
- cookie. For example:
- end smallexample
- section Checkboxes
- Every item in a plain list (
- samp{[ ]}. Checkboxes are not included in
- the global TODO list, so they are often great to split a task into a number
- of simple steps.
- Here is an example of a checkbox list.
- end smallexample
- Checkboxes work hierarchically, so if a checkbox item has children that
- are checkboxes, toggling one of the children checkboxes will make the
- parent checkbox reflect if none, some, or all of the children are
- checked.
- table
- item C-c C-c
- Toggle checkbox status or (with prefix arg) checkbox presence at point.
- key{RET}
- Insert a new item with a checkbox.
- This works only if the cursor is already in a plain list item
- (
- end table
- uref{http://orgmode.org/manual/TODO-Items.html#TODO-Items, Chapter 5 of the manual}
- uref{http://orgmode.org/worg/org-tutorials/orgtutorial_dto.php, David
- O'Toole's introductory tutorial}
- uref{http://members.optusnet.com.au/~charles57/GTD/gtd_workflow.html,
- Charles Cave's GTD setup}}
- chapter Tags
- An excellent way to implement labels and contexts for cross-correlating
- information is to assign
- samp{_}, and
- samp{:work:}. Several tags can be specified, as in
- menu
- * Tag inheritance:: Tags use the tree structure of the outline
- * Setting tags:: How to assign tags to a headline
- * Tag groups:: Use one tag to search for several tags
- * Tag searches:: Searching for combinations of tags
- node Tag inheritance, Setting tags, Tags, Tags
- i{Tags} make use of the hierarchical structure of outline trees. If a
- heading has a certain tag, all subheadings will inherit the tag as
- well. For example, in the list
- end smallexample
- samp{:work:},
- samp{:notes:}, and
- footnote{As
- with all these in-buffer settings, pressing
- smallexample
- #+FILETAGS: :Peter:Boss:Secret:
- node Setting tags, Tag groups, Tag inheritance, Tags
- kbd{M-
- table
- item C-c C-q
- Enter new tags for the current headline. Org mode will either offer
- completion or a special single-key interface for setting tags, see
- below. After pressing
- code{org-tags-column}. When called with a
- item C-c C-c
- When the cursor is in a headline, this does the same as
- end table
- Org will support tag insertion based on a
- code{org-tag-alist}. Finally you can set
- the default tags for a given file with lines like
- end smallexample
- By default Org mode uses the standard minibuffer completion facilities for
- entering tags. However, it also implements another, quicker, tag selection
- method called
- code{org-tag-alist} in your
- samp{:home:}. In this case you can set something
- like:
- end smalllisp
- smallexample
- #+TAGS: work(w) home(h) tennisclub(t) laptop(l) pc(p)
- node Tag groups, Tag searches, Setting tags, Tags
- cindex group tags
- emph{group tag}. When you search for a group tag, it will return matches
- for all members in the group. In an agenda view, filtering by a group tag
- will display headlines tagged with at least one of the members of the
- group. This makes tag searches and filters even more flexible.
- You can set group tags by inserting a colon between the group tag and other
- tags, like this:
- { read : read_book read_ebook
- end example
- In this example, emph{group tag} for a set of three
- tags: samp{read_book} and
- code{:grouptags} keyword directly when setting
- kindex C-c C-x q
- command{org-toggle-tags-groups}, bound to
- var{org-group-tags} to nil.
- section Tag searches
- Once a system of tags has been set up, it can be used to collect related
- information into special lists.
- kbd
- itemx C-c / m
- Create a sparse tree with all headlines matching a tags search. With a
- item C-c a m
- Create a global list of tag matches from all agenda files.
- item C-c a M
- Create a global list of tag matches from all agenda files, but check
- only TODO items and force checking subitems (see variable
- end table
- These commands all prompt for a match string which allows basic Boolean logic
- like samp{boss} and
- samp{project1}, or
- samp{Kathy} or
- ref{Matching tags and properties}.
- uref{http://orgmode.org/manual/Tags.html#Tags, Chapter 6 of the manual}
- uref{http://sachachua.com/wp/2008/01/tagging-in-org-plus-bonus-code-for-timeclocks-and-tags/,
- Sacha Chua's article about tagging in Org-mode}}
- chapter Properties
- Properties are key-value pairs associated with an entry. They live in a
- special drawer with the name
- smallexample
- * CD collection
- ** Classic
- *** Goldberg Variations
- :PROPERTIES:
- :Title: Goldberg Variations
- :Composer: J.S. Bach
- :Publisher: Deutsche Grammophon
- :NDisks: 1
- :END:
- samp{:Xyz:}
- by setting a property
- emph{inherited}, so if you set it in a level 1 entry, it will apply to
- the entire tree. When allowed values are defined, setting the
- corresponding property becomes easier and is less prone to typing
- errors. For the example with the CD collection, we can predefine
- publishers and the number of disks in a box like this:
- end smallexample
- or globally using
- smallexample
- #+PROPERTY: NDisks_ALL 1 2 3 4
- table
- item C-c C-x p
- Set a property. This prompts for a property name and a value.
- end table
- To create sparse trees and special lists with selection based on properties,
- the same commands are used as for tag searches (
- ref{Matching tags and
- properties}.
- kbd
- seealso{
- *
- node Dates and Times, Capture - Refile - Archive, Properties, Top
- emph{timestamp} in Org mode.
- end menu
- section Timestamps
- A timestamp is a specification of a date (possibly with a time or a range of
- times) in a special format, either
- samp{<2003-09-16 Tue 09:39>} or
- pxref{Weekly/daily agenda}). We distinguish:
- b{Plain timestamp; Event; Appointment}
- smallexample
- * Meet Peter at the movies
- <2006-11-01 Wed 19:15>
- * Discussion on climate change
- <2006-11-02 Thu 20:00-22:00>
- noindent *
- A timestamp may contain a
- smallexample
- * Pick up Sam at school
- <2007-05-16 Wed 12:30 +1w>
- noindent *
- For more complex date specifications, Org mode supports using the
- special sexp diary entries implemented in the Emacs calendar/diary
- package. For example
- end smallexample
- b{Time/Date range}
- samp{--} denote a range.
- end smallexample
- b{Inactive timestamp}
- emph{not} trigger an entry to show up in the agenda.
- end smallexample
- section Creating timestamps
- For Org mode to recognize timestamps, they need to be in the specific
- format. All commands listed below produce timestamps in the correct
- format.
- kbd
- c
- kbd{C-c .}, but insert an inactive timestamp that will not cause
- an agenda entry.
- item S-r{/}
- c
- key{up}key{down}
- Change the item under the cursor in a timestamp. The cursor can be on a
- year, month, day, hour or minute. When the timestamp contains a time range
- like
- end table
- When Org mode prompts for a date/time, it will accept any string containing
- some date and/or time information, and intelligently interpret the string,
- deriving defaults for unspecified information from the current date and time.
- You can also select a date in the pop-up calendar. See the manual for more
- information on how exactly the date/time prompt works.
- section Deadlines and scheduling
- A timestamp may be preceded by special keywords to facilitate planning:
- b{DEADLINE}
- table
- item C-c C-d
- Insert
- end table
- On the deadline date, the task will be listed in the agenda. In
- addition, the agenda for
- code{org-deadline-warning-days} before the due date, and continuing
- until the entry is marked DONE. An example:
- end smallexample
- b{SCHEDULED}
- i{planning to start working} on that task on the given
- date
- i{scheduling a meeting}, which is done in Org-mode by just inserting a time
- stamp without keyword.}.
- kbd
- samp{SCHEDULED} keyword along with a stamp, in the line following the
- headline.
- footnote{It will still
- be listed on that date after it has been marked DONE. If you don't like
- this, set the variable
- emph{today}, until the entry is marked DONE.
- I.e.
- smallexample
- *** TODO Call Trillian for a date on New Years Eve.
- SCHEDULED: <2004-12-25 Sat>
- smallexample
- ** TODO Pay the rent
- DEADLINE: <2005-10-01 Sat +1m>
- noindent
- the
- node Clocking work time, , Deadlines and scheduling, Dates and Times
- table
- item C-c C-x C-i
- Start the clock on the current item (clock-in). This inserts the CLOCK
- keyword together with a timestamp. When called with a
- c
- samp{=>
- HH:MM}.
- item C-c C-x C-q
- Cancel the current clock. This is useful if a clock was started by
- mistake, or if you ended up working on something else.
- kbd{C-u} prefix arg, select the target task from a list of recently clocked
- tasks.
- smallexample
- #+BEGIN: clocktable :maxlevel 2 :emphasize nil :scope file
- #+END: clocktable
- noindent
- For details about how to customize this view, see
- item C-c C-c
- Update dynamic block at point. The cursor needs to be in the
- end table
- The pxref{Timeline}) and in
- the agenda (
- seealso{
- *
- *
- node Capture - Refile - Archive, Agenda Views, Dates and Times, Top
- menu
- * Capture:: Capturing new stuff
- * Refile and copy:: Moving a tree from one place to another
- * Archiving:: What to do with finished projects
- node Capture, Refile and copy, Capture - Refile - Archive, Capture - Refile - Archive
- menu
- * Setting up a capture location:: Where notes will be stored
- * Using capture:: Commands to invoke and terminate capture
- * Capture templates:: Define the outline of different note types
- node Setting up a capture location, Using capture, Capture, Capture
- footnote{Using capture
- templates, you get finer control over capture locations, see
- example
- (setq org-default-notes-file (concat org-directory "/notes.org"))
- (define-key global-map "\C-cc" 'org-capture)
- node Using capture, Capture templates, Setting up a capture location, Capture
- table
- item C-c c
- Start a capture process, placing you into a narrowed indirect buffer to edit.
- kbd{C-c C-c} will return you to the window configuration before the capture
- process, so that you can resume your work without further distraction.
- item C-c C-k
- Abort the capture process and return to the previous state.
- node Capture templates, , Using capture, Capture
- samp{Tasks} in file
- file{journal.org} you could
- use:
- end smallexample
- kbd{M-x org-capture}, Org will prompt for a key to select the
- template (if you have more than one template) and then prepare the buffer like
- var{link to where you were when initiating capture}]]
- noindent
- During expansion of the template, special footnote{If you
- need one of these sequences literally, escape the
- smallexample
- %a code{org-store-link}}
- %i
- r{timestamp, date only, or date and time}
- %u, %U
- end smallexample
- section Refile and copy
- When reviewing the captured data, you may want to refile or copy some of the
- entries into a different list, for example into a project. Cutting, finding
- the right location, and then pasting the note is cumbersome. To simplify
- this process, use the following commands:
- kbd
- code{org-refile}, except that the original note will not be deleted.
- *
- By default, all level 1 headlines in the current buffer are considered to be
- targets, but you can have more complex definitions across a number of files.
- See the variable
- item C-u C-c C-w
- Use the refile interface to jump to a heading.
- code{org-refile} last moved a tree to.
- node Archiving, , Refile and copy, Capture - Refile - Archive
- table
- item C-c C-x C-a
- Archive the current entry using
- item C-c C-x C-sr{or short}
- code{org-archive-location}.
- file{_archive} to the
- current file name. For information and examples on how to change this,
- see the documentation string of the variable
- smallexample
- #+ARCHIVE: %s_done::
- seealso{
- *
- uref{}
- node Agenda Views, Markup, Capture - Refile - Archive, Top
- emph{agenda buffer}.
- This buffer is read-only, but provides commands to visit the corresponding
- locations in the original Org files, and even to edit these files remotely.
- Remote editing from the agenda buffer means, for example, that you can
- change the dates of deadlines and appointments from the agenda buffer.
- The commands available in the Agenda buffer are listed in
- menu
- * Agenda files:: Files being searched for agenda information
- * Agenda dispatcher:: Keyboard access to agenda views
- * Built-in agenda views:: What is available out of the box?
- * Agenda commands:: Remote editing of Org trees
- * Custom agenda views:: Defining special searches and views
- node Agenda files, Agenda dispatcher, Agenda Views, Agenda Views
- emph{agenda
- files}, the files listed in the variable
- table
- item C-c [
- Add current file to the list of agenda files. The file is added to
- the front of the list. If it was already in the list, it is moved to
- the front. With a prefix argument, file is added/moved to the end.
- item C-,
- Cycle through agenda file list, visiting one file after the other.
- node Agenda dispatcher, Built-in agenda views, Agenda files, Agenda Views
- kbd{C-c a} (
- kbd{C-c a}, an additional letter is required to execute a
- command:
- kbd
- pxref{Weekly/daily agenda}).
- r{/} T
- A list of all TODO items (
- item m
- pxref{Matching
- tags and properties}).
- pxref{Timeline}).
- end table
- section The built-in agenda views
- end menu
- subsection The weekly/daily agenda
- The purpose of the weekly/daily
- table
- item C-c a a
- Compile an agenda for the current week from a list of Org files. The agenda
- shows the entries for each day.
- smallexample
- * Birthdays and similar stuff
- #+CATEGORY: Holiday
- %%(org-calendar-holiday) ; special function for holiday names
- #+CATEGORY: Ann
- %%(diary-anniversary 5 14 1956)code{calendar-date-style}.} Arthur Dent is %d years old
- %%(diary-anniversary 10 2 1869) Mahatma Gandhi would be %d years old
- code{org-agenda-to-appt}. See the docstring for details.
- subsection The global TODO list
- The global TODO list contains all unfinished TODO items formatted and
- collected into a single place. Remote editing of TODO items lets you
- can change the state of a TODO entry with a single key press. The commands
- available in the TODO list are described in
- table
- item C-c a t
- Show the global TODO list. This collects the TODO items from all
- agenda files (
- item C-c a T
- Like the above, but allows selection of a specific TODO keyword.
- node Matching tags and properties, Timeline, Global TODO list, Built-in agenda views
- emph{tags} (
- pxref{Properties}), you can select headlines
- based on this metadata and collect them into an agenda buffer. The match
- syntax described here also applies when creating sparse trees with
- ref{Agenda
- commands}.
- kbd
- samp{+work+urgent-withboss} or
- pxref{Tags}). If you often need a specific search,
- define a custom command for it (
- item C-c a M
- Like
- end table
- samp{&} for AND and
- samp{&} binds more strongly than
- code{PROPERTY OPERATOR
- VALUE} with a comparison operator, accessing a property value. Each element
- may be preceded by samp{+} is syntactic
- sugar for positive selection. The AND operator
- samp{+} or
- table
- item +work-boss
- Select headlines tagged
- samp{:boss:}.
- samp{:work:} or
- item work|laptop+night
- Like before, but require the
- samp{:night:}.
- node Timeline, Search view, Matching tags and properties, Built-in agenda views
- emph{time-sorted view}. The main purpose of this command is
- to give an overview over events in a project.
- kbd
- kbd{C-u} prefix, all unfinished TODO entries
- (scheduled or not) are also listed under the current date.
- node Search view, , Timeline, Built-in agenda views
- table
- item C-c a s
- This is a special search that lets you select entries by matching a substring
- or specific words using a boolean logic.
- samp{computer equipment} will find entries
- that contain
- samp{+computer +wifi -ethernet -}}
- will search for note entries that contain the keywords
- code{wifi}, but not the keyword
- code{8\.11[bg]}, meaning to
- exclude both 8.11b and 8.11g.
- Note that in addition to the agenda files, this command will also search
- the files listed in
- node Agenda commands, Custom agenda views, Built-in agenda views, Agenda Views
- code{Agenda} menu and the manual for a complete list.
- kbd
- item n
- Next line (same as kbd{C-p}).
- key{down} and
- tsubheading{View/Go to Org file}
- itemx
- c
- key{TAB}
- Go to the original location of the item in another window. Under Emacs
- 22,
- c
- key{RET}
- Go to the original location of the item and delete other windows.
- tsubheading{Change display}
- c
- r{/} w
- Switch to day/week view.
- item f
- code{org-agenda-current-span} days. For example, if the display covers a
- week, switch to the following/previous week.
- item .
- Go to today.
- item j
- Prompt for a date and go there.
- item v l r{or short}
- code{org-log-done}) are shown in the agenda, as are
- entries that have been clocked on that day. When called with a
- c
- r{or} g
- Recreate the agenda buffer, to reflect the changes.
- tsubheading{Secondary filtering and query editing}
- samp{-} first to select against the tag.
- tsubheading{Remote editing (see the manual for many more commands)}
- c
- c
- c
- c
- a
- Archive the subtree corresponding to the entry at point using the default
- archiving command set in
- c
- $
- Archive the subtree corresponding to the current headline.
- item C-c C-s
- Schedule this item, with prefix arg remove the scheduling timestamp
- item C-c C-d
- Set a deadline for this item, with prefix arg remove the deadline.
- item S-r{and} S-
- c
- c
- item J
- Jump to the running clock in another window.
- node Custom agenda views, , Agenda commands, Agenda Views
- code{org-agenda-custom-commands}. You can customize this variable, for
- example by pressing
- file{.emacs}. The following example contains all valid
- search types:
- group
- (setq org-agenda-custom-commands
- '(("w" todo "WAITING")
- ("u" tags "+boss-urgent")
- ("v" tags-todo "+boss-urgent")))
- end smalllisp
- kbd{C-c a} in order to access the command. Usually this
- will be just a single character. The second parameter is the search type,
- followed by the string or regular expression to be used for the matching.
- The example above will therefore define:
- kbd
- samp{WAITING} as the TODO
- keyword
- samp{:boss:} but not
- item C-c a v
- as the same search as
- end table
- uref{http://orgmode.org/manual/Agenda-Views.html#Agenda-Views, Chapter 10 of
- the manual}
- uref{http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php,
- Mat Lundin's tutorial about custom agenda commands}
- uref{http://www.newartisans.com/2007/08/using-org-mode-as-a-day-planner.html,
- John Wiegley's setup}}
- chapter Markup for rich export
- When exporting Org-mode documents, the exporter tries to reflect the
- structure of the document as accurately as possible in the backend. Since
- export targets like HTML,
- menu
- * Structural markup elements:: The basic structure as seen by the exporter
- * Images and tables:: Images, tables and caption mechanism
- * Literal examples:: Source code examples with special formatting
- * Include files:: Include additional files into a document
- * Embedded LaTeX{} can be freely used inside Org documents
- node Structural markup elements, Images and tables, Markup, Markup
- menu
- * Document title:: Where the title is taken from
- * Headings and sections:: The document structure as seen by the exporter
- * Table of contents:: The if and where of the table of contents
- * Paragraphs:: Paragraphs
- * Emphasis and monospace:: Bold, italic, etc.
- * Comment lines:: What will *not* be exported
- node Document title, Headings and sections, Structural markup elements, Structural markup elements
- noindent
- The title of the exported document is taken from the special line
- end smallexample
- subheading Headings and sections
- The outline structure of the document as described in
- code{org-export-headline-levels}, or on a
- per-file basis with a line
- end smallexample
- subheading Table of contents
- The table of contents is normally inserted directly before the first headline
- of the file.
- end smallexample
- subheading Paragraphs, line breaks, and quoting
- Paragraphs are separated by at least one empty line. If you need to enforce
- a line break within a paragraph, use
- smallexample
- #+BEGIN_VERSE
- Great clouds overhead
- Tiny black birds rise and fall
- Snow covers Emacs
- -- AlexSchroeder
- #+END_VERSE
- smallexample
- #+BEGIN_QUOTE
- Everything should be made as simple as possible,
- but not any simpler -- Albert Einstein
- #+END_QUOTE
- smallexample
- #+BEGIN_CENTER
- Everything should be made as simple as possible, \\
- but not any simpler
- #+END_CENTER
- node Emphasis and monospace, Comment lines, Paragraphs, Structural markup elements
- b{*bold*}, code{=code=}
- and samp{+strike-through+}. Text
- in the code and verbatim string is not processed for Org-mode specific
- syntax, it is exported verbatim. To insert a horizontal rules, use a line
- consisting of only dashes, and at least 5 of them.
- subheading Comment lines
- Lines starting with zero or more whitespace characters followed by
- samp{#+BEGIN_COMMENT}
- ...
- samp{COMMENT} keyword at the beginning of an entry, but after any
- other keyword or priority cookie, comments out the entire subtree. The
- command below helps changing the comment status of a headline.
- kbd
- end table
- section Images and Tables
- For Org mode tables, the lines before the first horizontal separator line
- will become table header lines. You can use the following lines somewhere
- before the table to assign a caption and a label for cross references, and in
- the text you can refer to the object with
- smallexample
- #+CAPTION: This is the caption for the next table (or link)
- #+NAME: tbl:basic-data
- | ... | ...|
- |-----|----|
- code{[[./img/a.jpg]]}. If you wish to
- define a caption for the image and maybe a label for internal cross
- references, you sure that the link is on a line by itself precede it with:
- end smallexample
- The same caption mechanism applies to other structures than images and tables
- (e.g.,
- node Literal examples, Include files, Images and tables, Markup
- smallexample
- #+BEGIN_EXAMPLE
- Some example from a text file.
- #+END_EXAMPLE
- smallexample
- Here is an example
- : Some example from a text file.
- smallexample
- #+BEGIN_SRC emacs-lisp
- (defun org-xor (a b)
- "Exclusive or."
- (if a (not b) b))
- #+END_SRC
- kbd{C-c '} to both enter and leave the editing buffer.
- LaTeX{}, Literal examples, Markup
- file{.emacs} file, you could use:
- end smallexample
- samp{example}
- or samp{src}, the language for formatting
- the contents. The markup is optional, if it is not given, the text will be
- assumed to be in Org mode format and will be processed normally. File-links
- will be interpreted as well:
- end smallexample
- kbd{C-c '} will visit the included file.
- LaTeX{}, , Include files, Markup
- LaTeX{}
- For scientific notes which need to be able to contain mathematical symbols
- and the occasional formula, Org-mode supports embedding
- LaTeX{} environments.
- {sun
- {2{2
- {equation
- {b
- {equation
- end smallexample
- uref{http://orgmode.org/manual/LaTeX-fragments.html#LaTeX-fragments,special
- setup},
- seealso{
- node Exporting, Publishing, Markup, Top
- LaTeX{}/PDF
- for beautiful printed documents and DocBook to enter the world of many other
- formats using DocBook tools. There is also export to iCalendar format so
- that planning information can be incorporated into desktop calendars.
- LaTeX{} and PDF export:: Exporting to
- end menu
- section Export options
- The exporter recognizes special lines in the buffer which provide additional
- information. These lines may be put anywhere in the file. The whole set of
- lines can be inserted into the buffer with
- table
- item C-c C-e #
- Insert template with export options, see example below.
- smallexample
- #+TITLE: the title to be shown
- #+AUTHOR: the author (default taken from
- code{user-mail-address})
- #+DESCRIPTION: the page description, e.g.
- : for the XHTML meta tag
- #+LANGUAGE: language, e.g.samp{en} (
- end smallexample
- section The export dispatcher
- All export commands can be reached using the export dispatcher, which is
- a prefix key that prompts for an additional key specifying the command.
- Normally the entire file is exported, but if a region is active, it will be
- exported instead.
- kbd
- end table
- section ASCII/Latin-1/UTF-8 export
- ASCII export produces a simple and very readable version of an Org-mode
- file, containing only plain ASCII. Latin-1 and UTF-8 export augment the file
- with special characters and symbols available in these encodings.
- kbd
- r{and} C-c C-e t A
- Export as ASCII file or temporary buffer.
- r{and} C-c C-e t N
- Like the above commands, but use Latin-1 encoding.
- r{and} C-c C-e t U
- Like the above commands, but use UTF-8 encoding.
- node HTML export,
- section HTML export
- kbd
- file{myfile.html}.
- end table
- To insert HTML that should be copied verbatim to
- the exported file use either
- end smallexample
- smallexample
- #+BEGIN_HTML
- All lines between these markers are exported literally
- #+END_HTML
- node
- section
- table
- item C-c C-e l l
- Export as file{myfile.tex}.
- LaTeX{} and then process to PDF.
- LaTeX{} and then process to PDF, then open the resulting PDF file.
- LaTeX{} output uses the class
- code{#+LATEX_CLASS: myclass} in your
- file. The class must be listed in
- LaTeX{} as described in LaTeX{}}, will be correctly
- inserted into the
- code{#+LATEX:} and
- LaTeX{} code.
- LaTeX{} and PDF export, Exporting
- table
- item C-c C-e c f
- Create iCalendar entries for the current file in a
- item C-c C-e c c
- Create a single large iCalendar file from all files in
- code{org-icalendar-combined-agenda-file}.
- seealso{
- *
- *
- uref{http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.php, Eric
- Fraga's BEAMER presentation tutorial}}
- chapter Publishing
- Org includes a publishing management system that allows you to configure
- automatic HTML conversion of
- smalllisp
- (setq org-publish-project-alist
- '(("org"
- :base-directory "~/org/"
- :publishing-directory "~/public_html"
- :section-numbers nil
- :table-of-contents nil
- :style "<link rel=\"stylesheet\"
- href=\"../other/mystyle.css\"
- type=\"text/css\"/>")))
- table
- item C-c C-e P x
- Prompt for a specific project and publish all files that belong to it.
- item C-c C-e P f
- Publish only the current file.
- end table
- Org uses timestamps to track when a file has changed. The above functions
- normally only publish changed files. You can override this and force
- publishing of all files by giving a prefix argument to any of the commands
- above.
- uref{http://orgmode.org/manual/Publishing.html#Publishing, Chapter 13 of the
- manual}
- uref{http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php,
- Sebastian Rose's publishing tutorial}
- uref{http://orgmode.org/worg/org-tutorials/org-jekyll.php, Ian Barton's
- Jekyll/blogging setup}}
- chapter Working with source code
- Org-mode provides a number of features for working with source code,
- including editing of code blocks in their native major-mode, evaluation of
- code blocks, tangling of code blocks, and exporting code blocks and their
- results in several formats.
- example
- #+NAME: <name>
- #+BEGIN_SRC <language> <switches> <header arguments>
- <body>
- #+END_SRC
- code{<name>} is a string used to name the code block,
- : code{shell}, code{python}, etc...),
- code{<header arguments>} can be used to control many aspects of code block
- behavior as demonstrated below, and
- subheading Editing source code
- Use
- kbd{C-c '}
- again to exit the edit buffer.
- kbd{C-c C-c} to evaluate the current code block and insert its results
- in the Org-mode buffer. By default, evaluation is only turned on for
- example
- #+BEGIN_SRC emacs-lisp
- (+ 1 2 3 4)
- #+END_SRC
- #+RESULTS:
- : 10
- subheading Extracting source code
- Use
- code{org-babel-expand-src-block}
- which can expand both variable and ``noweb'' style references. In order to
- tangle a code block it must have a
- subheading Library of Babel
- Use
- code{contrib/library-of-babel.org}.
- table
- item :var
- The
- item :results
- The emph{collection},
- emph{handling} of code block results. Values of
- code{value} (the default) specify how results are collected
- from a code block's evaluation. Values of code{scalar}
- code{raw} code{latex} and
- code{silent},
- code{prepend}, and
- item :session
- A header argument of
- item :exports
- Any combination of the emph{results} of a block can be
- retained on export, this is specified by setting the
- code{code} code{none} or
- item :tangle
- A header argument of
- code{:tangle filename}.
- code{:cache yes} will cause associate a hash of the
- expanded code block with the results, ensuring that code blocks are only
- re-run when their inputs have changed.
- code{:noweb yes} will expand ``noweb'' style references
- on evaluation and tangling.
- : graphs, diagrams and figures)
- can accept a
- end table
- uref{http://orgmode.org/manual/Literal-examples.html#Literal-examples,
- Chapter 11.3 of the manual}
- uref{http://orgmode.org/worg/org-contrib/babel/index.php,
- The Babel site on Worg}}
- chapter Miscellaneous
- end menu
- section Completion
- Org supports in-buffer completion with key{TAB}}. This type of
- completion does not make use of the minibuffer. You simply type a few
- letters into the buffer and use the key to complete text right there. For
- example, this command will complete samp{\}, TODO
- keywords at the beginning of a headline, and tags after
- node Clean view, MobileOrg, Completion, Miscellaneous
- emph{book-like} document
- where the outline headings are really section headings, in a more
- smallexample
- end group
- noindent
- If you are using at least Emacs 23.1.50.3 and version 6.29 of Org, this kind
- of view can be achieved dynamically at display time using
- code{org-indent-mode} for all files by customizing the
- variable
- smallexample
- #+STARTUP: indent
- key{TAB}) text below each headline, by hiding
- leading stars, and by only using levels 1, 3, etc to get two characters
- indentation for each level. To get this support in a file, use
- end smallexample
- section MobileOrg
- i{MobileOrg} offers offline viewing and
- capture support for an Org mode system rooted on a ``real'' computer. It
- does also allow you to record changes to existing entries.
- The
- i{iPhone/iPod Touch/iPad} series of devices, was developed by Richard
- Moreland. Android users should check out
- seealso{
- *
- *
- c
- c
- c
- bye
- c fill-column: 77
- c LocalWords: webdavhost pre
|