From af6eac60fa3b35624f2b643c670e6d084369bf9f Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 24 Oct 2016 13:34:33 -0700 Subject: [PATCH] [Emacs] Add projectile-helm-command-from-zsh --- dotfiles/emacs.d/README.org | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 6ab4c7d4..006f28e8 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -833,6 +833,11 @@ This was stolen from https://github.com/jwiegley/dot-emacs (require 'helm) (helm-other-buffer 'helm-c-source-zsh-history "*helm zsh history*")) #+END_SRC +*** Use projectile as default directory +#+BEGIN_SRC emacs-lisp +(imalison:let-around imalison:projectile-helm-command-from-zsh helm-command-from-zsh + (default-directory (projectile-project-root))) +#+END_SRC ** Other The stuff in this section is pretty crusty. I don't think its used anywhere, but I keep it around just in case I need it. @@ -1356,7 +1361,7 @@ https://github.com/alpaker/Fill-Column-Indicator/issues/21 for more details :config (progn (defhydra imalison:hydra-font-resize - nil + nil "Resize Font" ("-" imalison:font-size-decr "Decrease") ("d" imalison:font-size-decr "Decrease") @@ -1385,7 +1390,7 @@ https://github.com/alpaker/Fill-Column-Indicator/issues/21 for more details (imalison:named-compile "glide up")) (defhydra imalison:compile nil "Compile" - ("s" helm-command-from-zsh "Select a command from shell history") + ("s" imalison:projectile-helm-command-from-zsh "Select a command from shell history") ("c" imalison:named-compile "Enter Custom Command") ("t" imalison:make-test "Test") ("u" imalison:glide-up "Update Dependencies"))))