From 50626c5fce715afb0feb89c1fa39f298dce6602b Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 10 Nov 2024 17:31:01 -0800 Subject: a few more tweaks to org-mode configuration --- config/init-notes.el | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'config/init-notes.el') diff --git a/config/init-notes.el b/config/init-notes.el index cec980d..0cdf5c6 100644 --- a/config/init-notes.el +++ b/config/init-notes.el @@ -21,7 +21,7 @@ :custom (org-directory "~/Documents/org") (org-default-notes-file (expand-file-name "notes.org" org-directory)) - (org-agenda-files '("tasks.org" "inbox.org" "notes.org" "contacts.org")) + (org-agenda-files '("inbox.org" "notes.org" "contacts.org" "hardware.org")) (org-startup-folded t) (org-startup-indented t) @@ -40,8 +40,9 @@ (org-log-into-drawer t) ;; org-refile options - (org-refile-targets - '((org-agenda-files :maxlevel . 4))) + ;;; the tag 'rt' means 'refile target'. I don't want this tag to be inherited, I set it explicitly. + (org-tags-exclude-from-inheritance '(rt)) + (org-refile-targets '((org-agenda-files :tag . "rt"))) (org-refile-allow-creating-parent-nodes (quote confirm)) (org-hide-emphasis-markers t) @@ -79,8 +80,12 @@ ("C-c c" . org-capture) :config (setq org-capture-templates - `(("t" "Tasks" entry (file "inbox.org") - "* TODO %?\n%U" :prepend t :empty-lines 0)))) + `(("n" "Note" entry (file "notes.org") + "* %?\n:PROPERTIES:\n:CREATED: %T\n:END:\n" :prepend t :empty-lines 1) + ("j" "Journal" entry (file+olp+datetree "notes.org" "journal") + "* %U %?\n:PROPERTIES:\n:CREATED: %T\n:END:\n" :prepend t :empty-lines 1 :tree-type month) + ("t" "Tasks" entry (file "inbox.org") + "* TODO %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n" :prepend t :empty-lines 1)))) (use-package org-agenda :ensure nil -- cgit 1.4.1