all repos — nixfiles @ 7d194e3da6e9c9121c09ebd96c3b83f2ac12a8ff

System and user configuration, managed by nix and home-manager

Emacs: Check for file-notify support

Alan Pearce
commit

7d194e3da6e9c9121c09ebd96c3b83f2ac12a8ff

parent

8e365f86d6b58d02496d556b97b75f1440ef63ff

1 file changed, 9 insertions(+), 8 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -1687,14 +1687,15 @@ (run-at-time "00:05" 86400 '(lambda () (org-mobile-push-with-delay 1))) ;; refreshes agenda file each day
(org-mobile-pull) ;; run org-mobile-pull at startup (defvar org-mobile-watcher nil) - (let ((org-file (expand-file-name - (concat - (file-name-as-directory org-mobile-directory) - org-mobile-capture-file)))) - (defun ap/org-mobile-pull () - (org-mobile-pull)) - (setq org-mobile-watcher - (file-notify-add-watch org-file '(change) #'ap/org-mobile-pull))))))) + (when file-notify--library + (let ((org-file (expand-file-name + (concat + (file-name-as-directory org-mobile-directory) + org-mobile-capture-file)))) + (defun ap/org-mobile-pull () + (org-mobile-pull)) + (setq org-mobile-watcher + (file-notify-add-watch org-file '(change) #'ap/org-mobile-pull)))))))) #+END_SRC * Programming