From 8c49155a1cf2d748d4f691007ca9053a5a2eb650 Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Tue, 23 May 2023 10:33:39 +0200 Subject: [PATCH] ADD initial org-roam daillies config --- hosts/dell-5590/nixpkgs/configs/init.el | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/hosts/dell-5590/nixpkgs/configs/init.el b/hosts/dell-5590/nixpkgs/configs/init.el index 5935a8b..5c6742c 100644 --- a/hosts/dell-5590/nixpkgs/configs/init.el +++ b/hosts/dell-5590/nixpkgs/configs/init.el @@ -116,7 +116,22 @@ (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (setq org-agenda-files '("/home/alexandre/Nextcloud/PRIVE/13_Org/journal")) (setq org-directory (concat (getenv "HOME") "/Nextcloud/PRIVE/13_Org/notes")) - +(setq org-default-notes-file "~/Nextcloud/PRIVE/13_Org/backlog.org") +;;(setq org-capture-templates +;; '(("b" "Ajouter au backlog" entry +;; (file "~/Nextcloud/PRIVE/13_Org/backlog.org") +;; "* TODO %?" :empty-lines 1)) +(setq org-capture-templates + '(("t" "TODO" entry (file+datetree "~/Nextcloud/PRIVE/13_Org/backlog.org") + "* TODO %? %^G \n %U" :empty-lines 1) + ("s" "Scheduled TODO" entry (file+datetree "~/Nextcloud/PRIVE/13_Org/backlog.org") + "* TODO %? %^G \nSCHEDULED: %^t\n %U" :empty-lines 1) + ("l" "Link" entry (file "~/Nextcloud/PRIVE/13_Org/backlog.org") + "* TODO %a %? %^G\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))\n") + ("n" "Note" entry (file "~/Nextcloud/PRIVE/13_Org/backlog.org") + "* %? %^G\n%U" :empty-lines 1) + ("j" "Journal" entry (file+datetree "~/Nextcloud/PRIVE/13_Org/backlog.org") + "* %? %^G\nEntered on %U\n"))) ;; Org-Roam basic configuration (use-package org-roam @@ -140,6 +155,12 @@ ;; (:map org-roam-dailies-map ;; (("Y" . org-roam-dailies-capture-yesterday) ;; ("T" . org-roam-dailies-capture-tomorrow)))) +(setq org-roam-dailies-capture-templates + '(("d" "default" entry + "* %?" + ;;:target (file+datetree "journal-2023.org" year)))) + :target (file+head "journal-%<%Y>.org" "#+TITLE: %<%Y-%m-%d>\n")))) +;; :target (file+head "%<%Y-%m>.org" "#+TITLE: %<%Y-%m>\n")))) ;; one file org