Rephrase the link to MobileOrg for Android
[Worg.git] / org-configs / org-config-examples.org
blobc0991f954e96902312cb86650d8a31da082bb11d
1 #+OPTIONS:    H:3 num:nil toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t TeX:t LaTeX:t skip:nil d:(HIDE) tags:not-in-toc
2 #+STARTUP:    align fold nodlcheck hidestars oddeven lognotestate
3 #+SEQ_TODO:   TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
4 #+TAGS:       Write(w) Update(u) Fix(f) Check(c)
5 #+TITLE:      Org configuration(s)
6 #+AUTHOR:     Worg people
7 #+EMAIL:      bzg AT altern DOT org
8 #+LANGUAGE:   en
9 #+PRIORITIES: A C B
10 #+CATEGORY:   worg
12 # This file is the default header for new Org files in Worg.  Feel free
13 # to tailor it to your needs.
15 * GTD setups
17 - David O'Toole [[http://orgmode.org/worg/code/elisp/dto-org-gtd.el][GTD configuration file]]
19 * General Configuration/Customization
21 ** Some useful keybindings
23 Here is a subset of my personal org-mode key-bindings that others may
24 find useful.
26 # please anyone else should feel free to edit/change/remove parts of
27 # this example
29 #+begin_example
30   (add-hook 'org-mode-hook (lambda ()
31                              (local-set-key "\M-n" 'outline-next-visible-heading)
32                              (local-set-key "\M-p" 'outline-previous-visible-heading)
33                              ;; table
34                              (local-set-key "\M-\C-w" 'org-table-copy-region)
35                              (local-set-key "\M-\C-y" 'org-table-paste-rectangle)
36                              (local-set-key "\M-\C-l" 'org-table-sort-lines)
37                              ;; display images
38                              (local-set-key "\M-I" 'org-toggle-iimage-in-org)
39                              ;; fix tab
40                              (local-set-key "\C-y" 'yank)
41                              ;; yasnippet (allow yasnippet to do it's thing in org files)
42                              (org-set-local 'yas/trigger-key [tab])
43                              (define-key yas/keymap [tab] 'yas/next-field-group)))
44 #+end_example
46 References and Explanations of the above:
47 - see [[* iimage in org (display images in org files)]] for an explanation
48   of the =org-toggle-iimage-in-org= function (inline images in
49   org-mode files).
50 - [[http://code.google.com/p/yasnippet/][yasnippet]] is a tools for snippet expansion in Emacs.  Since Org-Mode
51   is descendant of text-mode, all text snippets will work inside of
52   org files, I also use the following to simplify the creation of
53   example and source code blocks.
55 block
56 #+begin_example
57 #name : #+begin_...#+end_
58 # --
59 #+begin_$1 $2
61 #+end_$1
62 #+end_example
65 ** iimage in org (display images in org files)
66 Thanks to many on the mailing list for this great addition to
67 Org-Mode.  See [[http://www.netlaputa.ne.jp/~kose/Emacs/iimage.html][iimage]] for information on iimage-minor-mode.
69 #+begin_example
70 (add-to-list 'iimage-mode-image-regex-alist
71              (cons (concat "\\[\\[file:\\(~?" iimage-mode-image-filename-regex
72                            "\\)\\]")  1))
74 (defun org-toggle-iimage-in-org ()
75   "display images in your org file"
76   (interactive)
77   (if (face-underline-p 'org-link)
78       (set-face-underline-p 'org-link nil)
79       (set-face-underline-p 'org-link t))
80   (iimage-mode))
81 #+end_example