orgcard.txt 22 KB

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