From 34a823ef794e269a5bc8f0632f3d239ea8ea0ab5 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 1 Feb 2022 11:35:00 +0100 Subject: [PATCH] config/doom: simplify timestamp format --- .config/doom/config.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/doom/config.el b/.config/doom/config.el index ff23d99..4d9e917 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -240,7 +240,7 @@ Version 2019-11-04 2021-02-16" (use-package! time-stamp :init (setq time-stamp-start "modified:[ ]+\\\\?" time-stamp-end "$" - time-stamp-format "[%Y-%m-%d %b %H:%M]") + time-stamp-format "[%Y-%m-%d]") :hook before-save) ;; Visuals @@ -370,8 +370,7 @@ Version 2019-11-04 2021-02-16" +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)))) - ; TODO time-stamp-format - (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-props (concat ":properties:\n:id: ${slug}\n:created: %" time-stamp-format "\n:modified: <>\n:end:\n")) (setq my/org-roam-capture-title "\n#+title: ${title}") (setq org-roam-capture-templates `(("d" "default" plain "%?" :target @@ -455,6 +454,8 @@ Version 2019-11-04 2021-02-16" (use-package! ox-context :after ox) +(use-package! ox-bb + :after ox) (use-package! ox-extra :after ox :config (ox-extras-activate '(ignore-headlines)) ;; use tag :ignore: to export content without headline