summaryrefslogtreecommitdiff
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el23
1 files changed, 15 insertions, 8 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 1b23409..49c47a0 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -225,7 +225,9 @@
:init
(define-prefix-command 'thanos/notes-map)
:config
- (setf org-roam-directory "~/Notes")
+ (setf org-roam-directory "~/Notes"
+ org-roam-dailies-directory "daily/")
+
(org-roam-db-autosync-enable)
(setf org-roam-node-display-template
@@ -234,20 +236,25 @@
(setf org-roam-db-node-include-function
(lambda ()
(not (or (member "journal" (org-get-tags))
- (member "memorize" (org-get-tags))))))
+ (member "dailies" (org-get-tags))))))
;; Templates
(setf org-roam-capture-templates
'(("d" "default" plain
"%?"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t)
- ("l" "programming language" plain
- "* Characteristics\n\n- Family: %?\n- Inspired by: \n\n* Reference:\n\n"
- :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\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")
- :unnarrowed t)))
+ :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"))
+ ("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"))))
(defun org-roam-sync-notes ()
"Sync org-oram notes"
@@ -256,7 +263,7 @@
(default-directory org-roam-directory))
(message "Synching org-roam notes %s" org-roam-directory)
(unless git
- (error "Git not found, please install git"))
+ (error "Git not found, please install `git'"))
(unless (file-exists-p (expand-file-name ".git" gnosis-dir))
(message "Creating git repository")
(vc-create-repo 'Git))