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