more improvements to capture structure

Yep, I couldn't resist this rhyme...
This commit is contained in:
Grigory Shipunov 2020-11-18 01:21:53 +01:00
parent 8d1cd0f60c
commit af9317f522
No known key found for this signature in database
GPG key ID: 77BB6C3E4771EE7C

10
init.el
View file

@ -197,10 +197,10 @@
;; templates
(setq org-capture-templates
'(("t" "TODO" entry
(file+headline "~/nextcloud/org/inbox.org" "Tasks")
(file+headline "~/nextcloud/org/inbox.org" "tasks-inbox")
"** TODO %?\n %i")
("T" "TODO+file" entry
(file+headline "~/nextcloud/org/inbox.org" "Tasks")
(file+headline "~/nextcloud/org/inbox.org" "tasks-inbox")
"** TODO %?\n %i\n %a")
("n" "note" entry
(file+headline "~/nextcloud/org/inbox.org" "Notes")
@ -212,9 +212,9 @@
(file+datetree "~/nextcloud/org/log.org.gpg")
"**** %U %?\n")
("b" "Bookmark" entry
(file+headline "~/nextcloud/org/bookmarks.org" "Inbox")
"** [[%x][%?]\n:PROPERTIES:\n:CREATED: %U\n:END:\n\n")))
;; autosave advices for agenda and org-capture
(file+headline "~/nextcloud/org/inbox.org" "bookmarks-inbox")
"** TODO [[%x]]%?\n:PROPERTIES:\n:CREATED: %U\n:END:\n[[%x]]\n")))
;; autosave advises for agenda and org-capture
(advice-add 'org-agenda-quit :before 'org-save-all-org-buffers)
(advice-add 'org-capture-finalize :after 'org-save-all-org-buffers)