From 708d9ef935b25bd215b66c501555c986ef7598fd Mon Sep 17 00:00:00 2001 From: Random936 Date: Sun, 5 Nov 2023 14:33:50 -0800 Subject: [PATCH] Moved capture templates to notes directory --- .emacs.d/capture-templates/Project.org | 8 ------- .emacs.d/capture-templates/Todo.org | 3 --- .emacs.d/capture-templates/daily.org | 31 -------------------------- .emacs.d/config.org | 19 ++++++++++------ 4 files changed, 12 insertions(+), 49 deletions(-) delete mode 100644 .emacs.d/capture-templates/Project.org delete mode 100644 .emacs.d/capture-templates/Todo.org delete mode 100644 .emacs.d/capture-templates/daily.org diff --git a/.emacs.d/capture-templates/Project.org b/.emacs.d/capture-templates/Project.org deleted file mode 100644 index 378a3fa..0000000 --- a/.emacs.d/capture-templates/Project.org +++ /dev/null @@ -1,8 +0,0 @@ -* Information - -Name: ${title} -Description: %^{Description} - -* Todo Items - -- [ ] %? diff --git a/.emacs.d/capture-templates/Todo.org b/.emacs.d/capture-templates/Todo.org deleted file mode 100644 index c4ac288..0000000 --- a/.emacs.d/capture-templates/Todo.org +++ /dev/null @@ -1,3 +0,0 @@ -* TODO ${title} - -%? diff --git a/.emacs.d/capture-templates/daily.org b/.emacs.d/capture-templates/daily.org deleted file mode 100644 index ff18ea1..0000000 --- a/.emacs.d/capture-templates/daily.org +++ /dev/null @@ -1,31 +0,0 @@ -* Daily Todo Items - -** Habits - -- [ ] Shave -- [ ] Shower -- [ ] Brush Teeth -- [ ] Wash Face - -** Gym Regimen - -Do 2-3 sets of each exercise listed below. - -- [ ] Rowing - Until tired. -- [ ] Squats - With heals until more flexible. -- [ ] Bench Press/Dumbbells -- [ ] Lat Pull-Downs - -** Tasks - -*High Priority* - -- [ ] - -*Medium Priority* - -- [ ] %? - -*Low Priority* - -- [ ] diff --git a/.emacs.d/config.org b/.emacs.d/config.org index de69436..c7c4304 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -681,13 +681,18 @@ Visual fill column is a package that allows you to center text and add borders t Org-roam is a plain-text knowledge management system. It brings some of Roam's more powerful features into the Org-mode ecosystem such as org-file linking, etc. #+begin_src emacs-lisp -(setq jm/org-roam-directory "~/Notes") +(setq jm/org-roam-directory (expand-file-name "~/Notes")) (unless (file-directory-p jm/org-roam-directory) (make-directory jm/org-roam-directory)) +(setq jm/org-roam-templates-directory + (expand-file-name "templates" jm/org-roam-directory)) + +(unless (file-directory-p jm/org-roam-templates-directory) + (make-directory jm/org-roam-templates-directory)) + (use-package org-roam :ensure t - :defer :custom (org-roam-directory jm/org-roam-directory) :bind (("C-c n l" . org-roam-buffer-toggle) @@ -702,22 +707,22 @@ Org-roam is a plain-text knowledge management system. It brings some of Roam's m :config ;; If you're using a vertical completion framework, you might want a more informative completion interface (setq org-roam-capture-templates - '(("d" "Default" plain "%?" + `(("d" "Default" plain "%?" :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") :unnarrowed t) ("p" "Project" plain - (file "~/.emacs.d/capture-templates/Project.org") + (file ,(expand-file-name "project.org" jm/org-roam-templates-directory)) :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") :unnarrowed t) ("t" "Todo Item" plain - (file "~/.emacs.d/capture-templates/Todo.org") + (file ,(expand-file-name "todo.org" jm/org-roam-templates-directory)) :target (file+head "todo/%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") :unnarrowed t))) (setq org-roam-dailies-capture-templates - '(("d" "Default" entry "* %?" :target + `(("d" "Default" entry "* %?" :target (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n")) ("t" "Daily Todos" entry - (file "~/.emacs.d/capture-templates/daily.org") + (file ,(expand-file-name "daily.org" jm/org-roam-templates-directory)) :target (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n") :unnarrowed t))) (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag)))