update org-capture templates
This commit is contained in:
parent
92b2c7f208
commit
2b9c2d976d
46
.spacemacs
46
.spacemacs
|
@ -573,28 +573,38 @@ you should place your code here."
|
||||||
(let ((name (read-string "Filename: ")))
|
(let ((name (read-string "Filename: ")))
|
||||||
(expand-file-name (format "%s.org" name) "~/Documents/letters/") ))
|
(expand-file-name (format "%s.org" name) "~/Documents/letters/") ))
|
||||||
|
|
||||||
|
;; https://orgmode.org/manual/Template-elements.html
|
||||||
|
;; https://orgmode.org/manual/Template-expansion.html
|
||||||
(setq org-capture-templates
|
(setq org-capture-templates
|
||||||
'(("t" "todo list item" ; name
|
'(("t" "todo list item" entry
|
||||||
entry ; type
|
(file+olp+datetree "~/Documents/Org/tasks.org")
|
||||||
(file org-default-notes-file "Tasks")
|
"* TODO %?\n SCHEDULED: %^T"
|
||||||
"* TODO %?\n DEADLINE: %^T") ; template
|
:tree-type month
|
||||||
("T" "todo list item with source" ; name
|
)
|
||||||
entry ; type
|
("T" "todo list item with source" entry
|
||||||
(file org-default-notes-file "Tasks")
|
(file+olp+datetree "~/Documents/Org/tasks.org")
|
||||||
"* TODO %?\n %a \n DEADLINE: %^T \n %i") ; template
|
"* TODO %?\n %a \n SCHEDULED: %^T \n %^G \n"
|
||||||
|
:tree-type month
|
||||||
|
)
|
||||||
|
|
||||||
|
("r" "Todo research some website/software" entry
|
||||||
|
(file+olp+datetree "~/Documents/Org/tasks.org")
|
||||||
|
"* TODO %?\n SCHEDULED: %^T \n %^L \n"
|
||||||
|
:tree-type month
|
||||||
|
)
|
||||||
("l" "letter to Documents/letters/<datetime.org>"
|
("l" "letter to Documents/letters/<datetime.org>"
|
||||||
entry (file fschl/create-org-letter)
|
entry (file fschl/create-org-letter)
|
||||||
"* %? \n\n * \n\n ")
|
"* %? \n\n * \n\n "
|
||||||
|
)
|
||||||
|
("m" "Schedule a meeting" entry
|
||||||
|
(file+headline "~/Documents/Org/tasks.org")
|
||||||
|
"* MEETING %?\n SCHEDULED: %^T\n %a"
|
||||||
|
)
|
||||||
|
|
||||||
("m" "Schedule a meeting"
|
("p" "Schedule a phone call" entry
|
||||||
entry
|
(file+headline "~/Documents/Org/tasks.org")
|
||||||
(file+headline org-default-notes-file "Tasks")
|
"* PHONE %?\n SCHEDULED: %^T\\n %a"
|
||||||
"* MEETING %?\n SCHEDULED: %^T\n %a") ; template
|
)
|
||||||
|
|
||||||
("p" "Schedule a phone call"
|
|
||||||
entry
|
|
||||||
(file org-default-notes-file "Tasks")
|
|
||||||
"* PHONE %?\n SCHEDULED: %^T\\n %a")
|
|
||||||
|
|
||||||
("a" "Articles: keep notes of online articles"
|
("a" "Articles: keep notes of online articles"
|
||||||
entry
|
entry
|
||||||
|
|
Loading…
Reference in New Issue