orgcard.txt 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. ================================================================================
  2. Org-Mode Reference Card (for version 6.10)
  3. ================================================================================
  4. ================================================================================
  5. Getting Started
  6. ================================================================================
  7. (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
  8. (define-key global-map "\C-cl" 'org-store-link) [1]
  9. (define-key global-map "\C-ca" 'org-agenda) [1]
  10. For the many customization options try M-x org-customize
  11. To read the on-line documentation try M-x org-info
  12. ================================================================================
  13. Visibility Cycling
  14. ================================================================================
  15. rotate current subtree between states TAB
  16. rotate entire buffer between states S-TAB
  17. restore property-dependent startup visibility C-u C-u TAB
  18. show the whole file, including drawers C-u C-u C-u TAB
  19. reveal context around point C-c C-r
  20. ================================================================================
  21. Motion
  22. ================================================================================
  23. next/previous heading C-c C-n/p
  24. next/previous heading, same level C-c C-f/b
  25. backward to higher level heading C-c C-u
  26. jump to another place in document C-c C-j
  27. previous/next plain list item S-UP/DOWN [3]
  28. ================================================================================
  29. Structure Editing
  30. ================================================================================
  31. insert new heading/item at current level M-RET
  32. insert new heading after subtree C-RET
  33. insert new TODO entry/checkbox item M-S-RET
  34. insert TODO entry/ckbx after subtree C-S-RET
  35. turn (head)line into item, cycle bullet type C-c -
  36. turn item/line into headline, and back into line C-c *
  37. promote/demote current heading up one level M-LEFT/RIGHT
  38. promote/demote current subtree up one level M-S-LEFT/RIGHT
  39. move subtree/list item up/down M-S-UP/DOWN
  40. refile subtree C-c C-w
  41. kill subtree C-c C-x C-w
  42. copy subtree C-c C-x M-w
  43. yank subtree C-c C-x C-y
  44. narrow buffer to current subtree C-x n s
  45. widen restriction to full buffer C-x n w
  46. ================================================================================
  47. Archiving
  48. ================================================================================
  49. toggle ARCHIVE tag C-c C-x C-a
  50. force cycling of an ARCHIVEd tree C-TAB
  51. move subtree to archive file C-c C-x C-s
  52. ================================================================================
  53. Filtering and Sparse Trees
  54. ================================================================================
  55. construct a sparse tree by various criteria C-c /
  56. view TODO's in sparse tree C-c C-v
  57. global TODO list in agenda mode C-c a t [1]
  58. time sorted view of current org file C-c a L
  59. ================================================================================
  60. Tables
  61. ================================================================================
  62. --------------------------------------------------------------------------------
  63. Creating a table
  64. --------------------------------------------------------------------------------
  65. just start typing, e.g. |Name|Phone|Age RET |- TAB
  66. convert region to table C-c |
  67. ... separator at least 3 spaces C-3 C-c |
  68. --------------------------------------------------------------------------------
  69. Commands available inside tables
  70. --------------------------------------------------------------------------------
  71. The following commands work when the cursor is inside a table. Outside of
  72. tables, the same keys may have other functionality.
  73. --------------------------------------------------------------------------------
  74. Re-aligning and field motion
  75. --------------------------------------------------------------------------------
  76. re-align the table without moving the cursor C-c C-c
  77. re-align the table, move to next field TAB
  78. move to previous field S-TAB
  79. re-align the table, move to next row RET
  80. --------------------------------------------------------------------------------
  81. Row and column editing
  82. --------------------------------------------------------------------------------
  83. move the current column left M-LEFT/RIGHT
  84. kill the current column M-S-LEFT
  85. insert new column to left of cursor position M-S-RIGHT
  86. move the current row up/down M-UP/DOWN
  87. kill the current row or horizontal line M-S-UP
  88. insert new row above the current row M-S-DOWN
  89. insert hline below (C-u : above) current row C-c -
  90. sort lines in region C-c ^
  91. --------------------------------------------------------------------------------
  92. Regions
  93. --------------------------------------------------------------------------------
  94. cut rectangular region C-c C-x C-w
  95. copy rectangular region C-c C-x M-w
  96. paste rectangular region C-c C-x C-y
  97. fill paragraph across selected cells C-c C-q
  98. --------------------------------------------------------------------------------
  99. Miscellaneous
  100. --------------------------------------------------------------------------------
  101. to limit column width to N characters, use ...| <N> |...
  102. edit the current field in a separate window C-c `
  103. make current field fully visible C-u TAB
  104. export as tab-separated file M-x org-table-export
  105. import tab-separated file M-x org-table-import
  106. sum numbers in current column/rectangle C-c +
  107. --------------------------------------------------------------------------------
  108. Tables created with the table.el package
  109. --------------------------------------------------------------------------------
  110. insert a new table.el table C-c ~
  111. recognize existing table.el table C-c C-c
  112. convert table (Org-mode <-> table.el) C-c ~
  113. --------------------------------------------------------------------------------
  114. Spreadsheet
  115. --------------------------------------------------------------------------------
  116. Formulas typed in field are executed by TAB, RET and C-c C-c. = introduces a
  117. column formula, := a field formula.
  118. Example: Add Col1 and Col2 |=$1+$2 |
  119. ... with printf format specification |=$1+$2;%.2f|
  120. ... with constants from constants.el |=$1/$c/$cm |
  121. sum from 2nd to 3rd hline |:=vsum(@II..@III)|
  122. apply current column formula | = |
  123. set and eval column formula C-c =
  124. set and eval field formula C-u C-c =
  125. re-apply all stored equations to current line C-c *
  126. re-apply all stored equations to entire table C-u C-c *
  127. iterate table to stability C-u C-u C-c *
  128. rotate calculation mark through # * ! $ C-#
  129. show line, column, formula reference C-c ?
  130. toggle coordinate grid C-c }
  131. toggle formula debugger C-c {
  132. --------------------------------------------------------------------------------
  133. Formula Editor
  134. --------------------------------------------------------------------------------
  135. edit formulas in separate buffer C-c '
  136. exit and install new formulas C-c C-c
  137. exit, install, and apply new formulas C-u C-c C-c
  138. abort C-c C-q
  139. toggle reference style C-c C-r
  140. pretty-print Lisp formula TAB
  141. complete Lisp symbol M-TAB
  142. shift reference point S-cursor
  143. shift test line for column references M-up/down
  144. scroll the window showing the table M-S-up/down
  145. toggle table coordinate grid C-c }
  146. ================================================================================
  147. Links
  148. ================================================================================
  149. globally store link to the current location C-c l [1]
  150. insert a link (TAB completes stored links) C-c C-l
  151. insert file link with file name completion C-u C-c C-l
  152. edit (also hidden part of) link at point C-c C-l
  153. open file links in emacs C-c C-o
  154. ... force open in emacs/other window C-u C-c C-o
  155. open link at point mouse-1/2
  156. ... force open in emacs/other window mouse-3
  157. record a position in mark ring C-c %
  158. jump back to last followed link(s) C-c &
  159. find next link C-c C-x C-n
  160. find previous link C-c C-x C-p
  161. edit code snippet of file at point C-c '
  162. --------------------------------------------------------------------------------
  163. Internal Links
  164. --------------------------------------------------------------------------------
  165. <<My Target>> target
  166. <<<My Target>>> radio target [2]
  167. [[*this text]] find headline
  168. [[this text]] find target or text in buffer
  169. [[this text][description]] optional link text
  170. --------------------------------------------------------------------------------
  171. External Links
  172. --------------------------------------------------------------------------------
  173. file:/home/dominik/img/mars.jpg file, absolute
  174. file:papers/last.pdf file, relative
  175. file:projects.org::*that text find headline
  176. file:projects.org::find me find trgt/string
  177. http://www.astro.uva.nl/dominik on the web
  178. mailto:adent@galaxy.net Email address
  179. news:comp.emacs Usenet group
  180. bbdb:Richard Stallman BBDB person
  181. gnus:group GNUS group
  182. gnus:group#id GNUS message
  183. vm|wl|mhe|rmail:folder Mail folder
  184. vm|wl|mhe|rmail:folder#id Mail message
  185. info:emacs:Regexps Info file:node
  186. shell:ls *.org shell command
  187. elisp:(calendar) elisp form
  188. [[external link][description]] optional link text
  189. ================================================================================
  190. Completion
  191. ================================================================================
  192. In-buffer completion completes TODO keywords at headline start, TeX macros
  193. after `\', option keywords after `#-â', TAGS after `:', and dictionary words
  194. elsewhere.
  195. complete word at point M-TAB
  196. ================================================================================
  197. TODO Items and Checkboxes
  198. ================================================================================
  199. rotate the state of the current item C-c C-t
  200. select next/previous state S-LEFT/RIGHT
  201. select next/previous set C-S-LEFT/RIGHT
  202. view TODO items in a sparse tree C-c C-v
  203. view 3rd TODO keyword's sparse tree C-3 C-c C-v
  204. set the priority of the current item C-c , [ABC]
  205. remove priority cookie from current item C-c , SPC
  206. raise/lower priority of current item S-UP/DOWN [3]
  207. insert new checkbox item in plain list M-S-RET
  208. toggle checkbox(es) in region/entry/at point C-c C-x C-b
  209. toggle checkbox at point C-c C-c
  210. checkbox statistics cookies insert [/] or [%]
  211. update checkbox statistics (C-u : whole file) C-c #
  212. ================================================================================
  213. Tags
  214. ================================================================================
  215. set tags for current heading C-c C-q
  216. realign tags in all headings C-u C-c C-q
  217. create sparse tree with matching tags C-c \
  218. globally (agenda) match tags at cursor C-c C-o
  219. \section{Properties and Column View}
  220. \key{set property}{C-c C-x p}
  221. \key{special commands in property lines}{C-c C-c}
  222. \key{next/previous allowed value}{S-left/right}
  223. \key{turn on column view}{C-c C-x C-c}
  224. \key{capture columns view in dynamic block}{C-c C-x i}
  225. \key{quit column view}{q}
  226. \key{next/previous allowed value}{S-left/right}
  227. \key{next/previous allowed value}{n / p}
  228. \key{edit value}{e}
  229. \key{edit allowed values list}{a}
  230. \key{show value}{v}
  231. \key{make column wider/narrower}{> / <}
  232. \key{move column left/right}{M-left/right}
  233. \key{add new column}{M-S-right}
  234. \key{Delete current column}{M-S-left}
  235. ================================================================================
  236. Timestamps
  237. ================================================================================
  238. prompt for date and insert timestamp C-c .
  239. like C-c . but insert date and time format C-u C-c .
  240. like C-c . but make stamp inactive C-c !
  241. insert DEADLINE timestamp C-c C-d
  242. insert SCHEDULED timestamp C-c C-s
  243. create sparse tree with all deadlines due C-c C-w
  244. the time between 2 dates in a time range C-c C-y
  245. change timestamp at cursor by ±1 day S-RIGHT/LEFT [3]
  246. change year/month/day at cursor by ±1 S-UP/DOWN [3]
  247. access the calendar for the current date C-c >
  248. insert timestamp matching date in calendar C-c <
  249. access agenda for current date C-c C-o
  250. select date while prompted mouse-1/RET
  251. toggle custom format display for dates/times C-c C-x C-t
  252. --------------------------------------------------------------------------------
  253. Clocking time
  254. --------------------------------------------------------------------------------
  255. start clock on current item C-c C-x C-i
  256. stop clock on current item C-c C-x C-o
  257. cancel current clock C-c C-x C-x
  258. display total subtree times C-c C-x C-d
  259. remove displayed times C-c C-c
  260. insert/update table with clock report C-c C-x C-r
  261. ================================================================================
  262. Agenda Views
  263. ================================================================================
  264. add/move current file to front of agenda C-c [
  265. remove current file from your agenda C-c ]
  266. cycle through agenda file list C-'
  267. compile agenda for the current week C-c a a [1]
  268. compile global TODO list C-c a t [1]
  269. compile TODO list for specific keyword C-c a T [1]
  270. match tags, TODO kwds and properties C-c a m [1]
  271. match only in TODO entries C-c a M [1]
  272. find stuck projects C-c a # [1]
  273. show timeline of current org file C-c a L [1]
  274. configure custom commands C-c a C [1]
  275. configure stuck projects C-c a ! [1]
  276. agenda for date at cursor C-c C-o
  277. To set categories, add lines like [2]:
  278. #+CATEGORY: MyCateg
  279. --------------------------------------------------------------------------------
  280. Commands available in an agenda buffer
  281. --------------------------------------------------------------------------------
  282. --------------------------------------------------------------------------------
  283. View Org file
  284. --------------------------------------------------------------------------------
  285. show original location of item SPC/mouse-3
  286. show and recenter window L
  287. goto original location in other window TAB/mouse-2
  288. goto original location, delete other windows RET
  289. show subtree in indirect buffer, ded. frame b
  290. toggle follow-mode f
  291. --------------------------------------------------------------------------------
  292. Change display
  293. --------------------------------------------------------------------------------
  294. delete other windows o
  295. switch to day/week/month/year view d/w/m/y
  296. toggle inclusion of diary entries D
  297. toggle time grid for daily schedule G
  298. toggle display of logbook entries l
  299. toggle inclusion of archived trees/files v / C-u v}
  300. refresh agenda buffer with any changes r / g
  301. filter agenda with repect to a tag /
  302. save all org-mode buffers s
  303. display the next/previous day, week,... RIGHT/LEFT
  304. goto today .
  305. --------------------------------------------------------------------------------
  306. Remote editing
  307. --------------------------------------------------------------------------------
  308. digit argument 0-9
  309. change state of current TODO item t
  310. kill item and source C-k
  311. archive the subtree (file/tag/sibling) $ / a / A
  312. show tags of current headline T
  313. set tags for current headline :
  314. set priority of current item p
  315. raise/lower priority of current item S-UP/DOWN [3]
  316. display weighted priority of current item P
  317. run an attachment command C-c C-a
  318. schedule/set deadline for this item C-c C-s/d
  319. change timestamp to one day earlier/later S-LEFT/RIGHT [3]
  320. change timestamp to today >
  321. insert new entry into diary i
  322. start/stop/cancel the clock in current item I / O / X
  323. jump to running clock entry J
  324. --------------------------------------------------------------------------------
  325. Misc
  326. --------------------------------------------------------------------------------
  327. Open link in current line C-c C-o
  328. --------------------------------------------------------------------------------
  329. Calendar commands
  330. --------------------------------------------------------------------------------
  331. find agenda cursor date in calendar c
  332. compute agenda for calendar cursor date c
  333. show phases of the moon M
  334. show sunrise/sunset times S
  335. show holidays H
  336. convert date to other calendars C
  337. --------------------------------------------------------------------------------
  338. Quit and Exit
  339. --------------------------------------------------------------------------------
  340. quit agenda, remove agenda buffer q
  341. exit agenda, remove all agenda buffers x
  342. ================================================================================
  343. Calendar and Diary Integration
  344. ================================================================================
  345. Include Emacs diary entries into Org-mode agenda with:
  346. (setq org-agenda-include-diary t)
  347. ================================================================================
  348. LaTeX and cdlatex-mode
  349. ================================================================================
  350. preview LaTeX fragment C-c C-x C-l
  351. expand abbreviation (cdlatex-mode) TAB
  352. insert/modify math symbol (cdlatex-mode) ` / '
  353. ================================================================================
  354. Exporting and Publishing
  355. ================================================================================
  356. Exporting creates files with extensions .txt and .html in the current
  357. directory. Publishing puts the resulting file into some other place.
  358. export/publish dispatcher C-c C-e
  359. export visible part only C-c C-e v
  360. insert template of export options C-c C-x t
  361. toggle fixed width for entry or region C-c :
  362. --------------------------------------------------------------------------------
  363. Comments: Text not being exported
  364. --------------------------------------------------------------------------------
  365. Text before the first headline is not considered part of the document and is
  366. therefore never exported. Lines starting with # are comments and are not
  367. exported. Subtrees whose header starts with COMMENT are never exported.
  368. toggle COMMENT keyword on entry C-c ;
  369. ================================================================================
  370. Dynamic Blocks
  371. ================================================================================
  372. update dynamic block at point C-c C-x C-u
  373. update all dynamic blocks C-u C-c C-x C-u
  374. ================================================================================
  375. Notes
  376. ================================================================================
  377. [1] This is only a suggestion for a binding of this command. Choose you own
  378. key as shown under INSTALLATION.
  379. [2] After changing a #+KEYWORD or <<<target>>> line, press C-c C-c with the
  380. cursor still in the line to update.
  381. [3] Keybinding affected by org-CUA-compatibility.