From a5120dc759f53663c7807c1dc0720fc76dd967b1 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 2 Jan 2019 12:37:40 -0800 Subject: [PATCH] [Emacs] Disable forking for projectile speed up trick --- dotfiles/emacs.d/README.org | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 4f318716..2b878085 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -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 #+BEGIN_SRC emacs-lisp - (defun imalison:call-with-quick-shell-command (fn &rest args) - (noflet ((shell-command-to-string (&rest args) - (or (apply 'imalison:try-call-process args) (apply this-fn args)))) + (noflet + ((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))) -(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 ** Set EMACS environment variable Emacs cask seems to depend on the EMACS environment variable being set to the