delay the org-roam-db-autosync-mode

This commit is contained in:
Jason Tian 2024-04-16 22:06:34 +08:00
parent 5c74a0b844
commit aae9b067d6
1 changed files with 7 additions and 2 deletions

View File

@ -436,16 +436,21 @@
;; :if window-system ; for graphical Emacs
:after emacsql-sqlite3
:config
(org-roam-db-autosync-mode)
(add-hook 'emacs-startup-hook #'my-activate-org-roam-db-autosync)
(setq org-roam-database-connector 'sqlite3)
(setq org-roam-mode-sections
(list #'org-roam-backlinks-section
#'org-roam-reflinks-section
;; ripgrep (rg) is used for unlinked references below - (executable-find "rg")
#'org-roam-unlinked-references-section
;; #'org-roam-unlinked-references-section
))
)
(defun my-activate-org-roam-db-autosync ()
"Activate `org-roam-db-autosync-mode` after a delay"
(run-with-idle-timer 7 nil 'org-roam-db-autosync-mode))
(my-check-for-executable "ripgrep (rg)" "rg")
;; END: Org-roam }