[Emacs] Only sync copyq when command exists

This commit is contained in:
Ivan Malison 2016-10-18 14:46:59 -07:00
parent bec8e289ce
commit 251ae7c60a
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -792,7 +792,8 @@ A macro for composing functions together to build an interactive command to copy
collect item))) collect item)))
(setq kill-ring (nconc kill-ring missing-items)))) (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 #+END_SRC
** Other ** Other
The stuff in this section is pretty crusty. I don't think its used anywhere, but The stuff in this section is pretty crusty. I don't think its used anywhere, but