Karl Voit
2013-10-06 Sun
Table of Contents
1 Org-mode by Examples
.. 1.1 activating Org-mode
.. 1.2 Org-mode documentation
..... 1.2.1 In case of Org-mode documentation does not work
.. 1.3 text formatting syntax [(docu)]
..... 1.3.1 COMMENT: no exported either
.. 1.4 outlining ([docu])
..... 1.4.1 Creating
..... 1.4.2 Using
..... 1.4.3 encryption
..... 1.4.4 time stamps when taking notes ([docu])
.. 1.5 sparse trees ([docu])
.. 1.6 lists [(docu)]
..... 1.6.1 examples
..... 1.6.2 Simple
..... 1.6.3 Checklists
..... 1.6.4 Headings with TODO items
..... 1.6.5 Taking notes during a meeting or similar ([docu])
.. 1.7 drawers, properties, columns ([docu])
..... 1.7.1 NEXT Test with category property
.. 1.8 blocks ([docu])
..... 1.8.1 examples for non-source-code blocks
.. 1.9 links [(docu)]
..... 1.9.1 heading with PROPERTIES drawer containing ID
.. 1.10 states; TODO items ([docu])
..... 1.10.1 making dependencies explicit
..... 1.10.2 logging state changes ([docu])
..... 1.10.3 habits ([docu])
..... 1.10.4 priorities ([docu])
..... 1.10.5 breaking down in subtasks ([docu])
.. 1.11 tags [(docu)]
..... 1.11.1 example
..... 1.11.2 Tag groups ([docu])
.. 1.12 tables simple [(docu)]
.. 1.13 tables complex ([docu], [tutorial])
..... 1.13.1 referencing example with detailed explanation
.. 1.14 column view ([docu])
..... 1.14.1 example sub-item
..... 1.14.2 NEXT another example
.. 1.15 capture, refile, archive ([docu])
.. 1.16 attachments ([docu])
.. 1.17 dates & time ([docu])
.. 1.18 agenda ([docu])
.. 1.19 clocking time ([docu])
..... 1.19.1 example sub-hierarchy with report
.. 1.20 dynamic blocks with ELISP ([docu])
*key* *description*
M
Meta (often: Alt)
C
Ctrl
S
Shift
TAB
Tabulator
RET
Return, Enter, CRLF
UP
arrow: up
DOWN arrow: down
LEFT arrow: left
RIGHT arrow: right
SPC
Space
[http://orgmode.org/org.html#Activation]
[http://orgmode.org/worg/org-configs/org-customization-guide.html]
[Activation of Org-mode (external Tutorial)]:
(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
[docu] http://orgmode.org/org.html#Orgstruct-mode
1.2 Org-mode documentation
[http://orgmode.org/org.html] is up to date
`C-h i' (while being in an Org-mode file) gives you a local version
:-)
1.2.1 In case of Org-mode documentation does not work
For using Org-mode from a local git repository: add following to your
configuration:
*bold*
/italic/
_underline_
+strike through+
`code'
`commands'
[http://orgmode.org]
small example
foo bar
1.4 outlining ([docu])
[docu] http://orgmode.org/org.html#Visibility-cycling
[docu] http://orgmode.org/org.html#The-very-busy-C_002dc-C_002dc-key
1.4.1 Creating
also handy:
`C-c C-x ;' set countdown
1.5 sparse trees ([docu])
Filtering
`C-c /' Filter in *sparse trees*
`C-c / r' Filter using *Regular Expressions*
Moving in results
`M-g n' goto next match
`M-g o' goto previous match
[docu: property search]
`C-c a L' time sorted view of buffer
[docu: property search] http://orgmode.org/org.html#Property-searches
1.6 lists [(docu)]
1.6.1 examples
simple list:
Emacs
Org-mode
Lists
enumerate:
1. Emacs
2. Org-mode
3. Lists
check lists:
1.6.2 Simple
meta-data on headings
standard drawers :PROPERTIES: and :LOGBOOK:
ends with :END:
FIXXME
`C-c C-z' timed LOGBOOK entry
`:ID: label' define ID in PROPERTIES
hint: the property CATEGORY gets inherited and displayed on the
agenda:
1.7.1 NEXT Test with category property
:mytag:
example preserved
preserved
preserved
ignored
like SRC
block without a language
verse
preserved
preserved
preserved
recognized
quote
ng text
center
preserved
preserved
for quoti
[docu] http://orgmode.org/org.html#Easy-Templates
[docu] http://orgmode.org/org.html#Literal-examples
1.8.1 examples for non-source-code blocks
This is a test.
Space upfront
This is a test.
Demonstration of long lines within a non-source-code block like this or
that or something else which is quite good.
Space upfront
[id:foobar] *bold* /italic/
This is a test.
Demonstration of long lines within a non-source-code block
like this or that or something else which is quite good.
Space upfront
[id:foobar] *bold* /italic/
This is a test.
Demonstration of long lines within a non-source-code block like this
or that or something else which is quite good.
Space upfront
[id:foobar] *bold* /italic/
[id:foobar] See section
1.9 links [(docu)]
[[link]]
[[link][description]]
target:
# <<link>>
[id:myexampleid]
[file:~/.zshrc.local]
[http://orgmode.org]
[docu: list of external links]
custom links: contact:John Smith
[docu: link abbrevations]
`C-c
`C-c
`C-u
`C-c
foo bar
1.10 states; TODO items ([docu])
`C-c C-t'
`C-c / t'
`C-c a t'
`C-S-RET'
:ORDERED: t
:STYLE: habit
** TODO Shave
- State "DONE"
from "TODO"
- State "DONE"
from "TODO"
- State "DONE"
from "TODO"
- State "DONE"
from "TODO"
- State "DONE"
from "TODO"
- State "DONE"
from "TODO"
- State "DONE"
from "TODO"
- State "DONE"
from "TODO"
- State "DONE"
from "TODO"
- State "DONE"
from "TODO"
:PROPERTIES:
:STYLE:
habit
:END:
[2009-10-15
[2009-10-12
[2009-10-10
[2009-10-04
[2009-10-02
[2009-09-29
[2009-09-25
[2009-09-19
[2009-09-16
[2009-09-12
Thu]
Mon]
Sat]
Sun]
Fri]
Tue]
Fri]
Sat]
Wed]
Sat]
inherited tags
per-file definition of tags:
#+FILETAGS: :this:that:foo:
:tag:
searching for a group tag return matches of all member tags as well
example:
("@read" . nil)
(:grouptags . nil)
("@read_book" . nil)
("@read_ebook" . nil)
(:endgroup . nil)))
*US-Dollar*
*EUR*
1 0.76481836
*When* *What*
*USD* *EUR*
91.36
Joe
12
10
Alice
22
24
Bob
16
17
sum
50
51
Joe
10
12.0
11
-1.0
Alice
24
28.8
31
2.2
Bob
17
20.4
21
0.6
sum
51
1.8
[Org-hacks]
http://orgmode.org/worg/org-hacks.html#field-coordinates-in-formulas
1.13.1.2 row-based
:mytag1:
:mytag2:
`C-c
`C-c
`C-c
`C-u
c' *capture*
C-w' *refile*
C-x C-a' *archive*
C-u C-c c' *goto last capture*
;; ######################################################
'(
("x" "xlog")
)
)
Mon 19:14>)
`C-c !' insert inactive [2012-04-23 Mon] (with `C-u': [2012-04-23
Mon 19:14])
`S-RIGHT/LEFT/UP/DOWN' interactively change timestamp
`C-c <' *insert today*
`C-c C-o' open agenda for current timestamp
`C-c C-d' *insert DEADLINE*
`C-c C-s' *insert SCHEDULED*
`C-u C-c C-d' removing DEADLINE
`C-u C-c C-s' removing SCHEDULED
`C-c / d' sparse tree with deadlines
`C-c
`C-c
`C-c
`C-c
`m' mark
`u' unmark
`B' bulk action
`S' *scatter marked TODOs* over the next N days
clocking
`I' start
`O' stop
`X' cancel
`J' jump to running clock entry
attachments to TODO entries
`C-c C-a' *attachment menu*
`C-c C-a s' *set attachment folder*
`C-c C-a i' inherit attachment folder
`C-c C-a o' *open attachment*
1.19 clocking time ([docu])
`C-c
`C-c
`C-c
`C-c
`C-c
Headline
Time
def foo(argument):
[docu] http://orgmode.org/org.html#Easy-Templates
1.22 babel ([docu])
[http://orgmode.org/org.html#Languages]
2012-04-23: 35(!) languages
`C-c C-c' *execute code*
`C-c C-v j' insert header argument (menu)
*many* shortcuts for all kind of things
debugging
output control
navigation
session handling
`C-c C-v b' execute babel in buffer
`C-c C-v s' execute babel in subtree
1.22.1 babel simple ([doc])
1.22.1.1 shell
pwd
1.22.1.2 ruby
require 'date'
"This file was last evaluated on #{Date.today}"
1.22.1.3 python
return 42 + 7
1.22.1.4 ditaa
+---------+
| cBLU
|
|
|
|
+----+
|
|cPNK|
|
|
|
+----+----+
time = epoch
import datetime
strtime = str(time)
datetimestamp = datetime.datetime.utcfromtimestamp(int(strtime[:10]))
print datetimestamp.strftime('[%Y-%m-%d %a %H:%M:%S]')
ASCII/Latin-1/UTF-8 export
HTML
LaTeX
PDF
DocBook
OpenDocument Text
TaskJuggler
Freemind
XOXO
iCalendar
per file:
`C-c C-e t' (org-insert-export-options-template)
per heading:
;;; http://orgmode.org/org.html#MobileOrg
;;; directory where to store MobileOrg-files
(setq org-mobile-directory "~/share/all/org-mode/mobile-org/")
(setq org-directory "~/share/all/org-mode")
(setq org-mobile-inbox-for-pull "~/share/all/org-mode/inbox.org")
(setq org-mobile-force-id-on-agenda-items nil)
'(org-mobile-files (quote ("~/share/all/org-mode/contacts.org" "~/data/share/a
ll/org-mode/hardware.org" )))
per configuration
per file
per heading
2 Still Missing Topics
Footnotes