summaryrefslogtreecommitdiff
path: root/lisp/init-projectile.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-01-26 02:00:22 -0500
committerKyle Meyer <kyle@kyleam.com>2014-01-26 02:00:22 -0500
commit4bcfb672357b5840249c72b28cb860001c4e3967 (patch)
tree13e236eaccfdf6985e576f3b07bdec937f2f7955 /lisp/init-projectile.el
parent7869360008d87ca4b459c703f4894625dd8181cc (diff)
downloademacs.d-4bcfb672357b5840249c72b28cb860001c4e3967.tar.gz
Reorganize and use require-package
`require-package' is from https://github.com/purcell/emacs.d/blob/master/lisp/init-elpa.el.
Diffstat (limited to 'lisp/init-projectile.el')
-rw-r--r--lisp/init-projectile.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/init-projectile.el b/lisp/init-projectile.el
index 66da4c6..52f610d 100644
--- a/lisp/init-projectile.el
+++ b/lisp/init-projectile.el
@@ -1,6 +1,9 @@
+(require-package 'projectile)
+
(projectile-global-mode)
-(setq projectile-switch-project-action 'projectile-commander)
+(setq projectile-switch-project-action 'projectile-commander
+ projectile-use-git-grep t)
;; Default binding is D.
(def-projectile-commander-method ?r
@@ -24,6 +27,11 @@ I have set `projectile-switch-project-action' to
(define-key projectile-mode-map (kbd "C-c p j")
'km/projectile-switch-project-to-file)
-(setq projectile-use-git-grep t)
+(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 ";g" 'projectile-grep)
+(key-chord-define-global ";r" 'projectile-replace)
+(key-chord-define-global ";c" 'projectile-commander)
(provide 'init-projectile)