Slightly modified the org-roam dailies capture templates

This commit is contained in:
Random936 2023-10-12 15:51:18 -07:00
parent d854383917
commit 27bc9450ce

View File

@ -698,7 +698,7 @@ Org-roam is a plain-text knowledge management system. It brings some of Roam's m
:config :config
;; If you're using a vertical completion framework, you might want a more informative completion interface ;; If you're using a vertical completion framework, you might want a more informative completion interface
(setq org-roam-capture-templates (setq org-roam-capture-templates
'(("d" "default" plain "%?" '(("d" "Default" plain "%?"
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t) :unnarrowed t)
("p" "Project" plain ("p" "Project" plain
@ -710,10 +710,12 @@ Org-roam is a plain-text knowledge management system. It brings some of Roam's m
:target (file+head "todo/%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") :target (file+head "todo/%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t))) :unnarrowed t)))
(setq org-roam-dailies-capture-templates (setq org-roam-dailies-capture-templates
'(("d" "default" plain '(("d" "Default" entry "* %?" :target
(file "~/.emacs.d/capture-templates/daily.org") (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n"))
:target (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n") ("t" "Daily Todos" entry
:unnarrowed t))) (file "~/.emacs.d/capture-templates/daily.org")
:target (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n")
:unnarrowed t)))
(setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag))) (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag)))
(jm/org-roam-refresh-agenda-list) (jm/org-roam-refresh-agenda-list)
(org-roam-db-autosync-mode)) (org-roam-db-autosync-mode))