From 179251b01e7486fe259278f917ec4d59a3707364 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 8 Sep 2015 09:50:23 -0700 Subject: [PATCH] helm-projectile needs to be set up before projectile. --- dotfiles/emacs.d/init.el | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index e641b96b..da76615b 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -1571,6 +1571,20 @@ window is active in the perspective." (define-key persp-mode-map (kbd "C-x b") 'persp-mode-switch-buffers)) :bind ("C-c 9" . persp-switch)) +(use-package helm-projectile + :commands (helm-projectile-on) + :config + (progn + (helm-delete-action-from-source "Search in Project" helm-source-projectile-projects) + (defun imalison:switch-to-project-and-search (dir) + (let ((default-directory dir) + (projectile-require-project-root nil) + (helm-action-buffer "this-buffer-should-not-exist")) + (helm-projectile-ag))) + (helm-add-action-to-source "Search in Project" + 'imalison:switch-to-project-and-search + helm-source-projectile-projects))) + (use-package projectile :demand t :config @@ -1611,20 +1625,6 @@ window is active in the perspective." (use-package persp-projectile :commands projectile-persp-switch-project))) -(use-package helm-projectile - :commands (helm-projectile-on) - :config - (progn - (helm-delete-action-from-source "Search in Project" helm-source-projectile-projects) - (defun imalison:switch-to-project-and-search (dir) - (let ((default-directory dir) - (projectile-require-project-root nil) - (helm-action-buffer "this-buffer-should-not-exist")) - (helm-projectile-ag))) - (helm-add-action-to-source "Search in Project" - 'imalison:switch-to-project-and-search - helm-source-projectile-projects))) - (use-package smex ;; Using helm-M-x instead :disabled t