config/doom: simplify timestamp format

This commit is contained in:
xeruf 2022-02-01 11:35:00 +01:00
parent 30b4016bf8
commit 34a823ef79
1 changed files with 4 additions and 3 deletions

View File

@ -240,7 +240,7 @@ Version 2019-11-04 2021-02-16"
(use-package! time-stamp (use-package! time-stamp
:init (setq time-stamp-start "modified:[ ]+\\\\?" :init (setq time-stamp-start "modified:[ ]+\\\\?"
time-stamp-end "$" time-stamp-end "$"
time-stamp-format "[%Y-%m-%d %b %H:%M]") time-stamp-format "[%Y-%m-%d]")
:hook before-save) :hook before-save)
;; Visuals ;; Visuals
@ -370,8 +370,7 @@ Version 2019-11-04 2021-02-16"
+org-roam-open-buffer-on-find-file nil) +org-roam-open-buffer-on-find-file nil)
(add-hook 'org-capture-after-finalize-hook (lambda () (if (org-roam-file-p) (org-roam-db-sync)))) (add-hook 'org-capture-after-finalize-hook (lambda () (if (org-roam-file-p) (org-roam-db-sync))))
; TODO time-stamp-format (setq my/org-roam-capture-props (concat ":properties:\n:id: ${slug}\n:created: %" time-stamp-format "\n:modified: <>\n:end:\n"))
(setq my/org-roam-capture-props ":properties:\n:id: ${slug}\n:created: %[%Y-%m-%d %b %H:%M]\n:modified: <>\n:end:\n")
(setq my/org-roam-capture-title "\n#+title: ${title}") (setq my/org-roam-capture-title "\n#+title: ${title}")
(setq org-roam-capture-templates (setq org-roam-capture-templates
`(("d" "default" plain "%?" :target `(("d" "default" plain "%?" :target
@ -455,6 +454,8 @@ Version 2019-11-04 2021-02-16"
(use-package! ox-context (use-package! ox-context
:after ox) :after ox)
(use-package! ox-bb
:after ox)
(use-package! ox-extra (use-package! ox-extra
:after ox :after ox
:config (ox-extras-activate '(ignore-headlines)) ;; use tag :ignore: to export content without headline :config (ox-extras-activate '(ignore-headlines)) ;; use tag :ignore: to export content without headline