summaryrefslogtreecommitdiff
path: root/init/km-org.el
diff options
context:
space:
mode:
authorKyle Meyer <meyerkya@gmail.com>2013-06-06 01:40:57 -0400
committerKyle Meyer <meyerkya@gmail.com>2013-06-06 13:11:20 -0400
commit803e7d4562f1481c48c6371a3f7cf36298a28e2a (patch)
treeabc78efc401fa4b2c3e1f15eb111fbb444e28ed9 /init/km-org.el
parent08c53589c937a0a88c7fd76e78dd5b407ce8b08d (diff)
downloademacs.d-803e7d4562f1481c48c6371a3f7cf36298a28e2a.tar.gz
org capture templates for both link and no link
remove mutt org capture
Diffstat (limited to 'init/km-org.el')
-rw-r--r--init/km-org.el48
1 files changed, 22 insertions, 26 deletions
diff --git a/init/km-org.el b/init/km-org.el
index 6b74423..4060c5f 100644
--- a/init/km-org.el
+++ b/init/km-org.el
@@ -11,32 +11,28 @@
;; set up capture
(setq org-capture-templates
- '(("c" "cal" entry (file+headline "~/notes/calendar.org" "misc")
- "* %?")
- ("t" "Todo" entry (file+headline "~/notes/tasks.org" "To file")
- "* TODO %?")
- ("m" "mail todo" entry (file+headline "~/notes/tasks.org" "mail")
- "* TODO %?\nSource: %u, %c\n%i")
- ("d" "mail date" entry (file+headline "~/notes/calendar.org" "mail")
- "* %?\nSource: %u, %c\n%i")))
-
-;; for mutt capture
-(require 'org-protocol)
-;; ensure that emacsclient will show just the note to be edited when invoked
-;; from Mutt, and that it will shut down emacsclient once finished;
-;; fallback to legacy behavior when not invoked via org-protocol.
-(add-hook 'org-capture-mode-hook 'delete-other-windows)
-(setq my-org-protocol-flag nil)
-(defadvice org-capture-finalize (after delete-frame-at-end activate)
- "Delete frame at capture finalization"
- (progn (if my-org-protocol-flag (delete-frame))
- (setq my-org-protocol-flag nil)))
-(defadvice org-capture-kill (after delete-frame-at-end activate)
- "Delete frame at capture abort"
- (progn (if my-org-protocol-flag (delete-frame))
- (setq my-org-protocol-flag nil)))
-(defadvice org-protocol-capture (before set-org-protocol-flag activate)
- (setq my-org-protocol-flag t))
+ '(("t" "task" entry (file+headline "~/notes/tasks.org" "Inbox")
+ "* TODO %?\n%i")
+ ("d" "date" entry (file+headline "~/notes/calendar.org" "Inbox")
+ "* %?\n%i")
+ ("m" "misc" entry (file+headline "~/notes/misc.org" "Inbox")
+ "* %?\n%i")
+ ("b" "backburner" entry (file+headline "~/notes/backburner.org" "Inbox")
+ "* TODO %?\n%i")
+ ;; link counterparts
+ ("T" "task link" entry (file+headline "~/notes/tasks.org" "Inbox")
+ "* TODO %?\n%i\nLink: %a")
+ ("D" "date link" entry (file+headline "~/notes/calendar.org" "Inbox")
+ "* %?\n%i\nLink: %a")
+ ("M" "misc link" entry (file+headline "~/notes/misc.org" "Inbox")
+ "* %?\n%i\nLink: %a")
+ ("B" "backburner link" entry (file+headline "~/notes/backburner.org" "Inbox")
+ "* %?\n%i\nLink: %a")
+ ;; clipboard
+ ("x" "task clipboard" entry (file+headline "~/notes/tasks.org" "Inbox")
+ "* TODO %?\n%x")
+ ("X" "misc clipboard" entry (file+headline "~/notes/misc.org" "Inbox")
+ "* %?\n%x")))
(custom-set-variables
'(org-agenda-files (quote ("~/notes/calendar.org" "~/notes/tasks.org")))