From 69c5943091828464c5d4e10401add53bfa44b6b6 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Thu, 17 Nov 2016 21:06:55 -0500 Subject: Load org-contacts and org-agenda after org-capture --- init.el | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index 0d12c4d..958263a 100644 --- a/init.el +++ b/init.el @@ -239,6 +239,7 @@ (use-package org-agenda :defer t + :after org-capture :init (define-key km/global-org-map "a" #'org-agenda) :config (setq org-agenda-restore-windows-after-quit t @@ -278,18 +279,18 @@ (use-package org-contacts :defer t - :after org + :after org-capture :init (setq org-contacts-files '("~/notes/contacts.org")) - (after 'org-capture - (add-to-list 'org-capture-templates - '("a" "email address" entry - (file+headline "~/notes/contacts.org" "Inbox") - " + :config + (add-to-list 'org-capture-templates + '("a" "email address" entry + (file+headline "~/notes/contacts.org" "Inbox") + " ** %(org-contacts-template-name) :PROPERTIES: :EMAIL: %(org-contacts-template-email) -:END:")))) +:END:"))) (use-package km-org :defer t -- cgit v1.2.3