orgcard.txt 22 KB

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