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:
|
;;; 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)
|
||||||
|
Reference in New Issue
Block a user