summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-11-10 17:31:01 -0800
committerFranck Cuny <franck@fcuny.net>2024-11-10 17:31:01 -0800
commit50626c5fce715afb0feb89c1fa39f298dce6602b (patch)
tree27e0517aa1ee2d628c5398862eef0aa97585eb1c
parentswitch to the default theme and dejavu for the fonts (diff)
downloademacs.d-50626c5fce715afb0feb89c1fa39f298dce6602b.tar.gz
a few more tweaks to org-mode configuration
-rw-r--r--config/init-notes.el15
1 files changed, 10 insertions, 5 deletions
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