Org-mode cheatsheet

Org-mode cheatsheet

Updated: June 8, 2021
Emacs Org Doom

Tags #

  • Search tags: SPC n m or SPC o a m
  • Add tag: SPC m q
  • Insert link: SPC m l l
  • File links have the structure [[file:relative_link_to_file][some_title]​]
  • To link to a specific heading in a file ​[[file:relative_link::header title][some_title]]
    1. header title can have spaces in it, e.g. relative_link.org::A Heading in a file
  • External (web) links have the structure [​[full_url][some_title]​]
  • To see the link (so you can more easily edit it): SPC m l t
  • To store a link to the current file/headline you’re in: SPC n l
  • and to “paste” that stored link: SPC m l l (Return)

TODOs #

  • See todo list (all entries): SPC o a t or SPC n t
  • Insert todo within current section (subheading): SPC m i t
  • Change state of todo: SPC m t (a menu will popup, d to change to done)

Blocks #

  • insert code block SPC m i c
  • insert quote block SPC m i q

Zero-width character #

  • To escape the normal org-mode syntax (to show something like the file links above) C-x 8 RET (search for ZERO WIDTH CHARACTER) RET

Motion #

  • To fuzzy search/goto section C-c C-j (start typing)
  • Up to previous heading C-c C-p
  • Down to next heading C-c C-n

Timestamps #

  • Inactive (doesn’t show up on the Agenda) SPC m d T
    • If you simply do the above and just type in a time, e.g. 3pm it will render the below
    • Or type it out manually, format: [2021-03-23 Tue 15:30]
  • Active (does show up on the Agenda) SPC m d t
    • If you simply do the above and just type in a time, e.g. 3pm it will render the below
    • Or type it out manually, format: <2021-03-23 Tue 15:30>
  • Or use custom command SPC m i d which will put an inactive timestamp (with time) on the line below your cursor and enter insert mode to insert a prefix string before the stamp, e.g. Started: [timestamp]

Time Management #

  • To start a clock for the current headline (section): SPC m c i
  • To stop a clock for the current headline (section): SPC m c o
  • To create a time-management overview of the file: SPC m c R