Rename spacemacs/helm-projectile-dwim to spacemacs/helm-projectile-search-dwim

This commit is contained in:
syl20bnr 2015-04-01 21:51:42 -04:00
parent 38c57a319d
commit 411a7812ad

View file

@ -1590,32 +1590,36 @@ ARG non nil means that the editing style is `vim'."
helm-projectile-switch-project helm-projectile-switch-project
helm-projectile-vc) helm-projectile-vc)
:init :init
(defconst spacemacs-use-helm-projectile t (progn
"This variable is only defined if helm-projectile is used.") (setq projectile-switch-project-action 'helm-projectile)
(setq projectile-switch-project-action 'helm-projectile)
(defun spacemacs/helm-projectile-dwim () (defconst spacemacs-use-helm-projectile t
(interactive) "This variable is only defined if helm-projectile is used.")
(progn
(call-interactively (cond ((executable-find "ag") (defun spacemacs/helm-projectile-search-dwim ()
'helm-projectile-ag) "Execute the first found search tool."
((executable-find "ack") (interactive)
'helm-projectile-ack) (call-interactively
((executable-find "pt") (cond ((executable-find "pt")
'helm-projectile-pt) 'helm-projectile-pt)
(t ((executable-find "ag")
'helm-projectile-grep))))) 'helm-projectile-ag)
(evil-leader/set-key ((executable-find "ack")
"/" 'spacemacs/helm-projectile-dwim 'helm-projectile-ack)
"pa" 'helm-projectile-ag (t 'helm-projectile-grep))))
"pA" 'helm-projectile-ack
"pb" 'helm-projectile-switch-to-buffer (evil-leader/set-key
"pd" 'helm-projectile-find-dir "/" 'spacemacs/helm-projectile-search-dwim
"pe" 'helm-projectile-recentf "pa" 'helm-projectile-ag
"pf" 'helm-projectile-find-file "pA" 'helm-projectile-ack
"pg" 'helm-projectile-grep "pb" 'helm-projectile-switch-to-buffer
"ph" 'helm-projectile "pd" 'helm-projectile-find-dir
"ps" 'helm-projectile-switch-project "pe" 'helm-projectile-recentf
"pv" 'helm-projectile-vc))) "pf" 'helm-projectile-find-file
"pg" 'helm-projectile-grep
"ph" 'helm-projectile
"ps" 'helm-projectile-switch-project
"pv" 'helm-projectile-vc))))
(defun spacemacs/init-helm-pt () (defun spacemacs/init-helm-pt ()
(use-package helm-pt (use-package helm-pt