1
0
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
Daniele Tricoli 3062d20f77 Update last_modified field 2023-03-21 18:41:26 +01:00
Daniele Tricoli 380cfa4e3a Remove date in note files 2023-03-21 17:00:36 +01:00

View file

@ -129,6 +129,12 @@
(set-face-attribute (car face) nil :font "Fira Code" :weight 'medium :height (cdr face)))
(add-hook 'org-capture-mode-hook 'evil-insert-state)
(add-hook 'org-mode-hook (lambda ()
(setq-local time-stamp-active t
time-stamp-start "#\\+last_modified:[ \t]*"
time-stamp-end "$"
time-stamp-format "\[%Y-%02m-%02d %3a %02H:%02M\]")
(add-hook 'before-save-hook 'time-stamp nil 'local)))
; Tweak looks
(setq org-hide-emphasis-markers t
org-pretty-entities t
@ -168,11 +174,13 @@
(org-roam-capture-templates
'(("d" "default" plain
"%?"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:if-new (file+head "${slug}.org"
"#+title: ${title}\n#+date: %u\n#+last_modified: %u\n\n\n")
:unnarrowed t)
("p" "projects" plain
"%?\n* Tasks\n\n** TODO tasks go here!"
:if-new (file+head "projects/${slug}.org" "#+title: ${title}\n#+filetags: :has_todos:project:")
:if-new (file+head "projects/${slug}.org"
"#+title: ${title}\n#+filetags: :has_todos:project:\n#+date: %u\n#+last_modified: %u\n\n\n")
:unnarrowed t)))
:bind (("C-c n l" . org-roam-buffer-toggle)
("C-c n f" . org-roam-node-find)