[Org] Slight capturing and agenda adjustments

This commit is contained in:
Marcel Kapfer 2022-10-13 20:26:05 +02:00
parent af2eed664c
commit 558a5a9f5e
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -1099,10 +1099,16 @@ Forbid closing of todos with open subtasks.
Set org agenda files.
#+begin_src emacs-lisp
(setq org-agenda-files (list "~/org/")
org-agenda-text-search-extra-files (list "~/org/archive/"
"~/org/roam/"
"~/org/articles/"))
(setq org-agenda-files
(list
"~/org/"
"~/org/personal-computer/"
"~/org/projects/"))
(setq org-agenda-text-search-extra-files
(list "~/org/archive/"
"~/org/roam/"
"~/org/articles/"))
#+end_src
Open org-agenda in current window.
@ -1116,19 +1122,15 @@ Define org-capture templates.
#+begin_src emacs-lisp
(setq org-capture-templates
'(("t" "Normal task" entry (file "~/org/inbox.org")
"* TODO %?\n :PROPERTIES:\n :CREATED: %U\n :END:")
("w" "Work task" entry (file "~/org/work.inbox.org")
"* TODO %?\n :PROPERTIES:\n :CREATED: %U\n :END:")
("e" "E-Mail needing a reply" entry (file "~/org/emails.org")
"* TODO Reply: %a\n :PROPERTIES:\n :CREATED: %U\n :END:"
"* TODO %?\n:PROPERTIES:\n:CREATED: %U\n:END:")
("e" "E-Mail needing a reply" entry (file "~/org/inbox.org")
"* TODO Reply: %a\n:PROPERTIES:\n:CREATED: %U\n:END:"
:immediate-finish t)
("p" "org-protocol-capture" entry (file "~/org/inbox.org")
"* TODO [[%:link][%:description]]\n :PROPERTIES:\n :CREATED: %U\n :END:\n\n %i"
"* TODO [[%:link][%:description]]\n:PROPERTIES:\n:CREATED: %U\n:END:\n\n%i"
:immediate-finish t)
("s" "Event" entry (file "~/org/events.org")
"* SOMEDAY %? %^G\n SCHEDULED: %^T\n :PROPERTIES:\n :CREATED: %U\n :END:")
("r" "Reading todo" entry (file "~/org/reading.org")
"* TODO %^L %^G\n :PROPERTIES:\n :CREATED: %U\n :END:\n")))
("r" "Reading todo" entry (file "~/org/read-review.org")
"* TODO %^L %^G\n:PROPERTIES:\n:CREATED: %U\n:END:\n")))
#+end_src
Configure refiling TODOs.
@ -1903,7 +1905,7 @@ Using this function I can now define a org-capture template for my purpose.
#+begin_src emacs-lisp
(add-to-list 'org-capture-templates
'("a" "RSS Article" entry (file "~/org/reading.org")
'("a" "RSS Article" entry (file "~/org/read-review.org")
"* TODO %(elfeed-feed-title (mmk2410/org-capture-elfeed-entry-props 'elfeed-entry-feed)): [[%(mmk2410/org-capture-elfeed-entry-props 'elfeed-entry-link)][%(mmk2410/org-capture-elfeed-entry-props 'elfeed-entry-title)]]\n :PROPERTIES:\n :CREATED: %U\n :END:\n"
:immediate-finish t))
#+end_src