summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-07-20 22:48:03 -0400
committerKyle Meyer <kyle@kyleam.com>2014-07-20 22:48:03 -0400
commitc749357fd15a76f1ee5e53be0c1ae8e34ca03659 (patch)
treee77e5a4cd9605885739f921f1ff94fc452ad666d
parent9075751c0002603bf468c51d2a2eddd255faee52 (diff)
downloademacs.d-c749357fd15a76f1ee5e53be0c1ae8e34ca03659.tar.gz
Add function to open terminal in project root
-rw-r--r--lisp/init-projectile.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/init-projectile.el b/lisp/init-projectile.el
index 795efd5..4b2cfc0 100644
--- a/lisp/init-projectile.el
+++ b/lisp/init-projectile.el
@@ -41,12 +41,19 @@ I have set `projectile-switch-project-action' to
(let ((projectile-switch-project-action 'projectile-find-file))
(projectile-switch-project)))
+(defun km/projectile-open-external-terminal-in-root ()
+ "Run `km/open-external-terminal' in project root."
+ (interactive)
+ (let ((default-directory (projectile-project-root)))
+ (km/open-external-terminal)))
+
(define-key projectile-mode-map (kbd "C-c p j")
'km/projectile-switch-project-to-file)
(key-chord-define-global ";s" 'projectile-switch-project)
(key-chord-define-global ";f" 'projectile-find-file)
(key-chord-define-global ";d" 'projectile-find-dir)
+(key-chord-define-global ";t" 'km/projectile-open-external-terminal-in-root)
(key-chord-define-global ";g" 'projectile-grep)
(key-chord-define-global ";w" 'projectile-multi-occur)
(key-chord-define-global ";r" 'projectile-recentf)