From fab82be10d42af242e5befa45d5d5b834fddae27 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Thu, 14 Jan 2021 12:46:31 -0500 Subject: [PATCH] Titleize capture template names --- README.org | 8 ++++---- init.el | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.org b/README.org index cb3dded..7933ed1 100644 --- a/README.org +++ b/README.org @@ -567,7 +567,7 @@ Configure the default capture template for new topics. #+begin_src emacs-lisp (setq org-roam-capture-templates - '(("d" "default" plain (function org-roam-capture--get-point) + '(("d" "Default" plain (function org-roam-capture--get-point) "%?" :file-name "${slug}" :head "#+TITLE: ${title}\n" @@ -578,7 +578,7 @@ Configure the default capture template for daily entries. #+begin_src emacs-lisp (setq org-roam-dailies-capture-templates - '(("d" "default" entry (function org-roam-capture--get-point) + '(("d" "Default" entry (function org-roam-capture--get-point) "* %?" :file-name "daily/%<%Y-%m-%d>" :head "#+TITLE: %<%Y-%m-%d>\n"))) @@ -616,7 +616,7 @@ Creaate a capture template for blog posts in the =posts= sub directory. #+begin_src emacs-lisp (add-to-list 'org-roam-capture-templates - '("b" "blog" plain (function org-roam-capture--get-point) + '("b" "Blogging" plain (function org-roam-capture--get-point) "%?" :file-name "posts/${slug}" :head "#+TITLE: ${title}\n#+HUGO_BASE_DIR: ../\n#+HUGO_SECTION: ./\n")) @@ -639,7 +639,7 @@ Create a capture template for presentations stored in the =slides= sub directory #+begin_src emacs-lisp (add-to-list 'org-roam-capture-templates - '("s" "slides" plain (function org-roam-capture--get-point) + '("p" "Presentation" plain (function org-roam-capture--get-point) "%?" :file-name "slides/${slug}" :head "#+TITLE: ${title}\n")) diff --git a/init.el b/init.el index 1c13bb6..f8f8a09 100644 --- a/init.el +++ b/init.el @@ -227,14 +227,14 @@ "rdy" '(org-roam-dailies-find-yesterday :which-key "Yesterday")) (setq org-roam-capture-templates - '(("d" "default" plain (function org-roam-capture--get-point) + '(("d" "Default" plain (function org-roam-capture--get-point) "%?" :file-name "${slug}" :head "#+TITLE: ${title}\n" :unnarrowed t))) (setq org-roam-dailies-capture-templates - '(("d" "default" entry (function org-roam-capture--get-point) + '(("d" "Default" entry (function org-roam-capture--get-point) "* %?" :file-name "daily/%<%Y-%m-%d>" :head "#+TITLE: %<%Y-%m-%d>\n"))) @@ -249,7 +249,7 @@ :after ox) (add-to-list 'org-roam-capture-templates - '("b" "blog" plain (function org-roam-capture--get-point) + '("b" "Blogging" plain (function org-roam-capture--get-point) "%?" :file-name "posts/${slug}" :head "#+TITLE: ${title}\n#+HUGO_BASE_DIR: ../\n#+HUGO_SECTION: ./\n")) @@ -259,7 +259,7 @@ :custom (org-reveal-root "https://cdn.jsdelivr.net/reveal.js/3.9.2/")) (add-to-list 'org-roam-capture-templates - '("s" "slides" plain (function org-roam-capture--get-point) + '("p" "Presentation" plain (function org-roam-capture--get-point) "%?" :file-name "slides/${slug}" :head "#+TITLE: ${title}\n"))