Advertisement
NeroHaxor1337

Org-Mode Reference Card (for version 7.8.11)

Mar 2nd, 2014
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.13 KB | None | 0 0
  1. ================================================================================
  2. Org-Mode Reference Card (for version 7.8.11)
  3. ================================================================================
  4.  
  5.  
  6.  
  7. ================================================================================
  8. Getting Started
  9. ================================================================================
  10. To read the on-line documentation try M-x org-info
  11.  
  12. ================================================================================
  13. Visibility Cycling
  14. ================================================================================
  15.  
  16. rotate current subtree between states TAB
  17. rotate entire buffer between states S-TAB
  18. restore property-dependent startup visibility C-u C-u TAB
  19. show the whole file, including drawers C-u C-u C-u TAB
  20. reveal context around point C-c C-r
  21.  
  22. ================================================================================
  23. Motion
  24. ================================================================================
  25.  
  26. next/previous heading C-c C-n/p
  27. next/previous heading, same level C-c C-f/b
  28. backward to higher level heading C-c C-u
  29. jump to another place in document C-c C-j
  30. previous/next plain list item S-UP/DOWN\notetwo
  31.  
  32. ================================================================================
  33. Structure Editing
  34. ================================================================================
  35.  
  36. insert new heading/item at current level M-RET
  37. insert new heading after subtree C-RET
  38. insert new TODO entry/checkbox item M-S-RET
  39. insert TODO entry/ckbx after subtree C-S-RET
  40. turn (head)line into item, cycle item type C-c -
  41. turn item/line into headline C-c *
  42. promote/demote heading M-LEFT/RIGHT
  43. promote/demote current subtree M-S-LEFT/RIGHT
  44. move subtree/list item up/down M-S-UP/DOWN
  45. sort subtree/region/plain-list C-c ^
  46. clone a subtree C-c C-x c
  47. copy visible text C-c C-x v
  48. kill/copy subtree C-c C-x C-w/M-w
  49. yank subtree C-c C-x C-y or C-y
  50. narrow buffer to subtree / widen C-x n s/w
  51.  
  52. ================================================================================
  53. Capture - Refile - Archiving
  54. ================================================================================
  55. capture a new item (C-u C-u = goto last) C-c c \noteone
  56. refile subtree (C-u C-u = goto last) C-c C-w
  57. archive subtree using the default command C-c C-x C-a
  58. move subtree to archive file C-c C-x C-s
  59. toggle ARCHIVE tag / to ARCHIVE sibling C-c C-x a/A
  60. force cycling of an ARCHIVEd tree C-TAB
  61.  
  62. ================================================================================
  63. Filtering and Sparse Trees
  64. ================================================================================
  65.  
  66. construct a sparse tree by various criteria C-c /
  67. view TODO's in sparse tree C-c / t/T
  68. global TODO list in agenda mode C-c a t \noteone
  69. time sorted view of current org file C-c a L
  70.  
  71. ================================================================================
  72. Tables
  73. ================================================================================
  74.  
  75. --------------------------------------------------------------------------------
  76. Creating a table
  77. --------------------------------------------------------------------------------
  78.  
  79. just start typing, e.g. |Name|Phone|Age RET |- TAB
  80. convert region to table C-c |
  81. ... separator at least 3 spaces C-3 C-c |
  82.  
  83. --------------------------------------------------------------------------------
  84. Commands available inside tables
  85. --------------------------------------------------------------------------------
  86.  
  87. The following commands work when the cursor is inside a table.
  88. Outside of tables, the same keys may have other functionality.
  89.  
  90. --------------------------------------------------------------------------------
  91. Re-aligning and field motion
  92. --------------------------------------------------------------------------------
  93.  
  94. re-align the table without moving the cursor C-c C-c
  95. re-align the table, move to next field TAB
  96. move to previous field S-TAB
  97. re-align the table, move to next row RET
  98. move to beginning/end of field M-a/e
  99.  
  100. --------------------------------------------------------------------------------
  101. Row and column editing
  102. --------------------------------------------------------------------------------
  103.  
  104. move the current column left M-LEFT/RIGHT
  105. kill the current column M-S-LEFT
  106. insert new column to left of cursor position M-S-RIGHT
  107.  
  108. move the current row up/down M-UP/DOWN
  109. kill the current row or horizontal line M-S-UP
  110. insert new row above the current row M-S-DOWN
  111. insert hline below (C-u : above) current row C-c -
  112. insert hline and move to line below it C-c RET
  113. sort lines in region C-c ^
  114.  
  115. --------------------------------------------------------------------------------
  116. Regions
  117. --------------------------------------------------------------------------------
  118.  
  119. cut/copy/paste rectangular region C-c C-x C-w/M-w/C-y
  120. fill paragraph across selected cells C-c C-q
  121.  
  122. --------------------------------------------------------------------------------
  123. Miscellaneous
  124. --------------------------------------------------------------------------------
  125.  
  126. to limit column width to N characters, use ...| <N> |...
  127. edit the current field in a separate window C-c `
  128. make current field fully visible C-u TAB
  129. export as tab-separated file M-x org-table-export
  130. import tab-separated file M-x org-table-import
  131. sum numbers in current column/rectangle C-c +
  132.  
  133. --------------------------------------------------------------------------------
  134. Tables created with the table.el package
  135. --------------------------------------------------------------------------------
  136.  
  137. insert a new table.el table C-c ~
  138. recognize existing table.el table C-c C-c
  139. convert table (Org-mode <-> table.el) C-c ~
  140.  
  141. --------------------------------------------------------------------------------
  142. Spreadsheet
  143. --------------------------------------------------------------------------------
  144.  
  145. Formulas typed in field are executed by TAB,
  146. RET and C-c C-c. = introduces a column
  147. formula, := a field formula.
  148.  
  149. Example: Add Col1 and Col2 |=$1+$2 |
  150. ... with printf format specification |=$1+$2;%.2f|
  151. ... with constants from constants.el |=$1/$c/$cm |
  152. sum from 2nd to 3rd hline |:=vsum(@II..@III)|
  153. apply current column formula | = |
  154.  
  155. set and eval column formula C-c =
  156. set and eval field formula C-u C-c =
  157. re-apply all stored equations to current line C-c *
  158. re-apply all stored equations to entire table C-u C-c *
  159. iterate table to stability C-u C-u C-c *
  160. rotate calculation mark through # * ! ^ _ $ C-#
  161. show line, column, formula reference C-c ?
  162. toggle grid / debugger C-c }/{
  163.  
  164. --------------------------------------------------------------------------------
  165. Formula Editor
  166. --------------------------------------------------------------------------------
  167.  
  168. edit formulas in separate buffer C-c '
  169. exit and install new formulas C-c C-c
  170. exit, install, and apply new formulas C-u C-c C-c
  171. abort C-c C-q
  172. toggle reference style C-c C-r
  173. pretty-print Lisp formula TAB
  174. complete Lisp symbol M-TAB
  175. shift reference point S-cursor
  176. shift test line for column references M-up/down
  177. scroll the window showing the table M-S-up/down
  178. toggle table coordinate grid C-c }
  179.  
  180. ================================================================================
  181. Links
  182. ================================================================================
  183.  
  184. globally store link to the current location C-c l \noteone
  185. insert a link (TAB completes stored links) C-c C-l
  186. insert file link with file name completion C-u C-c C-l
  187. edit (also hidden part of) link at point C-c C-l
  188.  
  189. open file links in emacs C-c C-o
  190. ...force open in emacs/other window C-u C-c C-o
  191. open link at point mouse-1/2
  192. ...force open in emacs/other window mouse-3
  193. record a position in mark ring C-c %
  194. jump back to last followed link(s) C-c &
  195. find next link C-c C-x C-n
  196. find previous link C-c C-x C-p
  197. edit code snippet of file at point C-c '
  198. toggle inline display of linked images C-c C-x C-v
  199.  
  200. ================================================================================
  201. Working with Code (Babel)
  202. ================================================================================
  203.  
  204. execute code block at point C-c C-c
  205. open results of code block at point C-c C-o
  206. check code block at point for errors C-c C-v c
  207. insert a header argument with completion C-c C-v j
  208. view expanded body of code block at point C-c C-v v
  209. view information about code block at point C-c C-v I
  210. go to named code block C-c C-v g
  211. go to named result C-c C-v r
  212. go to the head of the current code block C-c C-v u
  213. go to the next code block C-c C-v n
  214. go to the previous code block C-c C-v p
  215. demarcate a code block C-c C-v d
  216. execute the next key sequence in the code edit bu C-c C-v x
  217. execute all code blocks in current buffer C-c C-v b
  218. execute all code blocks in current subtree C-c C-v s
  219. tangle code blocks in current file C-c C-v t
  220. tangle code blocks in supplied file C-c C-v f
  221. ingest all code blocks in supplied file into the C-c C-v i
  222. switch to the session of the current code block C-c C-v z
  223. load the current code block into a session C-c C-v l
  224. view sha1 hash of the current code block C-c C-v a
  225.  
  226. ================================================================================
  227. Completion
  228. ================================================================================
  229.  
  230. In-buffer completion completes TODO keywords at headline start, TeX
  231. macros after `\', option keywords after `#-', TAGS
  232. after `:', and dictionary words elsewhere.
  233.  
  234. complete word at point M-TAB
  235.  
  236.  
  237.  
  238.  
  239. ================================================================================
  240. TODO Items and Checkboxes
  241. ================================================================================
  242.  
  243. rotate the state of the current item C-c C-t
  244. select next/previous state S-LEFT/RIGHT
  245. select next/previous set C-S-LEFT/RIGHT
  246. toggle ORDERED property C-c C-x o
  247. view TODO items in a sparse tree C-c C-v
  248. view 3rd TODO keyword's sparse tree C-3 C-c C-v
  249.  
  250. set the priority of the current item C-c , [ABC]
  251. remove priority cookie from current item C-c , SPC
  252. raise/lower priority of current item S-UP/DOWN\notetwo
  253.  
  254. insert new checkbox item in plain list M-S-RET
  255. toggle checkbox(es) in region/entry/at point C-c C-x C-b
  256. toggle checkbox at point C-c C-c
  257. update checkbox statistics (C-u : whole file) C-c #
  258.  
  259. ================================================================================
  260. Tags
  261. ================================================================================
  262.  
  263. set tags for current heading C-c C-q
  264. realign tags in all headings C-u C-c C-q
  265. create sparse tree with matching tags C-c \\
  266. globally (agenda) match tags at cursor C-c C-o
  267.  
  268. ================================================================================
  269. Properties and Column View
  270. ================================================================================
  271.  
  272. set property/effort C-c C-x p/e
  273. special commands in property lines C-c C-c
  274. next/previous allowed value S-left/right
  275. turn on column view C-c C-x C-c
  276. capture columns view in dynamic block C-c C-x i
  277.  
  278. quit column view q
  279. show full value v
  280. edit value e
  281. next/previous allowed value n/p or S-left/right
  282. edit allowed values list a
  283. make column wider/narrower > / <
  284. move column left/right M-left/right
  285. add new column M-S-right
  286. Delete current column M-S-left
  287.  
  288.  
  289. ================================================================================
  290. Timestamps
  291. ================================================================================
  292.  
  293. prompt for date and insert timestamp C-c .
  294. like C-c . but insert date and time format C-u C-c .
  295. like C-c . but make stamp inactive C-c !
  296. insert DEADLINE timestamp C-c C-d
  297. insert SCHEDULED timestamp C-c C-s
  298. create sparse tree with all deadlines due C-c / d
  299. the time between 2 dates in a time range C-c C-y
  300. change timestamp at cursor ±1 day S-RIGHT/LEFT\notetwo
  301. change year/month/day at cursor by ±1 S-UP/DOWN\notetwo
  302. access the calendar for the current date C-c >
  303. insert timestamp matching date in calendar C-c <
  304. access agenda for current date C-c C-o
  305. select date while prompted mouse-1/RET
  306. toggle custom format display for dates/times C-c C-x C-t
  307.  
  308.  
  309. --------------------------------------------------------------------------------
  310. Clocking time
  311. --------------------------------------------------------------------------------
  312.  
  313. start clock on current item C-c C-x C-i
  314. stop/cancel clock on current item C-c C-x C-o/x
  315. display total subtree times C-c C-x C-d
  316. remove displayed times C-c C-c
  317. insert/update table with clock report C-c C-x C-r
  318.  
  319. ================================================================================
  320. Agenda Views
  321. ================================================================================
  322.  
  323. add/move current file to front of agenda C-c [
  324. remove current file from your agenda C-c ]
  325. cycle through agenda file list C-'
  326. set/remove restriction lock C-c C-x </>
  327.  
  328. compile agenda for the current week C-c a a \noteone
  329. compile global TODO list C-c a t \noteone
  330. compile TODO list for specific keyword C-c a T \noteone
  331. match tags, TODO kwds, properties C-c a m \noteone
  332. match only in TODO entries C-c a M \noteone
  333. find stuck projects C-c a # \noteone
  334. show timeline of current org file C-c a L \noteone
  335. configure custom commands C-c a C \noteone
  336. agenda for date at cursor C-c C-o
  337.  
  338. --------------------------------------------------------------------------------
  339. Commands available in an agenda buffer
  340. --------------------------------------------------------------------------------
  341.  
  342. --------------------------------------------------------------------------------
  343. View Org file
  344. --------------------------------------------------------------------------------
  345.  
  346. show original location of item SPC/mouse-3
  347. show and recenter window L
  348. goto original location in other window TAB/mouse-2
  349. goto original location, delete other windows RET
  350. show subtree in indirect buffer, ded.\ frame C-c C-x b
  351. toggle follow-mode F
  352.  
  353. --------------------------------------------------------------------------------
  354. Change display
  355. --------------------------------------------------------------------------------
  356.  
  357. delete other windows o
  358. view mode dispatcher v
  359. switch to day/week/month/year/def view d w vm vy vSP
  360. toggle diary entries / time grid / habits D / G / K
  361. toggle entry text / clock report E / R
  362. toggle display of logbook entries l / v l/L/c
  363. toggle inclusion of archived trees/files v a/A
  364. refresh agenda buffer with any changes r / g
  365. filter with respect to a tag /
  366. save all org-mode buffers s
  367. display next/previous day,week,... f / b
  368. goto today / some date (prompt) . / j
  369.  
  370. --------------------------------------------------------------------------------
  371. Remote editing
  372. --------------------------------------------------------------------------------
  373.  
  374. digit argument 0-9
  375. change state of current TODO item t
  376. kill item and source C-k
  377. archive default $ / a
  378. refile the subtree C-c C-w
  379. set/show tags of current headline : / T
  380. set effort property (prefix=nth) e
  381. set / compute priority of current item , / P
  382. raise/lower priority of current item S-UP/DOWN\notetwo
  383. run an attachment command C-c C-a
  384. schedule/set deadline for this item C-c C-s/d
  385. change timestamp one day earlier/later S-LEFT/RIGHT\notetwo
  386. change timestamp to today >
  387. insert new entry into diary i
  388. start/stop/cancel the clock on current item I / O / X
  389. jump to running clock entry J
  390. mark / unmark / execute bulk action m / u / B
  391.  
  392. --------------------------------------------------------------------------------
  393. Misc
  394. --------------------------------------------------------------------------------
  395.  
  396. follow one or offer all links in current entry C-c C-o
  397.  
  398. --------------------------------------------------------------------------------
  399. Calendar commands
  400. --------------------------------------------------------------------------------
  401.  
  402. find agenda cursor date in calendar c
  403. compute agenda for calendar cursor date c
  404. show phases of the moon M
  405. show sunrise/sunset times S
  406. show holidays H
  407. convert date to other calendars C
  408.  
  409. --------------------------------------------------------------------------------
  410. Quit and Exit
  411. --------------------------------------------------------------------------------
  412.  
  413. quit agenda, remove agenda buffer q
  414. exit agenda, remove all agenda buffers x
  415.  
  416. ================================================================================
  417. LaTeX and cdlatex-mode
  418. ================================================================================
  419.  
  420. preview LaTeX fragment C-c C-x C-l
  421. expand abbreviation (cdlatex-mode) TAB
  422. insert/modify math symbol (cdlatex-mode) ` / '
  423. insert citation using RefTeX C-c C-x [
  424.  
  425. ================================================================================
  426. Exporting and Publishing
  427. ================================================================================
  428.  
  429. Exporting creates files with extensions .txt and .html
  430. in the current directory. Publishing puts the resulting file into
  431. some other place.
  432.  
  433. export/publish dispatcher C-c C-e
  434.  
  435. export visible part only C-c C-e v
  436. insert template of export options C-c C-e t
  437. toggle fixed width for entry or region C-c :
  438. toggle pretty display of scripts, entities C-c C-x {\tt\char`\}
  439.  
  440. --------------------------------------------------------------------------------
  441. Comments: Text not being exported
  442. --------------------------------------------------------------------------------
  443.  
  444. Lines starting with # and subtrees starting with COMMENT are
  445. never exported.
  446.  
  447. toggle COMMENT keyword on entry C-c ;
  448.  
  449. ================================================================================
  450. Dynamic Blocks
  451. ================================================================================
  452.  
  453. update dynamic block at point C-c C-x C-u
  454. update all dynamic blocks C-u C-c C-x C-u
  455.  
  456. ================================================================================
  457. Notes
  458. ================================================================================
  459. [1] This is only a suggestion for a binding of this command. Choose
  460. your own key as shown under ACTIVATION.
  461.  
  462. [2] Keybinding affected by org-support-shift-select and also
  463. org-replace-disputed-keys.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement