aboutsummaryrefslogtreecommitdiffstats
path: root/oni-org-roam.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-09-24 01:14:05 -0700
committerGravatar Tom Willemse2021-09-24 01:17:55 -0700
commit581a5743737a4afa35ee5d8ad9fbcfe097f255d5 (patch)
tree4b26dfec28fc74f074819833d8ff567042fa039a /oni-org-roam.el
parent1a84c0251776e74bb4cacfc42ae58a2ef13fae04 (diff)
downloademacs-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.el47
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