summaryrefslogtreecommitdiff
path: root/.config/emacs/init.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-10-30 09:52:19 +0200
committerThanos Apollo <[email protected]>2024-10-30 09:52:44 +0200
commit0067e700859f11348966c337703b55820da13393 (patch)
tree6e26ddad513971af805d3ce44a9abf5bf1d9577c /.config/emacs/init.el
parent604248d608de0a89b63f580477428fd75a01f1b6 (diff)
emacs: org-roam: Update templates & use custom repo.
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r--.config/emacs/init.el20
1 files changed, 13 insertions, 7 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 183ccc3..1f02b65 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -343,7 +343,7 @@
(make-directory "~/Notes"))
(use-package org-roam
- :straight nil
+ :straight (org-roam :local-repo "~/Dev/emacs-lisp/org-roam")
:defer t
:init
(define-prefix-command 'thanos/notes-map)
@@ -364,25 +364,31 @@
(setf org-roam-capture-templates
'(("d" "default" plain
"%?"
- :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+startup: overview\n")
+ :if-new
+ (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+startup: overview\n")
:unnarrowed t)
("p" "MUS" plain "* Goals\n\n%?\n\n* Tasks\n\n** TODO Add initial tasks\n\n* Dates\n\n"
- :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+filetags: MUS")
+ :if-new
+ (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+filetags: MUS")
:unnarrowed t))
org-roam-dailies-capture-templates
'(("d" "default" entry
"* %?"
:target (file+head "%<%Y-%m-%d>.org"
- "#+title: %<%Y-%m-%d>\n#+filetags: :journal:\n"))
+ "#+title: %<%Y-%m-%d>\n#+filetags: :journal:dailies:\n"))
("j" "journal" plain
- "\n* Daily Notes\n\n* Goals\n+ []\n\n* Extras %?"
+ "* %?"
:target (file+head "%<%Y-%m-%d>.org"
- "#+title: %<%Y-%m-%d>\n#+filetags: :journal:\n"))))
+ "#+title: %<%Y-%m-%d>\n#+filetags: :journal:dailies:\n
+* Daily Notes\n\n* Goals\n+ []\n\n* Extras"))))
(defun org-roam-ref-add-book ()
"Insert org-link from Library."
(interactive)
- (let ((book (format "file:%s" (read-file-name "Book: " (if is-zeus "/hdd/Library/" "~/Library/")))))
+ (let ((book
+ (format
+ "file:%s"
+ (read-file-name "Book: " (if is-zeus "/hdd/Library/" "~/Library/")))))
book))
(defun org-roam-sync-notes ()