From 581a5743737a4afa35ee5d8ad9fbcfe097f255d5 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 24 Sep 2021 01:14:05 -0700 Subject: [PATCH] [oni-org-roam] Move location of roam notes and update for v2 --- oni-org-roam.el | 47 +++++++---------------------------------------- 1 file changed, 7 insertions(+), 40 deletions(-) diff --git a/oni-org-roam.el b/oni-org-roam.el index 10131cf..6333221 100644 --- a/oni-org-roam.el +++ b/oni-org-roam.el @@ -4,8 +4,8 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2021.0720.010732 -;; Package-Requires: (oni-org org-roam nroam) +;; Version: 2021.0924.011653 +;; Package-Requires: (oni-org org-roam) ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -31,45 +31,12 @@ (require 'org-roam) -(setq org-roam-directory (expand-file-name "~/documents/org/")) +(setq org-roam-completion-everywhere t) +(setq org-roam-directory (expand-file-name "~/documents/exocortex/")) +(mkdir org-roam-directory t) -(defvar oni-org-roam-file-name-format "%<%Y%m%d%H%M%S>-${slug}") - -(defvar oni-org-roam-book-head "#+title: ${title} - -- book :: -- chapter :: -- url :: -- tags :: - -") - -(add-to-list 'org-roam-capture-templates - `("B" "Bookclub book" plain (function org-roam-capture--get-point) - "* What do I want to say about this chapter? - -- %? - -* What did I learn from this chapter? - -- - -* What did I want to talk about in this chapter? - --" - :file-name ,oni-org-roam-file-name-format - :head ,oni-org-roam-book-head - :unnarrowed t)) - -(add-to-list 'org-roam-capture-templates - `("b" "Book" plain (function org-roam-capture--get-point) "%?" - :file-name ,oni-org-roam-file-name-format - :head ,oni-org-roam-book-head - :unnarrowed t)) - -(add-hook 'org-mode-hook 'nroam-setup-maybe) - -(org-roam-mode) +;;;###autoload +(setq org-roam-v2-ack t) (provide 'oni-org-roam) ;;; oni-org-roam.el ends here