Add custom helm-projectile functions to mode map

helm-projectile's use package was reindented because it was not at the
correct level before.
This commit is contained in:
Ivan Malison 2016-06-21 14:55:32 -07:00
parent d14005fd18
commit e3d4b7aed0

View File

@ -1593,10 +1593,13 @@ I use helm for almost all emacs completion
(helm-mode 1)))
#+END_SRC
[[(helm split window)][Ensure that helm buffers are started in the window that currently holds the focus]]
*** helm-projectile
#+BEGIN_SRC emacs-lisp
(use-package helm-projectile
:commands (helm-projectile-on)
:bind (:map helm-projectile-projects-map
("M-s" . imalison:switch-to-project-and-search)
("M-t" . imalison:helm-term-projectile))
:preface
(progn
(defun imalison:invalidate-cache-and-open-file (_dir)
@ -1623,11 +1626,11 @@ I use helm for almost all emacs completion
(helm-add-action-to-source "Search in Project"
'imalison:switch-to-project-and-search
helm-source-projectile-projects)
(helm-add-action-to-source "Invalidate Cache and Open File"
'imalison:invalidate-cache-and-open-file
helm-source-projectile-projects)
(helm-add-action-to-source "Open term for project"
'imalison:helm-term-projectile
helm-source-projectile-projects)
(helm-add-action-to-source "Invalidate Cache and Open File"
'imalison:invalidate-cache-and-open-file
helm-source-projectile-projects)))
#+END_SRC
*** projectile