diff options
author | Steph Enders <steph@senders.io> | 2023-04-04 08:54:13 -0400 |
---|---|---|
committer | Steph Enders <steph@senders.io> | 2023-04-04 08:54:13 -0400 |
commit | d5ed12b4abf29e38c33a25de75aee912d154a9b6 (patch) | |
tree | ee01421834db62920f94646fb98d53cf1fd273b4 | |
parent | 7d84ab503b4a56ce82ccab0d66255689359acdf2 (diff) |
Add additional org-roam templates and keybinds
Expand out some of the templates for org-roam:
m - Map of Contents (MOC)
n - Note
p - Person (specific type of MOC ? can this be a tag?)
-rw-r--r-- | .emacs.d/packages.el | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/.emacs.d/packages.el b/.emacs.d/packages.el index fdf53b4..e4c932c 100644 --- a/.emacs.d/packages.el +++ b/.emacs.d/packages.el @@ -28,11 +28,25 @@ :unnarrowed t) ("w" "doc" plain "\n\n* ${title} *\n\n[[%^{Url}][${title} Link]]\n\n** TODO Review Doc DEADLINE: %^t **\n\n" - :if-new (file+head "%<%Y%m%d%H%M%S>-docs-${slug}.org" "#+title: ${title}\n") - :unarrowed t))) + :if-new (file+head "%<%Y%m%d%H%M%S>-docs-${slug}.org" "#+title: ${title}\n#+date:%U\n") + :unarrowed t) + ("m" "MOC" plain + "%?" + :if-new (file+head "moc-${slug}.org" "#+title: ${title}\n#+filetags: :MOC:") + :unarrowed t) + ("n" "note" plain "\n\n%?" + :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+date: %U\n#+filetags: :notes:") + :unarrowed t) + ("p" "person" plain "\n\n$?" + :if-new (file+head "person-${slug}.org" "#+title: ${title}\n#+date: %U\n#+filetags: :person:") + :unarrowed 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 p t" . org-roam-tag-add) + ("C-c p r" . org-roam-ref-add) + ("C-c p a" . org-roam-alias-add) :map org-mode-map ("C-M-i" . completion-at-point) :map org-roam-dailies-map) |