Commit 50e8431fd3a3

Vincent Demeester <vincent@sbr.pm>
2016-04-20 22:19:41
Update projectile configuration for more fun
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent b15df59
Changed files (1)
.emacs.d
.emacs.d/emacs.org
@@ -2698,6 +2698,21 @@
          (setq projectile-completion-system 'default)
          (setq projectile-enable-caching t)
          (setq projectile-indexing-method 'alien)
+         (setq projectile-create-missing-test-files t)
+         (setq projectile-switch-project-action #'projectile-commander)
+         (def-projectile-commander-method ?s
+           "Open a *shell* buffer for the project."
+           (projectile-run-shell))
+         (def-projectile-commander-method ?c
+           "Run `compile` in the project."
+           (projectile-compile-project nil))
+         (def-projectile-commander-method ?d
+           "Open project root in dired."
+           (projectile-dired))
+         (def-projectile-commander-method ?F
+           "Git fetch on tho project."
+           (magit-status)
+           (call-interactively #'magit-fetch-all-prune))
          (projectile-global-mode)))
    #+END_SRC
 
@@ -2708,7 +2723,7 @@
        :ensure t
        :config
        (progn
-         (setq projectile-switch-project-action 'helm-projectile)
+         ;; (setq projectile-switch-project-action 'helm-projectile)
          (helm-projectile-on))
        )
    #+END_SRC