summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2016-11-10 20:49:40 +0100
committerrekado <rekado@elephly.net>2016-11-10 20:49:40 +0100
commita6e8397050a2afc59ce103d48b9e8896cf124bc4 (patch)
tree9281773e7568d5842325c8a54b2f98ec0959fdd5
parent01b0c31cd507125ba371b0739b80c0562c779440 (diff)
org: Configure capture.
-rw-r--r--init.org15
1 files changed, 14 insertions, 1 deletions
diff --git a/init.org b/init.org
index 40584a1..38921c8 100644
--- a/init.org
+++ b/init.org
@@ -201,7 +201,6 @@ This is my org mode configuration. Document it.
;; TODO: make these available in org-mode only
(global-set-key (kbd "C-c o s") 'org-schedule)
-(global-set-key (kbd "C-c o c") 'org-capture)
(setq org-log-done t)
(setq org-return-follows-link t)
@@ -210,6 +209,7 @@ This is my org mode configuration. Document it.
(setq org-agenda-files (mapcar (lambda (x) (concat org-directory x))
(list "/master.org"
"/work.org"
+ "/email.org"
"/study.org"
"/home.org")))
(setq org-default-notes-file (concat org-directory "/notes.org"))
@@ -391,6 +391,19 @@ not very efficient and maybe should be implemented using overlays."
(add-hook 'org-mode-hook #'my/org-prettify-symbols)
#+END_SRC
+I use the capture feature to quickly record ideas and tasks, and to create links to emails that I need to work on. This is much better than just leaving these emails in my Inbox.
+
+#+BEGIN_SRC elisp
+(global-set-key (kbd "C-c o c") 'org-capture)
+(setq org-capture-templates
+ '(("t" "Task" entry
+ (file+headline (concat org-directory "/home.org") "Tasks")
+ "* %?\n %i\n %a")
+ ("m" "Email" entry
+ (file+headline (concat org-directory "/email.org") "Email")
+ "* Reply to %:fromname%? :email:\n [%:date]\n To: %:to\n %a")))
+#+END_SRC
+
All of this should be loaded lazily.
#+BEGIN_SRC elisp :noweb-ref org-mode-lazy