add the old snippet md files
This commit is contained in:
parent
fc0dd204c7
commit
bcf8313a4b
110 changed files with 3048 additions and 0 deletions
34
old_snippets/org-roam-capture-templates.md
Normal file
34
old_snippets/org-roam-capture-templates.md
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
title: "org-roam capture templates"
|
||||
date: 2021-04-06T11:29:54+02:00
|
||||
draft: false
|
||||
snippet_types:
|
||||
- org
|
||||
- emacs
|
||||
---
|
||||
|
||||
Recently I've started using [org-roam](https://www.orgroam.com/), so far so
|
||||
good. Utilizing capture buffers I create notes for work and my reefing aquarium
|
||||
hobby. Adding the roam tags manually became a pain so now I've figured out a way to
|
||||
prefill them with capture templates.
|
||||
|
||||
```lisp
|
||||
(setq org-roam-capture-templates
|
||||
'(("r" "reef" plain (function org-roam-capture--get-point)
|
||||
"%?"
|
||||
:file-name "%<%Y%m%d%H%M%S>-${slug}"
|
||||
:head "#+title: ${title}\n#+roam_tags: reef"
|
||||
:unnarrowed t)
|
||||
("w" "work" plain (function org-roam-capture--get-point)
|
||||
"%?"
|
||||
:file-name "%<%Y%m%d%H%M%S>-${slug}"
|
||||
:head "#+title: ${title}\n#+roam_tags: work"
|
||||
:unnarrowed t)
|
||||
("d" "default" plain (function org-roam-capture--get-point)
|
||||
"%?"
|
||||
:file-name "%<%Y%m%d%H%M%S>-${slug}"
|
||||
:head "#+title: ${title}\n"
|
||||
:unnarrowed t)))
|
||||
```
|
||||
|
||||
source: https://www.reddit.com/r/orgmode/comments/lmlsdr/simple_question_re_orgroam_how_to_access_capture/
|
||||
Loading…
Add table
Add a link
Reference in a new issue