Skip to content

Latest commit

 

History

History
445 lines (366 loc) · 20.9 KB

orgcard.org

File metadata and controls

445 lines (366 loc) · 20.9 KB

Org-Mode Reference Card

Getting Started

KeyFunction
M-x org-infoTo read the on-line documentation try

Visibility Cycling

KeyFunction
TABrotate current subtree between states
S-TABrotate entire buffer between states
C-u C-u TABrestore property-dependent startup visibility
C-u C-u C-u TABshow the whole file, including drawers
C-c C-rreveal context around point

Motion

KeyFunction
C-c C-n/pnext/previous heading
C-c C-f/bnext/previous heading, same level
C-c C-ubackward to higher level heading
C-c C-jjump to another place in document
S-UP/DOWNprevious/next plain list item

Structure Editing

KeyFunction
M-RETinsert new heading/item at current level
C-RETinsert new heading after subtree
M-S-RETinsert new TODO entry/checkbox item
C-S-RETinsert TODO entry/ckbx after subtree
C-c -turn (head)line into item, cycle item type
C-c *turn item/line into headline
M-LEFT/RIGHTpromote/demote heading
M-S-LEFT/RIGHTpromote/demote current subtree
M-S-UP/DOWNmove subtree/list item up/down
C-c ^sort subtree/region/plain-list
C-c C-x cclone a subtree
C-c C-x vcopy visible text
C-c C-x C-w/M-wkill/copy subtree
C-c C-x C-y or C-yyank subtree
C-x n s/wnarrow buffer to subtree / widen

Capture - Refile - Archiving

KeyFunction
C-c ccapture a new item (C-u C-u = goto last)
C-c C-wrefile subtree (C-u C-u = goto last)
C-c C-x C-aarchive subtree using the default command
C-c C-x C-smove subtree to archive file
C-c C-x a/Atoggle ARCHIVE tag / to ARCHIVE sibling
C-TABforce cycling of an ARCHIVEd tree

Filtering and Sparse Trees

KeyFunction
C-c /construct a sparse tree by various criteria
C-c / t/Tview TODO’s in sparse tree
C-c a tglobal TODO list in agenda mode
C-c a Ltime sorted view of current org file

Tables

Creating a table

  • C-c |: convert region to table
  • C-3 C-c | : separator at least 3 spaces

Commands available inside tables

The following commands work when the cursor is inside a table. Outside of tables, the same keys may have other functionality.

Re-aligning and field motion

KeyFunction
C-c C-cre-align the table without moving the cursor
TABre-align the table, move to next field
S-TABmove to previous field
RETre-align the table, move to next row
M-a/emove to beginning/end of field

Row and column editing

KeyFunction
M-LEFT/RIGHTmove the current column left
M-S-LEFTkill the current column
M-S-RIGHTinsert new column to left of cursor position
M-UP/DOWNmove the current row up/down
M-S-UPkill the current row or horizontal line
M-S-DOWNinsert new row above the current row
C-c -insert hline below (C-u : above) current row
C-c RETinsert hline and move to line below it
C-c ^sort lines in region

Regions

KeyFunction
C-c C-x C-w/M-w/C-ycut/copy/paste rectangular region
C-c C-qfill paragraph across selected cells

Miscellaneous

