Emacs: Org Mode Markup Cheatsheet

By Xah Lee. Date: . Last updated: .

Emacs org-mode is a markup language, similar to Markdown, but with far more features. This page lists the most frequently used markup.

Heading

* 1st level heading

This is a paragraph. This file shows examples of the most basic org markup.

** this is 2nd level heading

*** this is 3rd level heading

(Copy the above, paste into a file. Name the file “test.org”. Then open it in emacs. Or, call org-mode.)

Inline Code

* Inline Code

inline code are marked like this: ~3 + 4~

or verbatim like this: =3 + 4=

Code Block

* Code Block

Example markup

#+BEGIN_EXAMPLE
verbatime example
#+END_EXAMPLE

Press 【< e Tab ⇥】to insert the markup for example.

* Code Block

Source Code markup of specific language

#+BEGIN_SRC emacs-lisp
(+ 3 4)
#+END_SRC

#+BEGIN_SRC python
x = 3
return x + 2
#+END_SRC

To insert markup for source code, press 【< s Tab ⇥】, type first char of your language name, then press 【Ctrl+Alt+i】.

For how to eval source code, see: Emacs: Org Mode Tutorial: Source Code Markup

Bold, Italic, …

* Italic, Bold, …

*bold*

/italic/

_underlined_

=verbatim=

~code~

+strike-through+

List

Unordered list

- 1st item
- another item
- and 3rd item

or

+ 1st item
+ another item
+ and 3rd item

Ordered List

Start with a number, followed by a period. Like this:

1. 1st item
2. another item
3. and 3rd item

Link

Here's the link format

[[http://example.com/]]

or

[[http://example.com/][description]]

Image

[[/path/to/img.jpg]]

Export

In emacs, call org-export-dispatchCtrl+c Ctrl+e】 to export. To export to HTML, the key is 【Ctrl+c Ctrl+e h h

Org Commands

Emacs Org mode has many commands, including:

For a basic tutorial, see: Emacs: Writing Outline, org-mode Tutorial

org mode Topic

  1. Emacs: Org Mode Markup Cheatsheet
  2. Emacs: Writing Outline, org-mode Tutorial
  3. Emacs: Org Mode Tutorial: Source Code Markup
  4. Emacs: Using Org Mode for Todo
Like it? Buy Xah Emacs Tutorial. Thanks.

or, buy something from Best Keyboard for Emacs