From 8d1ecd3241a7f231d765e147d6fccca2a74b6b4f Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Thu, 11 Apr 2019 13:58:02 -0400 Subject: [PATCH] make repo checks more sane --- init.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/init.el b/init.el index 3bd94a0..5c9f0cd 100644 --- a/init.el +++ b/init.el @@ -17,6 +17,14 @@ (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage)) +;; watch for repo modifications if we have python3 and watchexec +;; otherwise just use a save hook +(setq straight-check-for-modifications + (if (and (executable-find "python3") + (executable-find "watchexec")) + '(watch-files find-when-checking) + '(check-on-save find-when-checking))) + (straight-use-package 'use-package) ;; (unless (package-installed-p 'use-package)