-
Notifications
You must be signed in to change notification settings - Fork 0
/
roam-init.el
34 lines (34 loc) · 1.18 KB
/
roam-init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(use-package org-roam
:ensure t
:init
(setq org-roam-v2-ack t)
:custom
(org-roam-directory roam-home)
(org-roam-completion-everywhere t)
(org-roam-capture-templates
'(("d" "default" plain
"%?"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t)
("p" "project" plain
(file "~/.emacs.d/roam-templates/project.org")
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+filetags: project")
:unnarrowed t)
("t" "tool" plain
(file "~/.emacs.d/roam-templates/tool.org")
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+filetags: tool")
:unnarrowed t)
("s" "staff" plain
(file "~/.emacs.d/roam-templates/staff.org")
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+filetags: person staff")
:unnarrowed t))
)
:bind (("C-c n l" . org-roam-buffer-toggle)
("C-c n f" . org-roam-node-find)
("C-c n i" . org-roam-node-insert)
("C-c n t" . org-roam-tag-add)
("C-c n a" . org-roam-alias-add)
:map org-mode-map
("C-M-i" . completion-at-point))
:config
(org-roam-setup))