summaryrefslogtreecommitdiffstats
path: root/lisp/init-projectile.el
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2019-08-13 20:14:57 +0200
committerMartin Polden <mpolden@mpolden.no>2019-08-13 20:14:57 +0200
commit6e9c68440e39659374217c0069ed0304be4f7e79 (patch)
tree652549ba8839887a0697580edd9cf44ad83f61e4 /lisp/init-projectile.el
parentba61496bd5e81503cae4730e61f6dce5a9b7ac3a (diff)
Run compile in the context of a project
Diffstat (limited to 'lisp/init-projectile.el')
-rw-r--r--lisp/init-projectile.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/init-projectile.el b/lisp/init-projectile.el
index c278821..2693bf2 100644
--- a/lisp/init-projectile.el
+++ b/lisp/init-projectile.el
@@ -17,10 +17,16 @@
;; enable caching
(setq projectile-enable-caching t)
+ ;; avoid reading command when compiling
+ (setq compilation-read-command nil)
+
:bind (;; C-x f finds file in project
("C-x f" . projectile-find-file)
;; C-c g runs git grep in project
- ("C-c g" . projectile-grep))
+ ("C-c g" . projectile-grep)
+ ;; C-c m compiles project
+ ;; C-u C-c m will force reading command
+ ("C-c m" . projectile-compile-project))
:config
;; enable projectile mode in all buffers