From c450dbd05428801e78b6c541c45d2739d7303bfd Mon Sep 17 00:00:00 2001 From: Wetlize Date: Tue, 17 Aug 2021 20:50:09 +0300 Subject: [PATCH] move (require 'filenotify) under the "update method" function --- org-roam-db.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam-db.el b/org-roam-db.el index 0e74757..d917e56 100644 --- a/org-roam-db.el +++ b/org-roam-db.el @@ -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)