Emacs.. Capture.

This commit is contained in:
2021-09-24 01:39:22 +09:00
parent b3d223a65e
commit 011bbc874d

View File

@ -809,6 +809,24 @@ https://emacs.stackexchange.com/a/30691
(org-roam-directory "~/Roam/NewStart")
(org-roam-completion-everywhere t)
(org-roam-completion-system 'ivy)
;; Org capture
(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 "* Goals\n\n%?\n\n* Tasks\n\n** TODO Add initial tasks\n\n* Dates\n\n"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+filetags: Project")
:unnarrowed t)
("b" "book notes" plain (file "~/Roam/Templates/TestTemplate.org")
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t)
("l" "programming language" plain
"* Characteristics\n\n- Family: %?\n- Inspired by: \n\n* Reference:\n\n"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t)))
:bind
(:map org-mode-map
("C-M-i" . completion-at-point))