Change org directory layout to use a single inbox.org file again

Set org-mobile to also add captured content to inbox.org

Remove emacs config from agenda files, todo add to refile targets though...
This commit is contained in:
Evie Litherland-Smith 2024-02-18 09:06:06 +00:00
parent 40da5f8700
commit d8993960a6

View file

@ -19,7 +19,11 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
org-refile-use-outline-path t org-refile-use-outline-path t
org-refile-allow-creating-parent-nodes t org-refile-allow-creating-parent-nodes t
org-refile-use-outline-path 'file org-refile-use-outline-path 'file
org-refile-targets '((nil :maxlevel . 2))) org-refile-targets '((nil . (:maxlevel . 2))))
;; Add emacs config files to `org-file-targets'
;; Need to make this a bit more flexible at some point
;; (add-to-list 'org-refile-targets (list ((locate-user-emacs-file "crafted.org") . (:maxlevel . 1))) t)
;; Visually indent org-mode files to a given header level ;; Visually indent org-mode files to a given header level
(add-hook 'org-mode-hook #'org-indent-mode) (add-hook 'org-mode-hook #'org-indent-mode)
@ -44,14 +48,14 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
#+begin_src emacs-lisp :results output silent #+begin_src emacs-lisp :results output silent
(setq org-capture-templates (setq org-capture-templates
'(("n" "Note" entry '(("n" "Note" entry
(file+headline "notes.org" "Inbox") (file+headline "inbox.org" "Note")
"* %?") "* %?")
("t" "Task" entry ("t" "Task" entry
(file+headline "tasks.org" "Inbox") (file+headline "inbox.org" "Task")
"* TODO %?" "* TODO %?"
:prepend t) :prepend t)
("r" "Reading List" entry ("r" "Reading List" entry
(file+headline "reading.org" "Inbox") (file+headline "inbox.org" "Reading List")
"* %?") "* %?")
("m" "Email Workflow") ("m" "Email Workflow")
("mf" "Follow Up" entry (file+olp "mail.org" "Follow Up") ("mf" "Follow Up" entry (file+olp "mail.org" "Follow Up")
@ -108,11 +112,9 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
(todo . " %-12:c") (todo . " %-12:c")
(tags . " %-12:c") (tags . " %-12:c")
(search . " %-12:c")) (search . " %-12:c"))
org-agenda-files (list (expand-file-name org-directory) org-agenda-files (list (expand-file-name org-directory)))
(locate-user-emacs-file "config")))
(add-to-list 'org-refile-targets '(org-agenda-files :maxlevel . 1) t) (add-to-list 'org-refile-targets '(org-agenda-files . (:maxlevel . 2)) t)
(add-to-list 'org-refile-targets '(org-agenda-files :tag . "inbox") t)
#+end_src #+end_src
** Mobile agenda integration ** Mobile agenda integration
@ -122,7 +124,7 @@ Better syncing to mobile, for use with [[https://github.com/orgzly-revived/orgzl
(setq org-mobile-directory "~/.orgmobile/" (setq org-mobile-directory "~/.orgmobile/"
org-mobile-agendas nil org-mobile-agendas nil
org-mobile-files '(org-agenda-files) org-mobile-files '(org-agenda-files)
org-mobile-inbox-for-pull (expand-file-name "from-mobile.org" org-directory) org-mobile-inbox-for-pull (expand-file-name "inbox.org" org-directory)
org-mobile-force-id-on-agenda-items nil) org-mobile-force-id-on-agenda-items nil)
(add-hook 'org-capture-finalize-hook #'org-mobile-push)) (add-hook 'org-capture-finalize-hook #'org-mobile-push))
#+end_src #+end_src