Install and configure the org-roam package

This commit is contained in:
Gergely Polonkai 2023-08-29 10:51:33 +02:00
parent 850d803d61
commit 23712fed8c
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4

View File

@ -1203,6 +1203,39 @@ This emulates how Orgzly work with my current settings.
(org-set-property "CREATED" timestamp)))
#+end_src
** Org Roam
#+begin_src emacs-lisp
(use-package org-roam
:config
(setq org-roam-node-display-template (concat
"${title:*} "
(propertize "${tags:10}" 'face 'org-tag)))
(org-roam-db-autosync-mode)
(require 'org-roam-dailies)
(require 'org-roam-protocol)
:custom
(org-roam-directory (file-truename (expand-file-name "roam" org-directory)))
(org-roam-dailies-directory (file-truename (expand-file-name "roam/journal" org-directory)))
(org-roam-completion-everywhere t)
(org-roam-dailies-capture-templates '(
("d" "default" entry "* %<%H:%M>: %?"
:if-new (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n"))))
:bind
(("C-c n l" . org-roam-buffer-toggle)
("C-c n f" . org-roam-node-find)
("C-c n g" . org-roam-graph)
("C-c n i" . org-roam-node-insert)
("C-c n c" . org-roam-capture)
:map org-mode-map
("C-M-i" . completion-at-point)
:map org-roam-dailies-map
("Y" . org-roam-dailies-capture-yesterday)
("T" . org-roam-dailies-capture-tomorrow))
:bind-keymap
("C-c n d" . org-roam-dailies-map))
#+end_src
* UI preferences
** Tweak window chrome