Erweiterung Templates und Anpassung Init-Files
This commit is contained in:
33
lisp/init-org-roam.el
Normal file
33
lisp/init-org-roam.el
Normal file
@@ -0,0 +1,33 @@
|
||||
;; -*- lexical-binding: t; -*-
|
||||
(require 'org-roam)
|
||||
|
||||
(setq org-roam-directory (file-truename "~/org"))
|
||||
(setq org-roam-dailies-directory "notes/")
|
||||
(setq org-roam-db-location
|
||||
(expand-file-name "org-roam.db" user-emacs-directory))
|
||||
|
||||
(org-roam-db-autosync-mode)
|
||||
|
||||
;; (setq org-roam-capture-templates
|
||||
;; '(("d" "default" plain
|
||||
;; "%?"
|
||||
;; :if-new (file+head
|
||||
;; "docs/${slug}.org"
|
||||
;; "#+title: ${title}\n#+category: Docs\n")
|
||||
;; :unnarrowed t)
|
||||
|
||||
;; ("n" "note" plain
|
||||
;; "%?"
|
||||
;; :if-new (file+head
|
||||
;; "notes/${slug}.org"
|
||||
;; "#+title: ${title}\n#+category: Notes\n")
|
||||
;; :unnarrowed t)))
|
||||
|
||||
(setq org-roam-dailies-capture-templates
|
||||
'(("d" "default" entry
|
||||
"* %<%H:%M> %?\n"
|
||||
:target
|
||||
(file+head "%<%Y-%m-%d>.org"
|
||||
"#+title: %<%Y-%m-%d>\n\n"))))
|
||||
|
||||
(provide 'init-org-roam)
|
||||
Reference in New Issue
Block a user