move (require 'filenotify) under the "update method" function

This commit is contained in:
Wetlize
2021-08-17 20:50:09 +03:00
parent 33d8792f19
commit c450dbd054

View File

@@ -31,7 +31,6 @@
;;
;;; Code:
(require 'org-roam)
(require 'filenotify)
(defvar org-outline-path-cache)
;;; Options
@@ -593,6 +592,7 @@ database, see `org-roam-db-sync' command."
(org-roam-db-autosync-mode ; enabled
(pcase org-roam-db-autosync-update-method
('filenotify
(require 'filenotify)
(cl-pushnew
(cons org-roam-directory
(file-notify-add-watch org-roam-directory '(change)