1
0
Fork 0

[oni-org-roam] Move location of roam notes and update for v2

This commit is contained in:
Tom Willemse 2021-09-24 01:14:05 -07:00
parent 1a84c02517
commit 581a574373
Signed by: ryuslash
GPG key ID: 7D5C407B435025C1

View file

@ -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