Fixes #147 Reenable helm-projectile commands
This commit is contained in:
parent
8e41c1146a
commit
bcda6d85fd
|
@ -1303,8 +1303,32 @@ determine the state to enable when escaping from the insert state.")
|
||||||
|
|
||||||
(defun spacemacs/init-helm-projectile ()
|
(defun spacemacs/init-helm-projectile ()
|
||||||
(use-package helm-projectile
|
(use-package helm-projectile
|
||||||
:defer t
|
:commands (helm-projectile-ack
|
||||||
:init (evil-leader/set-key "pf" 'helm-projectile)))
|
helm-projectile-ag
|
||||||
|
helm-projectile-switch-to-buffer
|
||||||
|
helm-projectile-find-dir
|
||||||
|
helm-projectile-dired-find-dir
|
||||||
|
helm-projectile-recentf
|
||||||
|
helm-projectile-find-file
|
||||||
|
helm-projectile-grep
|
||||||
|
helm-projectile
|
||||||
|
helm-projectile-switch-project
|
||||||
|
helm-projectile-vc)
|
||||||
|
:init
|
||||||
|
(defconst spacemacs-use-helm-projectile t
|
||||||
|
"This variable is only defined if helm-projectile is used.")
|
||||||
|
(evil-leader/set-key
|
||||||
|
"pa" 'helm-projectile-ack
|
||||||
|
"pA" 'helm-projectile-ag
|
||||||
|
"pb" 'helm-projectile-switch-to-buffer
|
||||||
|
"pd" 'helm-projectile-find-dir
|
||||||
|
"pD" 'helm-projectile-dired-find-dir
|
||||||
|
"pe" 'helm-projectile-recentf
|
||||||
|
"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-swoop ()
|
(defun spacemacs/init-helm-swoop ()
|
||||||
(use-package helm-swoop
|
(use-package helm-swoop
|
||||||
|
@ -1787,7 +1811,7 @@ determine the state to enable when escaping from the insert state.")
|
||||||
"projectile.cache"))
|
"projectile.cache"))
|
||||||
(setq projectile-known-projects-file (concat spacemacs-cache-directory
|
(setq projectile-known-projects-file (concat spacemacs-cache-directory
|
||||||
"projectile-bookmarks.eld"))
|
"projectile-bookmarks.eld"))
|
||||||
;; (evil-leader/set-key "p" 'projectile-commander))
|
(unless (boundp spacemacs-use-helm-projectile)
|
||||||
(evil-leader/set-key
|
(evil-leader/set-key
|
||||||
"pa" 'projectile-ack
|
"pa" 'projectile-ack
|
||||||
"pA" 'projectile-ag
|
"pA" 'projectile-ag
|
||||||
|
@ -1798,15 +1822,15 @@ determine the state to enable when escaping from the insert state.")
|
||||||
"pf" 'projectile-find-file
|
"pf" 'projectile-find-file
|
||||||
"pg" 'projectile-grep
|
"pg" 'projectile-grep
|
||||||
"ph" 'helm-projectile
|
"ph" 'helm-projectile
|
||||||
|
"ps" 'projectile-switch-project))
|
||||||
|
(evil-leader/set-key
|
||||||
"pI" 'projectile-invalidate-cache
|
"pI" 'projectile-invalidate-cache
|
||||||
"pk" 'projectile-kill-buffers
|
"pk" 'projectile-kill-buffers
|
||||||
"po" 'projectile-multi-occur
|
"po" 'projectile-multi-occur
|
||||||
"pr" 'projectile-replace
|
"pr" 'projectile-replace
|
||||||
"pR" 'projectile-regenerate-tags
|
"pR" 'projectile-regenerate-tags
|
||||||
"ps" 'projectile-switch-project
|
|
||||||
"pt" 'projectile-find-tag
|
"pt" 'projectile-find-tag
|
||||||
"pT" 'projectile-find-test-file
|
"pT" 'projectile-find-test-file))
|
||||||
"pv" 'projectile-vc))
|
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(projectile-global-mode)
|
(projectile-global-mode)
|
||||||
|
|
Loading…
Reference in a new issue