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.
This commit is contained in:
Daniel - 2023-12-23 15:27:06 +01:00
parent 76c8717c24
commit 4dfb36858a
Signed by: dbo
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 2 additions and 4 deletions

View File

@ -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)