27 lines
661 B
EmacsLisp
27 lines
661 B
EmacsLisp
;; -*- lexical-binding: t; -*-
|
|
(require 'org-roam)
|
|
|
|
(setq org-roam-directory (file-truename "~/org"))
|
|
(setq org-roam-db-location
|
|
(expand-file-name "org-roam.db" user-emacs-directory))
|
|
|
|
(org-roam-db-autosync-mode)
|
|
|
|
(setq org-roam-capture-templates
|
|
'(("d" "default" plain
|
|
"%?"
|
|
:if-new (file+head
|
|
"docs/${slug}.org"
|
|
"#+title: ${title}\n#+category: Docs\n")
|
|
:unnarrowed t)
|
|
|
|
("n" "note" plain
|
|
"%?"
|
|
:if-new (file+head
|
|
"notes/${slug}.org"
|
|
"#+title: ${title}\n#+category: Notes\n")
|
|
:unnarrowed t)))
|
|
|
|
|
|
(provide 'init-org-r)
|