From 23712fed8c3926bbc0de58705d5d83ea4f9ef54f Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 29 Aug 2023 10:51:33 +0200 Subject: [PATCH] Install and configure the org-roam package --- configuration.org | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/configuration.org b/configuration.org index cdabd01..3e41458 100644 --- a/configuration.org +++ b/configuration.org @@ -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