diff options
-rw-r--r-- | init/km-projectile.el | 8 |
1 files changed, 6 insertions, 2 deletions
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)) |