diff options
author | 2021-09-24 01:14:05 -0700 | |
---|---|---|
committer | 2021-09-24 01:17:55 -0700 | |
commit | 581a5743737a4afa35ee5d8ad9fbcfe097f255d5 (patch) | |
tree | 4b26dfec28fc74f074819833d8ff567042fa039a /oni-org-roam.el | |
parent | 1a84c0251776e74bb4cacfc42ae58a2ef13fae04 (diff) | |
download | emacs-config-581a5743737a4afa35ee5d8ad9fbcfe097f255d5.tar.gz emacs-config-581a5743737a4afa35ee5d8ad9fbcfe097f255d5.zip |
[oni-org-roam] Move location of roam notes and update for v2
Diffstat (limited to 'oni-org-roam.el')
-rw-r--r-- | oni-org-roam.el | 47 |
1 files 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 <tom@ryuslash.org> ;; 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 |