Commit 17c0605c8335

Vincent Demeester <vincent@sbr.pm>
2016-06-09 16:41:56
Add term-projectile configuration
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent cb10f3c
Changed files (1)
.emacs.d
.emacs.d/emacs.org
@@ -2753,6 +2753,23 @@
           (define-key projectile-command-map (kbd "p") 'projectile-persp-switch-project)
           (persp-mode)))
     #+END_SRC
+*** Terminal in projectile
+
+    Let's add something to be able to quickly start terminals in the
+    current projectile (and thus leaving even less emacs).
+
+#+BEGIN_SRC emacs-lisp
+  (use-package term-projectile
+    :ensure t
+    :config
+    (defhydra vde:term-hydra (global-map "C-c 7")
+       "term"
+       ("n" term-projectile-forward)
+       ("p" term-projectile-backward)
+       ("c" term-projectile-create-new))
+     )
+#+END_SRC
+
 ** Compilation mode
 
    Set options and key binding for =compile=.