From 4dfb36858a9d2bb30841d5efe543a9835c94d705 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 23 Dec 2023 15:27:06 +0100 Subject: [PATCH] Move Org roam db autosync activation to use-package definition No need to conditionally enable it in main initialization function when it can be done directly directly after loading `org-roam`. This keeps the configuration of the package local, i.e. syntactically together. --- init.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 75eae05..876c581 100644 --- a/init.el +++ b/init.el @@ -1263,7 +1263,8 @@ (org-roam-completion-everywhere t)) :bind (:map org-roam-mode-map (("C-c n l" . org-roam-buffer-toggle) - ("C-c n g" . org-roam-graph)))) + ("C-c n g" . org-roam-graph))) + :config (org-roam-db-autosync-mode)) ;; * General Programming @@ -2914,9 +2915,6 @@ eventuelly be set to nil, however)." ;; separate `helm-command-prefix-key' mechanism. (require 'helm) - (when (package-installed-p 'org-roam) - (org-roam-db-autosync-mode)) - ;; Global Hooks (add-hook 'minibuffer-setup-hook 'cursor-intangible-mode)