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:
parent
76c8717c24
commit
4dfb36858a
6
init.el
6
init.el
@ -1263,7 +1263,8 @@
|
|||||||
(org-roam-completion-everywhere t))
|
(org-roam-completion-everywhere t))
|
||||||
:bind (:map org-roam-mode-map
|
:bind (:map org-roam-mode-map
|
||||||
(("C-c n l" . org-roam-buffer-toggle)
|
(("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
|
;; * General Programming
|
||||||
@ -2914,9 +2915,6 @@ eventuelly be set to nil, however)."
|
|||||||
;; separate `helm-command-prefix-key' mechanism.
|
;; separate `helm-command-prefix-key' mechanism.
|
||||||
(require 'helm)
|
(require 'helm)
|
||||||
|
|
||||||
(when (package-installed-p 'org-roam)
|
|
||||||
(org-roam-db-autosync-mode))
|
|
||||||
|
|
||||||
;; Global Hooks
|
;; Global Hooks
|
||||||
|
|
||||||
(add-hook 'minibuffer-setup-hook 'cursor-intangible-mode)
|
(add-hook 'minibuffer-setup-hook 'cursor-intangible-mode)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user