trying a new capture template

This commit is contained in:
Kyle Isom 2025-04-28 07:19:01 -07:00
parent 4a336e0997
commit cda7afdc81
1 changed files with 8 additions and 3 deletions

11
org.el
View File

@ -48,6 +48,12 @@
(metacircular-publish-2) (metacircular-publish-2)
(metacircular-upload)) (metacircular-upload))
(defun get-current-org-date-timestamp ()
(format-time-string (car org-time-stamp-formats) (current-time)))
(defun get-current-org-datetime-timestamp ()
(format-time-string (cdr org-time-stamp-formats) (current-time)))
(use-package org-roam (use-package org-roam
:after org :after org
:custom :custom
@ -64,13 +70,13 @@
:unnarrowed t) :unnarrowed t)
("p" "project" plain "- Repo: [[%^{Url}][%^{title}]]\n\nOne sentence summary.\n\n** Tasks [/]" ("p" "project" plain "- Repo: [[%^{Url}][%^{title}]]\n\nOne sentence summary.\n\n** Tasks [/]"
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
"#+title: ${title}\n#+date: %U\n#+options: toc:nil num:nil\n#+filetags: project\n\n") "#+title: ${title}\n#+date: %(get-current-org-date-timestamp)\n#+options: toc:nil num:nil\n#+filetags: project\n\n")
:unnarrowed t))) :unnarrowed t)))
(org-roam-dailies-capture-templates (org-roam-dailies-capture-templates
'(("d" "default" entry '(("d" "default" entry
"* %?" "* %?"
:target (file+head "%<%Y-%m-%d>.org" :target (file+head "%<%Y-%m-%d>.org"
"#+title: %<%Y-%m-%d>\n")))) "#+title: %(get-current-org-date-timestamp)\n"))))
:bind (("C-c n l" . org-roam-buffer-toggle) :bind (("C-c n l" . org-roam-buffer-toggle)
("C-c n f" . org-roam-node-find) ("C-c n f" . org-roam-node-find)
("C-c n g" . org-roam-graph) ("C-c n g" . org-roam-graph)
@ -102,7 +108,6 @@
:target (file+head "%<%Y-%m-%d>.org" :target (file+head "%<%Y-%m-%d>.org"
"#+title: %<%Y-%m-%d>\n\n")))) "#+title: %<%Y-%m-%d>\n\n"))))
(defvar *org-remote-site* "/ssh:web.metacircular.net:/srv/www/metacircular/" (defvar *org-remote-site* "/ssh:web.metacircular.net:/srv/www/metacircular/"
"Where should org-mode files be published?") "Where should org-mode files be published?")
(require 'ox-publish) (require 'ox-publish)