From 7a85498565f8cbe2b13a9ea503fc62eccfd5be14 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 9 Dec 2013 12:08:03 -0500 Subject: Update projectile for new commander projectile 0.10 has a new commander function. Set default switch project action to commander (instead of magit status) and add magit status as command option. If I find I tend to use one option most of the time, I may set that as the switch project action and return commander to only being used when a prefix arg is given. --- init/km-projectile.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'init') diff --git a/init/km-projectile.el b/init/km-projectile.el index 46a80ed..f5226e1 100644 --- a/init/km-projectile.el +++ b/init/km-projectile.el @@ -1,15 +1,19 @@ (projectile-global-mode) -(setq projectile-switch-project-action 'km/projectile-magit-status) +(setq projectile-switch-project-action 'projectile-commander) (defun km/projectile-magit-status () (magit-status (projectile-project-root))) +(def-projectile-commander-method ?v + "Open magit status for project." + (km/projectile-magit-status)) + (defun km/projectile-switch-project-to-file () "Provide access to the of default `projectile-find-file'. I have set `projectile-switch-project-action' to -`km/projectile-magit-status' but would still like quick access to +`projectile-commander' but would still like quick access to `projectile-find-file'" (interactive) (let ((projectile-switch-project-action 'projectile-find-file)) -- cgit v1.2.3