summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/km-projectile.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/init/km-projectile.el b/init/km-projectile.el
index 6f5da20..a5f3b3e 100644
--- a/init/km-projectile.el
+++ b/init/km-projectile.el
@@ -4,3 +4,13 @@
(defun km/projectile-magit-status ()
(magit-status (projectile-project-root)))
+
+(defun km/projectile-switch-project-to-file ()
+ "I have set `projectile-switch-project-action' to
+ `km/projectile-magit-status'. This function gives access to the
+ of default `projectile-find-file'"
+ (interactive)
+ (let ((projectile-switch-project-action 'projectile-find-file))
+ (projectile-switch-project)))
+
+(global-set-key (kbd "C-c p j") 'km/projectile-switch-project-to-file)