From c663d3c2131aa27ebbe169374ce6bff02ee14c41 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 14 Oct 2015 01:23:34 -0700 Subject: [PATCH] Add helm projectile action for term-projectile --- dotfiles/emacs.d/init.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index da06eb21..857bf6b6 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -1625,6 +1625,7 @@ window is active in the perspective." :config (progn (helm-delete-action-from-source "Search in Project" helm-source-projectile-projects) + (helm-delete-action-from-source "Open term for project" helm-source-projectile-projects) (defun imalison:switch-to-project-and-search (dir) (let ((default-directory dir) (projectile-require-project-root nil) @@ -1632,6 +1633,13 @@ window is active in the perspective." (helm-projectile-ag))) (helm-add-action-to-source "Search in Project" 'imalison:switch-to-project-and-search + helm-source-projectile-projects) + (helm-add-action-to-source "Open term for project" + (lambda (dir) + (let ((default-directory dir) + (projectile-require-project-root nil) + (helm-action-buffer "this-buffer-should-not-exist")) + (term-projectile))) helm-source-projectile-projects))) (use-package projectile