[oni-org-roam] Move location of roam notes and update for v2
This commit is contained in:
parent
1a84c02517
commit
581a574373
1 changed files with 7 additions and 40 deletions
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2021.0720.010732
|
;; Version: 2021.0924.011653
|
||||||
;; Package-Requires: (oni-org org-roam nroam)
|
;; Package-Requires: (oni-org org-roam)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; 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
|
;; it under the terms of the GNU General Public License as published by
|
||||||
|
@ -31,45 +31,12 @@
|
||||||
|
|
||||||
(require 'org-roam)
|
(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}")
|
;;;###autoload
|
||||||
|
(setq org-roam-v2-ack t)
|
||||||
(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)
|
|
||||||
|
|
||||||
(provide 'oni-org-roam)
|
(provide 'oni-org-roam)
|
||||||
;;; oni-org-roam.el ends here
|
;;; oni-org-roam.el ends here
|
||||||
|
|
Loading…
Reference in a new issue