[Emacs] Disable forking for projectile speed up trick

This commit is contained in:
Ivan Malison 2019-01-02 12:37:40 -08:00
parent cfa2861f3e
commit a5120dc759
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -286,13 +286,16 @@ This had to be disabled because it was causing a bunch of issues with projectile
This solution only applies it to projectile-find-file This solution only applies it to projectile-find-file
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defun imalison:call-with-quick-shell-command (fn &rest args) (defun imalison:call-with-quick-shell-command (fn &rest args)
(noflet ((shell-command-to-string (&rest args) (noflet
(or (apply 'imalison:try-call-process args) (apply this-fn args)))) ((shell-command-to-string (&rest args)
(condition-case _e
(or (apply 'imalison:try-call-process args) (apply this-fn args))
(error (apply this-fn args)))))
(apply fn args))) (apply fn args)))
(advice-add 'projectile-find-file :around 'imalison:call-with-quick-shell-command) ;; I've had to disable this becuase newer versions of projectile use a ton of shell commands
;; (advice-add 'projectile-files-via-ext-command :around 'imalison:call-with-quick-shell-command)
#+END_SRC #+END_SRC
** Set EMACS environment variable ** Set EMACS environment variable
Emacs cask seems to depend on the EMACS environment variable being set to the Emacs cask seems to depend on the EMACS environment variable being set to the