KeyFunction
C-c `edit the current field in a separate window
C-u TABmake current field fully visible
M-x org-table-exportexport as tab-separated file
M-x org-table-importimport tab-separated file
C-c +sum numbers in current column/rectangle

To limit column width to N characters, use ... | <N> | ....

Tables created with the table.el package

KeyFunction
C-c ~insert a new table.el table
C-c C-crecognize existing table.el table
C-c ~convert table (Org-mode <-> table.el)

Spreadsheet

  • Formulas typed in field are executed by TAB, RET and C-c C-c.
  • = introduces a column formula, := a field formula.
  • Example: Add Col1 and Col2: =1+2
  • … with printf format specification: =1+2;%.2f
  • … with constants from constants.el: =1/c/cm
  • sum from 2nd to 3rd hline: :=vsum(@II..@III)
KeyFunction
=apply current column formula
C-c =set and eval column formula
C-u C-c #set and eval field formula
C-c *re-apply all stored equations to current line
C-u C-c *re-apply all stored equations to entire table
C-u C-u C-c *iterate table to stability
C-#rotate calculation mark through # * ! ^ _
C-c ?show line, column, formula reference
C-c }/{toggle grid / debugger

Formula Editor

KeyFunction
=C-c ‘=edit formulas in separate buffer
C-c C-cexit and install new formulas
C-u C-c C-cexit, install, and apply new formulas
C-c C-qabort
C-c C-rtoggle reference style
TABpretty-print Lisp formula
M-TABcomplete Lisp symbol
S-cursorshift reference point
M-up/downshift test line for column references
M-S-up/downscroll the window showing the table
C-c }toggle table coordinate grid

Links

KeyFunction
C-c lglobally store link to the current location
C-c C-linsert a link (TAB completes stored links)
C-u C-c C-linsert file link with file name completion
C-c C-ledit (also hidden part of) link at point
C-c C-oopen file links in emacs
C-u C-c C-o…force open in emacs/other window
mouse-1/2open link at point
mouse-3…force open in emacs/other window
C-c %record a position in mark ring
C-c &jump back to last followed link(s)
C-c C-x C-nfind next link
C-c C-x C-pfind previous link
=C-c ‘=edit code snippet of file at point
C-c C-x C-vtoggle inline display of linked images

Working with Code (Babel)

KeyFunction
C-c C-cexecute code block at point
C-c C-oopen results of code block at point
C-c C-v ccheck code block at point for errors
C-c C-v jinsert a header argument with completion
C-c C-v vview expanded body of code block at point
C-c C-v Iview information about code block at point
C-c C-v ggo to named code block
C-c C-v rgo to named result
C-c C-v ugo to the head of the current code block
C-c C-v ngo to the next code block
C-c C-v pgo to the previous code block
C-c C-v ddemarcate a code block
C-c C-v xexecute the next key sequence in the code edit bu
C-c C-v bexecute all code blocks in current buffer
C-c C-v sexecute all code blocks in current subtree
C-c C-v ttangle code blocks in current file
C-c C-v ftangle code blocks in supplied file
C-c C-v iingest all code blocks in supplied file into the
C-c C-v zswitch to the session of the current code block
C-c C-v lload the current code block into a session
C-c C-v aview sha1 hash of the current code block

Completion

In-buffer completion completes TODO keywords at headline start, TeX macros after `', option keywords after `#-‘, TAGS after `:’, and dictionary words elsewhere.

KeyFunction
M-TABcomplete word at point

Items and Checkboxes

KeyFunction
C-c C-trotate the state of the current item
S-LEFT/RIGHTselect next/previous state
C-S-LEFT/RIGHTselect next/previous set
C-c C-x otoggle ORDERED property
C-c C-vview TODO items in a sparse tree
C-3 C-c C-vview 3rd TODO keyword’s sparse tree
C-c , [ABC]set the priority of the current item
C-c , SPCremove priority cookie from current item
S-UP/DOWNraise/lower priority of current item
M-S-RETinsert new checkbox item in plain list
C-c C-x C-btoggle checkbox(es) in region/entry/at point
C-c C-ctoggle checkbox at point
C-c #update checkbox statistics (C-u : whole file)

Tags

KeyFunction
C-c C-qset tags for current heading
C-u C-c C-qrealign tags in all headings
C-c \\create sparse tree with matching tags
C-c C-oglobally (agenda) match tags at cursor

Properties and Column View

KeyFunction
C-c C-x p/eset property/effort
C-c C-cspecial commands in property lines
S-left/rightnext/previous allowed value
C-c C-x C-cturn on column view
C-c C-x icapture columns view in dynamic block
qquit column view
vshow full value
eedit value
n/p or S-left/rightnext/previous allowed value
aedit allowed values list
> / <make column wider/narrower
M-left/rightmove column left/right
M-S-rightadd new column
M-S-leftDelete current column

Timestamps

KeyFunction
C-c .prompt for date and insert timestamp
C-u C-c .like C-c . but insert date and time format
C-c !like C-c . but make stamp inactive
C-c C-dinsert DEADLINE timestamp
C-c C-sinsert SCHEDULED timestamp
C-c / dcreate sparse tree with all deadlines due
C-c C-ythe time between 2 dates in a time range
S-RIGHT/LEFTchange timestamp at cursor ±1 day
S-UP/DOWNchange year/month/day at cursor by ±1
C-c >access the calendar for the current date
C-c <insert timestamp matching date in calendar
C-c C-oaccess agenda for current date
mouse-1/RETselect date while prompted
C-c C-x C-ttoggle custom format display for dates/times

