From a6e8397050a2afc59ce103d48b9e8896cf124bc4 Mon Sep 17 00:00:00 2001 From: rekado Date: Thu, 10 Nov 2016 20:49:40 +0100 Subject: org: Configure capture. --- init.org | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3