))
)
- ; Some initial languages we want org-babel to support
+#+END_SRC
+
+Some initial languages we want org-babel to support
+
+#+BEGIN_SRC emacs-lisp
+
(org-babel-do-load-languages
'org-babel-load-languages
'(
;; (setq html (org-export-as-html 3 nil nil 1))
+#+END_SRC
+
+Define some shortcuts to access major org files.
+
+#+BEGIN_SRC emacs-lisp
+
(global-set-key (kbd "C-c <f5>") '(lambda () (interactive) (find-file "~/org/notes.org")))
(find-file "~/org/emacs.org")
(find-file "~/.emacs.d/org/emacs.org"))))
+#+END_SRC
+
+Tag tasks with GTD contexts
+
+#+BEGIN_SRC emacs-lisp
+ (setq org-tag-alist '(("@work" . ?b)
+ ("@home" . ?h)
+ ("@errands" . ?e)
+ ("@coding" . ?c)
+ ("@phone" . ?p)
+ ("@reading" . ?r)
+ ("@computer" . ?l)
+ ))
+
+#+END_SRC
+
+#+BEGIN_SRC emacs-lisp
+
;; (setq org-clock-persist 'history)
(org-clock-persistence-insinuate)
(setq org-clock-persist t)
(setq org-capture-templates
'(("t" "todo" entry (file+headline "~/org/refile.org" "Tasks")
- "* TODO %?\n%U\n
+ "* TODO %^{Task}\n%U\n
%i\n
- %a")
+ %a\n
+ %?
+ ")
- ("m" "Meeting" entry (file "~/git/org/refile.org")
+ ("m" "Meeting" entry (file "~/org/refile.org")
"* MEETING with %? :MEETING:\n%U" :clock-in t :clock-resume t)
("n" "note" entry (file+headline "~/org/refile.org" "Note")
%i\n
%a")
+ ("w" "work todo" (file+headline "~/workorg/work.org" "todolist")
+ "* TODO %{Task}\n%U\n
+
+ %i\n
+ %a\n
+ %?"
+ )
+
("j" "Journal" entry (file+datetree "~/git/org/diary.org")
"* %?\n%U\n" :clock-in t :clock-resume t)
))
+#+END_SRC
+
+Define some handy link abbreviations
+
+#+BEGIN_SRC emacs-lisp
+
(setq org-link-abbrev-alist '(
("bing" . "http://www.bing.com/search?q=%sform=OSDSRC")
("cpan" . "http://search.cpan.org/search?query=%s&mode=all")
))
;; example: [[bmap:space needle]]
+#+END_SRC
+
+Some clock stuff.
+taken from http://doc.norang.ca/org-mode.org
+
+#+BEGIN_SRC emacs-lisp
- ;; taken from http://doc.norang.ca/org-mode.org :
;;
;; Resume clocking task when emacs is restarted