diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-01-26 01:59:44 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-01-26 01:59:44 -0500 |
commit | 7869360008d87ca4b459c703f4894625dd8181cc (patch) | |
tree | b0f3f50ae2c309056883e03848abb3e1e4cb9b1e /lisp/init-projectile.el | |
parent | 47e1d90700105f6b0f0550d7632a22b3fe81acb9 (diff) | |
download | emacs.d-7869360008d87ca4b459c703f4894625dd8181cc.tar.gz |
Follow Purcell's emacs.d structure
User init files are added using provide/require.
https://github.com/purcell/emacs.d
Diffstat (limited to 'lisp/init-projectile.el')
-rw-r--r-- | lisp/init-projectile.el | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lisp/init-projectile.el b/lisp/init-projectile.el new file mode 100644 index 0000000..66da4c6 --- /dev/null +++ b/lisp/init-projectile.el @@ -0,0 +1,29 @@ +(projectile-global-mode) + +(setq projectile-switch-project-action 'projectile-commander) + +;; Default binding is D. +(def-projectile-commander-method ?r + "Open project root in dired." + (projectile-dired)) + +(def-projectile-commander-method ?c + "Run project compilation command." + (call-interactively 'projectile-compile-project)) + +(defun km/projectile-switch-project-to-file () + "Provide access to the of default `projectile-find-file'. + +I have set `projectile-switch-project-action' to +`projectile-commander' but would still like quick access to +`projectile-find-file'." + (interactive) + (let ((projectile-switch-project-action 'projectile-find-file)) + (projectile-switch-project))) + +(define-key projectile-mode-map (kbd "C-c p j") + 'km/projectile-switch-project-to-file) + +(setq projectile-use-git-grep t) + +(provide 'init-projectile) |