From f380fd32146e840ebfeb516f0a0047614051d77d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 3 May 2019 07:19:57 -0700 Subject: [emacs] org mode templates --- emacs.d/custom/fcuny-org.el | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/emacs.d/custom/fcuny-org.el b/emacs.d/custom/fcuny-org.el index e967e7f..65c7a1f 100644 --- a/emacs.d/custom/fcuny-org.el +++ b/emacs.d/custom/fcuny-org.el @@ -71,52 +71,47 @@ (org-capture-templates `(;; templates for general references, links, etc. They can be relevant for both work and personal learning. - ("b" "Bookmark" entry - (file+headline ,(concat org-directory "/notes.org") "Bookmark") - "* TODO %^{LINK}\n%?\n:PROPERTIES:\n:CREATED: %U\n:END:\n" - :empty-lines 1) ("r" "Reference" entry (file+headline ,(concat org-directory "/notes.org") "Reference") - "* %^{TITLE}\n%?\n:PROPERTIES:\n:CREATED: %U\n:END:\n" - :empty-lines 1) + "* %^{TITLE}\n%?") ("e" "Event" entry (file+headline ,(concat org-directory "/notes.org") "Event") - "* %^{EVENT}\n%?\n:PROPERTIES:\n:CREATED: %U\n:END:\n" - :empty-lines 1) + "* %^{EVENT}\n%?") ;; templates for personal things only. ("t" "Personal Todo" entry (file+headline ,(concat org-directory "/personal/tasks.org") "New") - "* TODO %?\n") + "* TODO [#4] %?\n") ("j" "Personal Journal" entry (file+olp+datetree ,(concat org-directory "/personal/journal.org")) "* %U %?\n" - :empty-lines 1 :tree-type week) + :tree-type week) ;; personal weekly review ("w" "Weekly Review" entry (file+olp+datetree ,(concat org-directory "/personal/reviews.org")) (file ,(concat fcuny/path-emacs-etc "/weekly_review.org")) - :tree-type week) + :tree-type week :jump-to-captured t) ;; templates for work related things only. ("T" "Work Todo" entry (file+headline ,(concat org-directory "/twitter/tasks.org") "New") - "* TODO %?\n") + "* TODO [#4] %?\n") ("J" "Work Journal" entry (file+olp+datetree ,(concat org-directory "/twitter/journal.org")) "* %U %?\n" - :empty-lines 1 :tree-type week) + :tree-type week) + ("m" "Meeting (inbox)" entry + (file ,(concat org-directory "/twitter/inbox.org")) + "* %U %^{TITLE}\n%?") ("M" "Meeting" entry (file+olp+datetree ,(concat org-directory "/twitter/meetings.org")) - "* %U %^{TITLE}\n%?\n" - :empty-lines 1) + "* %U %^{TITLE}\n%?") ;; refile! ("I" "Inbox, refile later" entry (file ,(concat org-directory "/inbox.org")) - "\n* %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n" - :empty-lines 1)))) + "* %?")))) (use-package htmlize :ensure t) -- cgit 1.4.1