Skip to content

Commit

Permalink
(emacs) fix org-roam templates
Browse files Browse the repository at this point in the history
  • Loading branch information
d12frosted committed May 10, 2021
1 parent 87d23cd commit 57e6fe4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
3 changes: 2 additions & 1 deletion emacs/lisp/init-vulpea.el
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@
:init
(setq
org-roam-directory vulpea-directory
org-roam-dailies-directory "journal/"
org-roam-dailies-directory (expand-file-name
"journal/" org-roam-directory)
org-roam-db-location (expand-file-name
(if vulpea-test-mode
"org-roam-test.db"
Expand Down
20 changes: 9 additions & 11 deletions emacs/lisp/lib-vulpea-capture.el
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ It is relative to `vulpea-directory', unless it is absolute.")
:clock-in t
:clock-resume t))
org-roam-capture-templates
'(("d" "default" plain
#'org-roam-capture--get-point
"%?"
:file-name "%(vulpea-subdir-select)/%<%Y%m%d%H%M%S>-${slug}"
:head "#+TITLE: ${title}\n\n"
'(("d" "default" plain "%?"
:if-new (file+head
"%(vulpea-subdir-select)/%<%Y%m%d%H%M%S>-${slug}"
"#+title: ${title}\n")
:unnarrowed t))
org-roam-dailies-capture-templates
'(("d" "default" entry
#'org-roam-capture--get-point
"\n\n* %<%H:%M>\n\n%?"
:empty-lines 1
:file-name "journal/%<%Y-%m-%d>"
:head "#+TITLE: %<%A, %d %B %Y>\n\n"))))
`(("d" "default" entry
"* %<%H:%M>\n\n%?"
:if-new (file+head
,(expand-file-name "%<%Y-%m-%d>.org" org-roam-dailies-directory)
"#+title: %<%A, %d %B %Y>\n")))))

;;;###autoload
(defun vulpea-capture-task ()
Expand Down

0 comments on commit 57e6fe4

Please sign in to comment.