From d5ed12b4abf29e38c33a25de75aee912d154a9b6 Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Tue, 4 Apr 2023 08:54:13 -0400 Subject: 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?) --- .emacs.d/packages.el | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to '.emacs.d/packages.el') 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) -- cgit v1.2.3-54-g00ecf