mirror of
https://github.com/org-roam/org-roam
synced 2025-09-18 16:06:49 -05:00
move (require 'filenotify) under the "update method" function
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user