Skip to content

Instantly share code, notes, and snippets.

@lambda-mike
Last active October 1, 2020 18:11
Show Gist options
  • Save lambda-mike/b61b2254ff9a8005ddb1c558a69d1669 to your computer and use it in GitHub Desktop.
Save lambda-mike/b61b2254ff9a8005ddb1c558a69d1669 to your computer and use it in GitHub Desktop.

Org-mode

Basics

  • M-x org-mode enable Org mode
  • * MyHeader create header
  • TAB hide/show text below the header
  • S-TAB cycle through visibility levels
  • C-RET create another header on the same level
  • M-k/j move whole header with children up/down
  • M-h/l promote/demote header
  • SPC m s j/k/h/l also works
  • SPC m r r - move header to arbitrary place (in this file or another)
  • SPC m . - go to place (fuzzy search)

Hyperlinks

[[Chapter 1]] or SPC m l and choose header from the list.

Can link to file:abc.org::Header Name as well.

Snippets

<sTAB

Tasks

  • SPC m t switch task mode (TODO, DONE, ...) or C-c C-t
  • S arrleft/arrright cycle through task modes
  • S up/down cycle through priorities
  • SPC m q set tag
  • SPC m s s org-sparse-tree (or try org-tags-sparse-tree)
  • change unordered list - into ordered 1. and confirm using C-c C-c
  • customize with SEQ_TODO property | separates todo and done sections

Agenda

  • SPC o A a open Agenda
  • [ ] move prev/next week
  • TAB on item - preview
  • RET on item - go to that item closing agenda
  • SPC m d s schedule item
  • SPC m d d schedule deadline for item
  • SPC o a t agenda todo list
  • SPC o a m agenda search by tags
  • SPC o a n agenda & todo list
  • cal navigation: M-h/j/k/l < > (prev/next month) . (today)

Scheduling

  • +1w next occurence in 1 week
  • ++1w next occurence in 1 week, only in the future!
  • .+4w next occurence exactly in 4 weeks after the task is done, not earlier
  • -20d start warning 20 days before
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment