Emacs: Writing Outline, org-mode Tutorial

By Xah Lee. Date: . Last updated: .

org-mode is bundled with emacs since emacs 22 (). This page is a basic tutorial.

emacs org mode outline2
org mode, outline, showing 1st and 2nd level headers.

Org Mode Markup Cheatsheet

Org Mode is a markup language, similar to Markdown, but more rich. Here's a cheat sheet.

Emacs: Org Mode Markup Cheatsheet

Have a look at the cheatsheet first.

The following shows you the commands to automatically insert the markup, and commands that navigate/manipulate the markup.

Creating Headings

Heading starts with asterisk *, followed by a space.

* on the Musicality of Mathematics

** Abstract

Over the past thousand years, humanity has worked on on music and math.

** the Meaning of Musicality

One of the central problem is the definition of musicality.

** the Meaning of Math

The meaning of math is a ancient question. Here, we take a meta-physiology approach.

* on the Philosophy of Musicality

** Introduction

Of course, talk is cheap. But, is it, really? But before we can talk about it, we have to think about it. Does it imply thinking is cheaper?

Here we prove the fundamental theorem of musicality.

* the Absca Project

“I'm going to be lucky today, and my methodology is happy-go-lucky” —anonymous.

A wise man has said, but, we cut it directly by introducing the Absca project.

** Components of the Absca System


** Absca System and Logic

* the Relation of Absca, Musicality, and Math


Copy the above text in a file and save it. Now, open the file, call org-mode.

Show/Hide Sections

Create New Heading

Tree Branch Manipulation

Here are commands that move heading (and its content).

Open Files in org-mode Automatically

If you name your file ending in “.org”, emacs will open it in org-mode automatically.

You can also put this line as the first line of the file:

-*- mode: org -*-

Emacs will start org-mode when the file is opened.

If you want any file ending in “.txt” open in org-mode, you can add this line to your emacs init file:

(add-to-list 'auto-mode-alist '("\\.txt\\'" . org-mode))

Export to HTML

One great feature of org-mode is export to HTML.

Ctrl+c Ctrl+e h h】 → export the file to HTML, and automatically show the file in default web browser.

The newly generated file have the same name as your org file, but with “.html” extension, in the same directory.

Org-Mode Markup Cheatsheet

Org mode supports many othe markups, such as {list, code, bold, italic, …}. See: Emacs: Org Mode Markup Cheatsheet

Embed and Eval Source Code

Emacs: Org-Mode Tutorial: Embed Source Code, Literate Programing

Using org-mode for Todo

Emacs: Using org-mode for Todo

org-mode Menu

When in org-mode, there's a menu 〖Org〗. Try it. From the menu, you can learn the most useful commands and the key shortcuts.

emacs org mode outline1
org mode, outline, showing 1st level.



Org mode is written by Carsten Dominik https://staff.science.uva.nl/c.dominik/

You can see a fun video interview of Carsten Dominik by Sacha Chua at http://sachachua.com/blog/2013/03/emacs-chat-carsten-dominik/

Org mode is lead by Bastien Guerry for close a decade. You can see a fun video interview of Bastien Guerry by Sacha Chua at http://sachachua.com/blog/2013/05/emacs-chat-bastien-guerry/

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