Org-mode
{{Short description|Open source mode for GNU Emacs}}
{{Infobox software
| name = Org Mode
| logo = Org-mode logo
| screenshot =
| caption =
| author = Carsten Dominik
| developer = Carsten Dominik, Bastien Guerry, et al.
| released = 2003
| latest release version = {{wikidata|property|edit|reference|P348}}
| latest release date = {{start date and age|{{wikidata|qualifier|P348|P577}}}}
| genre = Personal information management, Notetaking, Outlining, Literate programming, Reproducibility
| license = GPL-3.0-or-later
| website = {{URL|https://orgmode.org/}}
| programming language = Emacs Lisp
}}
Org Mode (also: org-mode;Gmane: [http://thread.gmane.org/gmane.emacs.orgmode/56628/focus=56667 Org, Org-mode, Orgmode, Org Mode] {{Webarchive|url=https://web.archive.org/web/20170910221714/http://thread.gmane.org/gmane.emacs.orgmode/56628/focus=56667 |date=2017-09-10 }} - Carsten Dominik: Org, the system; Org-mode, the major mode {{IPAc-en|ˈ|ɔːr|ɡ|_|m|oʊ|d}}) is a mode for document editing, formatting, and organizing within the free software text editor GNU Emacs and its derivatives, designed for notes, planning, and authoring. The name is used to encompass plain text files ("org files") that include simple marks to indicate levels of a hierarchy (such as the outline of an essay, a topic list with subtopics, nested computer code, etc.), and an editor with functions that can read the markup and manipulate hierarchy elements (expand/hide elements, move blocks of elements, check off to-do list items, etc.).
Org Mode was created by Carsten Dominik in 2003, originally to organize his own life and work,{{Citation
|last=Dominik
|first=Carsten
|title=Emacs Org-mode: Organizing a Scientist's Life and Work (abstract and video)
|publisher=Max Planck Institute for Neurological Research
|url=https://vimeo.com/33725204
|date=2011-12-15
}} and since the first release numerous other users and developers have contributed to this free software package.{{Citation
|title=Org Mode Manual: History and acknowledgments
|publisher=Free Software Foundation
|url=http://orgmode.org/org.html#History-and-Acknowledgments
}} Emacs has included Org Mode{{Citation
|last=Corbet
|first=Jonathan
|title=Pre-testing Emacs 22
|journal=LWN.net
|year=2006
|url=https://lwn.net/Articles/206916/
}} as a major mode by default since 2006. Bastien Guerry is the maintainer since 2010, in cooperation with an active development community.{{Citation
|title=Org mode for Emacs – Community
|url=http://orgmode.org/community.html
|access-date=2012-12-04
|archive-date=2016-05-06
|archive-url=https://web.archive.org/web/20160506134151/http://orgmode.org/community.html
|url-status=dead
}} Since its success in Emacs, some other systems now provide functions to work with org files.{{Cite web|url=https://pandoc.org/org.html|title=Pandoc - Org-mode features and differences|website=pandoc.org|access-date=2021-01-29}}{{Cite web|url=https://gohugo.io/content-management/formats/|title=Content Formats \p Hugos|website=gohugo.io|date=10 January 2017 |access-date=2021-01-29}}
Almost orthogonally, Org Mode has functionalities aimed at executing code in various external languages; these functionalities form org-babel.{{Cite web|url=https://orgmode.org/worg/org-contrib/babel/|title=Babel: active code in Org-mode|website=orgmode.org|access-date=2020-01-09}}{{Cite journal|last1=Schulte|first1=Eric|last2=Davison|first2=Dan|last3=Dye|first3=Thomas|last4=Dominik|first4=Carsten|date=2012-01-25|title=A Multi-Language Computing Environment for Literate Programming and Reproducible Research|journal=Journal of Statistical Software|language=en|volume=46|issue=1|pages=1–24|doi=10.18637/jss.v046.i03|issn=1548-7660|doi-access=free}}
System
The Org Mode home page explains that "at its core, Org Mode is a simple outliner for note-taking and list management".{{Citation
|last=O'Toole
|first=David
|title=Org tutorial
|url=http://orgmode.org/worg/org-tutorials/orgtutorial_dto.html
}} The Org system author Carsten Dominik explains that "Org Mode does outlining, note-taking, hyperlinks, spreadsheets, TODO lists, project planning, GTD, HTML and LaTeX authoring, all with plain text files in Emacs."{{Citation
|last=Dominik
|first=Carsten
|title=Technical description in 24 words
|url=http://orgmode.org/worg/org-quotes.html#sec-2-1
}}
The Org system is based on plain text files with a simple markup, which makes the files very portable. The Linux Information Project explains that "Plain text is supported by nearly every application program on every operating system".The Linux Information Project: [http://www.linfo.org/plain_text.html What is plain text?]
The system includes a lightweight markup language for plain text files (similar in function to Markdown, reStructuredText, Textile, etc., with a different implementation), allowing lines or sections of plain text to be hierarchically divided, tagged, linked, and so on.
Functionality
This section gives some sample uses for the hierarchical display and editing of plain text.
- To-do lists often have subtasks, and so lend themselves to a hierarchical system. Org Mode facilitates this by allowing items to be subdivided into simple steps (nested to-dos and/or checklists), and given tags and properties such as priorities and deadlines. An agenda for the items to be done this week or day can then be automatically generated from date tags.{{Citation
| last=Chavan
| first=Abhijeet
| title=Get Organized with Emacs Org-mode
| journal=Linux Journal
| year=2007
| url=http://www.linuxjournal.com/article/9116
}}
- Plain text outlines.{{Citation
|last=Chua
|first=Sacha
|title=Outlining Your Notes with Org
|url=http://sachachua.com/blog/2008/01/outlining-your-notes-with-org/
}}
File:Org file showing simple planning for a short trip.png
- Org files as interconnected pages of a personal wiki, using the markup for links.
- Tracking bugs in a project, by storing .org files in a distributed revision control system such as Git.
- Extensive linking features, within the same file, to other files, to web pages, to emails, and also allows defining custom links.
An org-mode document can also be exported to various formats (including HTML, LaTeX, OpenDocument or plain text), these formats being used to render the structural outline in an appropriate fashion (including cross-references if needed). It can also use formatting markup (including LaTeX for mathematics), with facilities similar to those present in Markdown or LaTeX, thus offering an alternative to these tools.
Org-babel
File:Org Babel demonstration of basic features.png
Org Mode offers the ability to insert source code in the document being edited, which is automatically exported and/or executed when exporting the document; the result(s) produced by this code can be automatically fetched back in the resulting output.
This source code can be structured as reusable snippets, inserted in the source document at the place needed for logical exposition thus allowing this exposition to be independent of the structure needed by the compiler/interpreter.
Together with the markup facilities of org-mode, these two functionalities allow for
- Literate programming, by decoupling the exposition of the functions of a program from its code structure, and
- Reproducible research, by the creation of a consistent document consolidating exposition, original data, analyses, discussion and conclusion, in a way that can be reproduced by any reader using the same software tools.
As of June 2021, org-babel directly supports more than 70 programming languages or programmable facilities, more than 20 other tools being usable via contributed packages or drivers.{{cite web |title=Babel: Languages |url=https://orgmode.org/worg/org-contrib/babel/languages/ |access-date=7 June 2021}}
Integration
Org Mode has some features to export to other formats, and other systems have some features to handle org-mode formats. Further, a full-featured text editor may have functions to handle wikis, personal contacts, email, calendars, and so on; because org-mode is simply plain text, these features could be integrated into org-mode documents as well.
From org-mode, add-on packages export to other markup format such as MediaWiki (org-export-generic, org-export), to flashcard learning systems implementing SuperMemo's algorithms (org-drill, org-learn).[http://orgmode.org/worg/org-contrib/ Org-mode Contributed Packages], and many other hierarchical or list-oriented formats.
Outside of org-mode editors, org markup is supported by the GitLab, GitHub{{Citation
|title=GitHub Markup
|url=https://github.com/github/markup
|date=2023-10-02
}} and Gitea code repositories, the JIRA issue tracker,{{Citation
|last=Bao
|first=Haojun
|title=org-jira
|url=https://github.com/baohaojun/org-jira
|date=2019-12-02
}} Pandoc and others.
Export examples
Org supports exporting to a variety of formats. Below you may find examples of Org fragments exported to a number of formats.
Other formats are supported by dedicated packages.
{|class="wikitable"
! width="6%" | Format
! width="22%" | Structure
! width="22%" | Text attributes
! width="22%" | Lists
! width="28%" | Images and blocks
|-valign="top"
|
Org
|
- Heading
- Sub heading
Paragraphs are separated
by a blank line.
-----
Five dashes is a horizontal rule.
|
Simple markup produces *bold*
and /italic/ text. There's also
~code~, and other markups.
Here is a link to the
org https://orgmode.org/][homepage.
|
An unordered list:
+ apples
+ oranges
+ pears
An ordered list:
1. lather
2. rinse
3. repeat
|
- +begin_quote
Org blocks start with #+begin_BLOCK
and end with #+end_BLOCK.
This is a quote block.
- +end_quote
You can also have format-specific markup, for some formats
@@html:like HTML@@
@@latex:like \LaTeX@@.
|-valign="top"
|
HTML
|
1 heading
1.1 Sub heading
Paragraphs are separated
by a blank line.
Five dashes is a horizontal rule.
|
Simple markup produces bold
and italic text. There's also
code
, and other markups.
Here is a link to the
org homepage.
|
An unordered list:
- apples
- oranges
- pears
An ordered list:
- lather
- rinse
- repeat
|
Org blocks start with #+beginBLOCK
and end with #+endBLOCK.
This is a quote block.
You can also have format-specific markup, for some formats
like HTML
.
|-valign="top"
|
HTML (rendered)
|
Paragraphs are separated
by a blank line.
Five dashes is a horizontal rule.
|
Simple markup produces bold
and italic text. There's also
code
, and other markups.
Here is a link to the
org [https://orgmode.org/ homepage].
|
An unordered list:
- apples
- oranges
- pears
An ordered list:
- lather
- rinse
- repeat
|
Org blocks start with #+beginBLOCK
and end with #+endBLOCK.
This is a quote block.
You can also have format-specific markup, for some formats
like HTML
.
|-valign="top"
|
|
\section{Heading}
\label{sec:orgb1c599c}
\subsection{Sub heading}
\label{sec:orgf23aeb1}
Paragraphs are separated
by a blank line.
\noindent\rule{\textwidth}{0.5pt}
Five dashes is a horizontal rule.
|
Simple markup produces \textbf{bold}
and \emph{italic} text. There's also
\texttt{code}, and other markups.
Here is a link to the
org \href{https://orgmode.org/}{homepage}.
|
An unordered list:
\begin{itemize}
\item apples
\item oranges
\item pears
\end{itemize}
An ordered list:
\begin{enumerate}
\item lather
\item rinse
\item repeat
\end{enumerate}
|
\begin{center}
\includegraphics[width=.9\linewidth]{org-mode-unicorn.png}
\end{center}
\begin{quote}
Org blocks start with \#+begin\textsubscript{BLOCK}
and end with \#+end\textsubscript{BLOCK}.
This is a quote block.
\end{quote}
You can also have format-specific markup, for some formats
like \LaTeX.
|-valign="top"
|
|
by a blank line.
|
and
org
|
|
and end with #+end
This is a quote block.
.
|-valign="top"
|
ASCII
|
1 Heading
=====
1.1 Sub heading
~~~~~~~~~~~~~~~
Paragraphs are separated by a blank line.
-----------------------------------------
Five dashes is a horizontal rule.
|
Simple markup produces *bold* and /italic/ text. There's also `code',
and other markups.
Here is a link to the org [homepage].
[homepage]
|
An unordered list:
+ apples
+ oranges
+ pears
An ordered list:
1. lather
2. rinse
3. repeat
|
Org blocks start with #+begin_BLOCK and end with
#+end_BLOCK. This is a quote block.
You can also have format-specific markup, for some formats .
|-valign="top"
|
|
- Heading
- Sub heading
Paragraphs are separated
by a blank line.
---
Three dashes is a horizontal rule.
|
Simple markup produces **bold**
and *italic* text. There's also
`code`, and other markups.
Here is a link to the
org [homepage](https://orgmode.org/).
|
An unordered list:
- apples
- oranges
- pears
An ordered list:
1. lather
2. rinse
3. repeat
|

> Org blocks start with #+beginBLOCK
> and end with #+endBLOCK.
> This is a quote block.
You can also have format-specific markup, for some formats
like HTML
|-valign="top"
|
|
@node Heading
@chapter Heading
@menu
- Sub heading::
@end menu
@node Sub heading
@section Sub heading
Paragraphs are separated
by a blank line.
Five dashes is a horizontal rule.
|
Simple markup produces @strong{bold}
and @emph{italic} text. There's also
@code{code}, and other markups.
Here is a link to the
org @uref{https://orgmode.org/, homepage}.
|
An unordered list:
@itemize
@item
apples
@item
oranges
@item
pears
@end itemize
An ordered list:
@enumerate
@item
lather
@item
rinse
@item
repeat
@end enumerate
|
@image{org-mode-unicorn,,,,png}
@quotation
Org blocks start with #+begin_BLOCK
and end with #+end_BLOCK.
This is a quote block.
@end quotation
You can also have format-specific markup, for some formats.
|}
See also
References
{{Reflist|30em}}
Further reading
=Books=
- {{cite book
|last=Dominik
|first=Carsten
|others=With contributions by David O'Toole, Bastien Guerry, Philip Rooke, Dan Davison, Eric Schulte, and Thomas Dye
|title=The Org Mode 7 Reference Manual: Organize your life with GNU Emacs
|year=2010
|publisher=Network Theory
|location=UK
|isbn=978-1-906966-08-9
|pages=282
|url=http://www.network-theory.co.uk/org/manual/
|access-date=2012-11-23
|archive-url=https://web.archive.org/web/20121102114420/http://www.network-theory.co.uk/org/manual/
|archive-date=2012-11-02
|url-status=dead
}}
=Journal articles=
- {{cite journal
|last1=Schulte
|first1=Eric
|last2=Davison
|first2=Dan
|last3=Dye
|first3=Thomas
|last4=Dominik
|first4=Carsten
|date=Jan 2012
|title=A Multi-Language Computing Environment for Literate Programming and Reproducible Research
|journal=Journal of Statistical Software
|volume=46
|issue=3
|pages=1–24
|publisher=American Statistical Association
|doi=10.18637/jss.v046.i03
|issn=1548-7660
|url=http://www.jstatsoft.org/v46/i03
|doi-access=free
}}
- {{cite journal
|last1=Schulte
|first1=E.
|last2=Davison
|first2=D.
|date=May–June 2011
|title=Active Documents with Org-Mode
|journal= Computing in Science & Engineering
|volume=13
|issue=3
|pages=66–73
|publisher=American Institute of Physics, and IEEE Computer Society
|issn=1521-9615
|doi=10.1109/MCSE.2011.41
|citeseerx=10.1.1.226.2202
|bibcode=2011CSE....13c..66S
|s2cid=38470377
}}
External links
- {{Official website|https://orgmode.org/}}
{{EmacsNavbox}}
Category:Distributed bug tracking systems
Category:Free note-taking software
Category:Free personal information managers
Category:Free spreadsheet software
Category:Free task management software