Require eshell for projectile shell-command hack

This commit is contained in:
Ivan Malison 2016-08-16 14:39:22 -07:00
parent 8cbcf83db3
commit 65c51072e6
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1948,6 +1948,9 @@ I use helm for almost all emacs completion
**** Avoid shell-command-to-string
See [[https://github.com/bbatsov/projectile/issues/1044][this issue]] for details.
#+BEGIN_SRC emacs-lisp
;; We use `eshell-search-path' for this hack
(require 'eshell)
(defun projectile-call-process-to-string (program &rest args)
(with-temp-buffer
(apply 'call-process program nil (current-buffer) nil args)