Clocking time

KeyFunction
C-c C-x C-istart clock on current item
C-c C-x C-o/xstop/cancel clock on current item
C-c C-x C-ddisplay total subtree times
C-c C-cremove displayed times
C-c C-x C-rinsert/update table with clock report

Agenda Views

KeyFunction
C-c [add/move current file to front of agenda
C-c ]remove current file from your agenda
=C-‘=cycle through agenda file list
C-c C-x </>set/remove restriction lock
C-c a acompile agenda for the current week
C-c a tcompile global TODO list
C-c a Tcompile TODO list for specific keyword
C-c a mmatch tags, TODO kwds, properties
C-c a Mmatch only in TODO entries
C-c a #find stuck projects
C-c a Lshow timeline of current org file
C-c a Cconfigure custom commands
C-c C-oagenda for date at cursor

Commands available in an agenda buffer

View Org file

KeyFunction
SPC/mouse-3show original location of item
Lshow and recenter window
TAB/mouse-2goto original location in other window
RETgoto original location, delete other windows
C-c C-x bshow subtree in indirect buffer, ded.\ frame
Ftoggle follow-mode

Change display

KeyFunction
odelete other windows
vview mode dispatcher
d w vm vy vSPswitch to day/week/month/year/def view
D / G / Ktoggle diary entries / time grid / habits
E / Rtoggle entry text / clock report
l / v l/L/ctoggle display of logbook entries
v a/Atoggle inclusion of archived trees/files
r / grefresh agenda buffer with any changes
/filter with respect to a tag
ssave all org-mode buffers
f / bdisplay next/previous day,week,…
. / jgoto today / some date (prompt)

Remote editing

KeyFunction
0-9digit argument
tchange state of current TODO item
C-kkill item and source
/ aarchive default
C-c C-wrefile the subtree
: / Tset/show tags of current headline
eset effort property (prefix=nth)
=, / P=set / compute priority of current item
S-UP/DOWNraise/lower priority of current item
C-c C-arun an attachment command
C-c C-s/dschedule/set deadline for this item
S-LEFT/RIGHTchange timestamp one day earlier/later
>change timestamp to today
iinsert new entry into diary
I / O / Xstart/stop/cancel the clock on current item
Jjump to running clock entry
m / u / Bmark / unmark / execute bulk action

Misc

KeyFunction
C-c C-ofollow one or offer all links in current entry

Calendar commands

KeyFunction
cfind agenda cursor date in calendar
ccompute agenda for calendar cursor date
Mshow phases of the moon
Sshow sunrise/sunset times
Hshow holidays
Cconvert date to other calendars

Quit and Exit

KeyFunction
qquit agenda, remove agenda buffer
xexit agenda, remove all agenda buffers

LaTeX and cdlatex-mode

KeyFunction
C-c C-x C-lpreview LaTeX fragment
TABexpand abbreviation (cdlatex-mode)
=` / ‘=insert/modify math symbol (cdlatex-mode)
C-c C-x [insert citation using RefTeX

Exporting and Publishing

Exporting creates files with extensions .txt and .html in the current directory. Publishing puts the resulting file into some other place.

KeyFunction
C-c C-eexport/publish dispatcher
C-c C-e C-vexport visible part only
C-c C-e #insert template of export options
C-c :toggle fixed width for entry or region
C-c C-x {\tt\char`\}toggle pretty display of scripts, entities

Comments: Text not being exported

Lines starting with # and subtrees starting with COMMENT are never exported.

KeyFunction
C-c ;toggle COMMENT keyword on entry

Dynamic Blocks

KeyFunction
C-c C-x C-uupdate dynamic block at point
C-u C-c C-x C-uupdate all dynamic blocks

Footnotes

  1. This is only a suggestion for a binding of this command. Choose your own key as shown under ACTIVATION.
  2. Keybinding affected by org-support-shift-select and also org-replace-disputed-keys.