From 251ae7c60a64b5ba63c2bcbfcf87a280bb13d0cb Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 18 Oct 2016 14:46:59 -0700 Subject: [PATCH] [Emacs] Only sync copyq when command exists --- dotfiles/emacs.d/README.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 114afaac..71e77468 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -792,7 +792,8 @@ A macro for composing functions together to build an interactive command to copy collect item))) (setq kill-ring (nconc kill-ring missing-items)))) -(run-with-idle-timer 10 nil 'imalison:copyq-sync) +(when (eshell-search-path "copyq") + (run-with-idle-timer 10 nil 'imalison:copyq-sync)) #+END_SRC ** Other The stuff in this section is pretty crusty. I don't think its used anywhere, but