helm-projectile needs to be set up before projectile.

This commit is contained in:
Ivan Malison 2015-09-08 09:50:23 -07:00
parent 984f23312b
commit 179251b01e

View File

@ -1571,6 +1571,20 @@ window is active in the perspective."
(define-key persp-mode-map (kbd "C-x b") 'persp-mode-switch-buffers)) (define-key persp-mode-map (kbd "C-x b") 'persp-mode-switch-buffers))
:bind ("C-c 9" . persp-switch)) :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 (use-package projectile
:demand t :demand t
:config :config
@ -1611,20 +1625,6 @@ window is active in the perspective."
(use-package persp-projectile (use-package persp-projectile
:commands projectile-persp-switch-project))) :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 (use-package smex
;; Using helm-M-x instead ;; Using helm-M-x instead
:disabled t :disabled t