(use-package org-roam :ensure t :hook (after-init . org-roam-mode) :custom (org-roam-directory "/home/zaki/Notes/roam/") (org-roam-dailies-directory "daily/") (org-roam-file-exclude-regexp "daily/*") (org-roam-dailies-capture-templates '(("n" "New things" entry #'org-roam-capture--get-point "* %^{entry} \n%?" :file-name "daily/%<%Y-%m-%d>" :head "#+title: Daily Grind %<%Y-%m-%d>" :olp ("Learn")) ("b" "Ranodm thoughts on something" entry #'org-roam-capture--get-point "* %^{entry} %^g \n%?" :file-name "daily/%<%Y-%m-%d>" :head "#+title: Daily Grind %<%Y-%m-%d>" :olp ("Random")) )) (org-roam-capture-templates '(("d" "default" plain (function org-roam--capture-get-point) "%?" :file-name "%<%Y%m%d%H%M%S>-${slug}" :head "#+title: ${title}\n#+roam_tags:%^{tags}\n%?" :unnarrowed t) ("j" "Journal Entry" entry (function org-roam--capture-get-point) "* %(format-time-string org-journal-time-format) %^{Entry} \n%?") )) :bind (:map org-roam-mode-map ( ("C-c n l" . org-roam) ("C-c n F" . org-roam-find-file) ("C-c n f" . org-roam-capture) ("C-c n g" . org-roam-graph) ("C-c n D" . org-roam-dailies-today) ("C-c n d" . org-roam-dailies-capture-today) ("C-c n C-n" . org-roam-dailies-find-next-note) ("C-c n ***" . org-roam-dailies-find-previous-note) ("C-c n C-f" . org-roam-dailies-find-directory)) :map org-mode-map (("C-c n i" . org-roam-insert)) (("C-c n I" . org-roam-insert-immediate))))