Compare commits
2 commits
c082464016
...
3062d20f77
Author | SHA1 | Date | |
---|---|---|---|
Daniele Tricoli | 3062d20f77 | ||
Daniele Tricoli | 380cfa4e3a |
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue