Commit b9666627bf22

Vincent Demeester <vincent@sbr.pm>
2019-01-29 18:16:33
setup-projectile: commander by default with additionnals func.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent b10ae70
Changed files (1)
lisp/setup-projectile.el
@@ -19,7 +19,15 @@
    
    projectile-completion-system 'ivy
    projectile-find-dir-includes-top-level t
-   projectile-mode-line '(:eval (format " Proj[%s]" (projectile-project-name)))))
+   projectile-switch-project-action #'projectile-commander
+   projectile-create-missing-test-files t
+   projectile-mode-line '(:eval (format " Proj[%s]" (projectile-project-name))))
+  (def-projectile-commander-method ?s
+    "Open a *shell* buffer for the project"
+    (projectile-run-eshell))
+  (def-projectile-commander-method ?c
+    "Run `compile' in the project"
+    (projectile-compile-project nil)))
 
 (use-package counsel-projectile         ; Ivy integration for Projectile
   :bind (:map projectile-command-map